Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001683/0.001683, allocations: 107.5 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 225.6 MB / 244.8 MB, free: 14.17 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 199.2 kB / 299.8 MB, free: 9.832 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04235/0.04235, allocations: 8.935 MB / 363.7 MB, free: 10.17 MB / 302.1 MB " [Timeout remaining time 180] 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002381/0.002381, allocations: 82.72 kB / 486.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1172, allocations: 54.43 MB / 0.5278 GB, free: 1.293 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.03281/0.15, allocations: 27.77 MB / 0.555 GB, free: 5.395 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0185/0.1685, allocations: 8.049 MB / 0.5628 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006341/0.1749, allocations: 215.4 kB / 0.563 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01991/0.1948, allocations: 8 MB / 0.5708 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01044/0.2052, allocations: 2.751 MB / 0.5735 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00587/0.2111, allocations: 1.831 MB / 0.5753 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01518/0.2263, allocations: 9.69 MB / 0.5848 GB, free: 6.773 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02866/0.2549, allocations: 16.22 MB / 0.6006 GB, free: 6.41 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009076/0.264, allocations: 5.264 MB / 0.6058 GB, free: 1.133 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01125/0.2752, allocations: 5.98 MB / 0.6116 GB, free: 11.13 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004154/0.2794, allocations: 1.516 MB / 0.6131 GB, free: 9.613 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006295/0.2857, allocations: 1.878 MB / 0.6149 GB, free: 7.738 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005195/0.2909, allocations: 2.946 MB / 0.6178 GB, free: 4.785 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01257/0.3035, allocations: 5.716 MB / 0.6234 GB, free: 15.04 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3135/0.617, allocations: 20.33 MB / 0.6432 GB, free: 39.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.617, allocations: 0 / 0.6432 GB, free: 39.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.617, allocations: 0 / 0.6432 GB, free: 39.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005531/0.6175, allocations: 1.219 kB / 0.6432 GB, free: 39.16 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.04026/0.6578, allocations: 11.8 MB / 0.6547 GB, free: 35.87 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/0.6578, allocations: 17.84 kB / 0.6548 GB, free: 35.87 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006787/0.6646, allocations: 1.321 MB / 0.656 GB, free: 35.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03179/0.6964, allocations: 5.628 MB / 0.6615 GB, free: 34.7 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01849/0.7149, allocations: 6.204 MB / 0.6676 GB, free: 32.66 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001003/0.7159, allocations: 0.6882 MB / 0.6683 GB, free: 32.35 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006489/0.7224, allocations: 0.918 MB / 0.6692 GB, free: 32.04 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04404/0.7664, allocations: 14.85 MB / 0.6837 GB, free: 21.61 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005864/0.767, allocations: 15.94 kB / 0.6837 GB, free: 21.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004743/0.7717, allocations: 388.1 kB / 0.6841 GB, free: 21.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005103/0.7723, allocations: 0.5068 MB / 0.6846 GB, free: 20.72 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03267/0.8049, allocations: 13.59 MB / 0.6978 GB, free: 7.125 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1006/0.9055, allocations: 46.2 MB / 0.7429 GB, free: 8.711 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02812/0.9336, allocations: 27.93 MB / 0.7702 GB, free: 9.098 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006015/0.9396, allocations: 2.751 MB / 0.7729 GB, free: 6.336 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000553/0.9402, allocations: 242.7 kB / 0.7731 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.311e-05/0.9403, allocations: 77.08 kB / 0.7732 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=375): time 7.213e-06/0.9403, allocations: 0 / 0.7732 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of matching and sorting (n=382): time 0.03719/0.9775, allocations: 14.72 MB / 0.7876 GB, free: 7.238 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.774e-05/0.9775, allocations: 94.41 kB / 0.7877 GB, free: 7.133 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007943/0.9855, allocations: 3.483 MB / 0.7911 GB, free: 3.648 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007213/0.9862, allocations: 85.7 kB / 0.7912 GB, free: 3.559 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003505/0.9897, allocations: 4.093 MB / 0.7952 GB, free: 15.45 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001975/0.9917, allocations: 1.372 MB / 0.7965 GB, free: 14.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003035/0.9947, allocations: 1.152 MB / 0.7976 GB, free: 12.94 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.9949, allocations: 305.1 kB / 0.7979 GB, free: 12.64 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00459/0.9995, allocations: 2.549 MB / 0.8004 GB, free: 10.08 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006828/1.006, allocations: 5.013 MB / 0.8053 GB, free: 3.953 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01239/1.019, allocations: 8.214 MB / 0.8133 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.459e-05/1.019, allocations: 24 kB / 0.8133 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01801/1.037, allocations: 8.497 MB / 0.8216 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001045/1.037, allocations: 40 kB / 0.8217 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001453/1.037, allocations: 82.3 kB / 0.8218 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002498/1.04, allocations: 0.8466 MB / 0.8226 GB, free: 1.898 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005309/1.045, allocations: 1.347 MB / 0.8239 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/1.058, allocations: 7.672 MB / 0.8314 GB, free: 8.895 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004515/1.063, allocations: 327.5 kB / 0.8317 GB, free: 8.574 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001074/1.064, allocations: 304 kB / 0.832 GB, free: 8.277 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (708): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007397/1.071, allocations: 3.491 MB / 0.8354 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001332/1.072, allocations: 409.4 kB / 0.8358 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01255/1.085, allocations: 5.822 MB / 0.8415 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.664e-05/1.085, allocations: 40 kB / 0.8415 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.709e-05/1.085, allocations: 8 kB / 0.8415 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-05/1.085, allocations: 19.92 kB / 0.8415 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03358/1.119, allocations: 14.48 MB / 0.8557 GB, free: 156 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.162e-05/1.119, allocations: 6.188 kB / 0.8557 GB, free: 152 kB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2615/1.38, allocations: 0.6659 MB / 0.8563 GB, free: 223.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002673/1.383, allocations: 0.7108 MB / 0.857 GB, free: 223.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007307/1.384, allocations: 80.5 kB / 0.8571 GB, free: 223.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008542/1.392, allocations: 6.709 MB / 0.8637 GB, free: 221.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/1.392, allocations: 4.562 kB / 0.8637 GB, free: 221.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01144/1.404, allocations: 8.55 MB / 0.872 GB, free: 218.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002607/1.406, allocations: 0.873 MB / 0.8729 GB, free: 218.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008036/1.407, allocations: 82.84 kB / 0.8729 GB, free: 218.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001954/1.409, allocations: 181.4 kB / 0.8731 GB, free: 218 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005342/1.41, allocations: 261.7 kB / 0.8734 GB, free: 218 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002037/1.41, allocations: 115 kB / 0.8735 GB, free: 217.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004108/1.414, allocations: 2.333 MB / 0.8758 GB, free: 217.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.414, allocations: 3.781 kB / 0.8758 GB, free: 217.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006584/1.42, allocations: 1.512 MB / 0.8772 GB, free: 216.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (365): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0123/1.433, allocations: 9.255 MB / 0.8863 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.009553/1.442, allocations: 6.166 MB / 0.8923 GB, free: 209 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/1.442, allocations: 4 kB / 0.8923 GB, free: 209 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004268/1.447, allocations: 2.668 MB / 0.8949 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006013/1.453, allocations: 0.8911 MB / 0.8958 GB, free: 206 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08908/1.542, allocations: 51.32 MB / 0.9459 GB, free: 154.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0088/1.55, allocations: 5.898 MB / 0.9516 GB, free: 148.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005426/1.556, allocations: 1.857 MB / 0.9535 GB, free: 146.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005538/1.561, allocations: 3.085 MB / 0.9565 GB, free: 143.7 MB / 0.5919 GB Notification: Performance of SimCode: time 1.403e-06/1.561, allocations: 0 / 0.9565 GB, free: 143.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3944/1.956, allocations: 116.7 MB / 1.07 GB, free: 197.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.13/22.09, allocations: 3.531 kB / 1.07 GB, free: 197.3 MB / 0.5919 GB " [Timeout remaining time 638] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 25.35861349105835] Failed to read output from testmodel.py, exit status != 0: 22.424312616232783 22.261892117 21.641409058 Calling exit ...