Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04923/0.04923, allocations: 8.719 MB / 16.79 MB, free: 3.387 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 221.5 MB / 240.9 MB, free: 13.21 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008687/0.0008686, allocations: 99.58 kB / 293.9 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.979e-05/1.98e-05, allocations: 4 kB / 352.7 MB, free: 1.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 52.55 MB / 405.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3937/0.4997, allocations: 135.2 MB / 0.5279 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.5, allocations: 84.48 kB / 0.5279 GB, free: 476 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.153/1.653, allocations: 319 MB / 0.8395 GB, free: 50.76 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.767e-06/1.653, allocations: 0 / 0.8395 GB, free: 50.76 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007443/1.654, allocations: 208.8 kB / 0.8397 GB, free: 50.74 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.03388/1.687, allocations: 8.42 MB / 0.8479 GB, free: 47.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.55e-05/1.688, allocations: 15.05 kB / 0.8479 GB, free: 47.04 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02211/1.71, allocations: 3.913 MB / 0.8517 GB, free: 46.2 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01704/1.727, allocations: 7.37 MB / 0.8589 GB, free: 42.45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005333/1.727, allocations: 298.4 kB / 0.8592 GB, free: 42.45 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003443/1.731, allocations: 0.5265 MB / 0.8597 GB, free: 42.43 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02305/1.754, allocations: 11.37 MB / 0.8708 GB, free: 35.04 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03726/1.791, allocations: 13.29 MB / 0.8838 GB, free: 21.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003362/1.792, allocations: 23.75 kB / 0.8839 GB, free: 21.69 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001507/1.793, allocations: 11.95 kB / 0.8839 GB, free: 21.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005652/1.794, allocations: 0.6873 MB / 0.8845 GB, free: 20.98 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4556/2.249, allocations: 47.48 MB / 0.9309 GB, free: 53.68 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01838/2.268, allocations: 28.66 MB / 0.9589 GB, free: 28.5 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005193/2.273, allocations: 3.14 MB / 0.962 GB, free: 28.46 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000367/2.273, allocations: 232.9 kB / 0.9622 GB, free: 28.27 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.463e-05/2.273, allocations: 76.11 kB / 0.9623 GB, free: 28.23 MB / 474.7 MB Notification: Performance of pre-optimization done (n=374): time 6.542e-06/2.273, allocations: 0 / 0.9623 GB, free: 28.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=382): time 0.02535/2.299, allocations: 12.96 MB / 0.9749 GB, free: 26.78 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/2.299, allocations: 91.09 kB / 0.975 GB, free: 26.71 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004817/2.304, allocations: 2.893 MB / 0.9778 GB, free: 26.44 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002285/2.304, allocations: 28.64 kB / 0.9779 GB, free: 26.41 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002545/2.306, allocations: 4.081 MB / 0.9818 GB, free: 24.29 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001115/2.308, allocations: 1.261 MB / 0.9831 GB, free: 23.47 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/2.308, allocations: 0 / 0.9831 GB, free: 23.47 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003315/2.308, allocations: 0.5477 MB / 0.9836 GB, free: 23.15 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00373/2.312, allocations: 2.523 MB / 0.9861 GB, free: 23.14 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005845/2.318, allocations: 4.952 MB / 0.9909 GB, free: 20.12 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008708/2.327, allocations: 4.353 MB / 0.9952 GB, free: 20.07 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.264e-05/2.327, allocations: 23.72 kB / 0.9952 GB, free: 20.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01589/2.343, allocations: 8.779 MB / 1.004 GB, free: 19.66 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.169e-05/2.343, allocations: 41.83 kB / 1.004 GB, free: 19.65 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001506/2.343, allocations: 85.88 kB / 1.004 GB, free: 19.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002403/2.345, allocations: 1.013 MB / 1.005 GB, free: 19.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004804/2.35, allocations: 1.36 MB / 1.006 GB, free: 19.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01317/2.363, allocations: 9.428 MB / 1.015 GB, free: 16.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006109/2.369, allocations: 258.3 kB / 1.016 GB, free: 16.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00157/2.371, allocations: 306.2 kB / 1.016 GB, free: 16.91 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (704): * Single equations (assignments): 701 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,65.6%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001189/2.372, allocations: 314.1 kB / 1.016 GB, free: 16.75 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01057/2.383, allocations: 5.749 MB / 1.022 GB, free: 16.37 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001225/2.384, allocations: 397.4 kB / 1.022 GB, free: 16.16 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01171/2.396, allocations: 6.412 MB / 1.028 GB, free: 15.53 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.709e-05/2.396, allocations: 37.16 kB / 1.029 GB, free: 15.53 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/2.396, allocations: 16.72 kB / 1.029 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.921e-05/2.396, allocations: 20.25 kB / 1.029 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02815/2.424, allocations: 14.52 MB / 1.043 GB, free: 9.512 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.799e-05/2.424, allocations: 1.375 kB / 1.043 GB, free: 9.512 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002703/2.427, allocations: 0.6804 MB / 1.043 GB, free: 9.488 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002243/2.429, allocations: 0.7854 MB / 1.044 GB, free: 9.301 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002887/2.429, allocations: 23.95 kB / 1.044 GB, free: 9.297 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009918/2.439, allocations: 7.913 MB / 1.052 GB, free: 20.33 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.239e-05/2.439, allocations: 4.812 kB / 1.052 GB, free: 20.33 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01437/2.454, allocations: 9.407 MB / 1.061 GB, free: 16.25 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002731/2.457, allocations: 0.8996 MB / 1.062 GB, free: 15.72 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007677/2.457, allocations: 4.562 kB / 1.062 GB, free: 15.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002063/2.459, allocations: 161.7 kB / 1.062 GB, free: 15.72 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005112/2.46, allocations: 257.9 kB / 1.062 GB, free: 15.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002222/2.46, allocations: 112.4 kB / 1.063 GB, free: 15.65 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003653/2.464, allocations: 2.098 MB / 1.065 GB, free: 14.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.71e-07/2.464, allocations: 0.5625 kB / 1.065 GB, free: 14.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008518/2.472, allocations: 1.409 MB / 1.066 GB, free: 13.85 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (inertiaLoad.w,quadraticTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (355): * Single equations (assignments): 352 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,62.5%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01766/2.49, allocations: 11.01 MB / 1.077 GB, free: 4.133 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01168/2.502, allocations: 6.47 MB / 1.083 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/2.502, allocations: 0 / 1.083 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005206/2.507, allocations: 2.991 MB / 1.086 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004953/2.512, allocations: 0.7178 MB / 1.087 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4209/2.933, allocations: 16.21 MB / 1.102 GB, free: 90.54 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007296/2.94, allocations: 6.117 MB / 1.108 GB, free: 89.64 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006177/2.946, allocations: 1.843 MB / 1.11 GB, free: 89.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005242/2.952, allocations: 3.164 MB / 1.113 GB, free: 89.59 MB / 0.4948 GB Notification: Performance of SimCode: time 9.91e-07/2.952, allocations: 0 / 1.113 GB, free: 89.59 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2068/3.159, allocations: 114.6 MB / 1.225 GB, free: 49.84 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/3.159, allocations: 145.4 kB / 1.225 GB, free: 49.65 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.949/8.108, allocations: 0 / 1.225 GB, free: 49.65 MB / 0.4948 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)