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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 110.6 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.532/1.532, allocations: 230.6 MB / 252.6 MB, free: 8.297 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002708/0.002708, allocations: 211.5 kB / 309.2 MB, free: 3.156 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.0421/0.0421, allocations: 8.916 MB / 374.6 MB, free: 1.906 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002642/0.002642, allocations: 83.88 kB / 0.4897 GB, free: 6.836 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2857, allocations: 55.6 MB / 0.544 GB, free: 27.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02059/0.3062, allocations: 27.87 MB / 0.5712 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01634/0.3226, allocations: 8.166 MB / 0.5792 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009107/0.3317, allocations: 253.3 kB / 0.5794 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02077/0.3525, allocations: 8.039 MB / 0.5873 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01225/0.3647, allocations: 2.831 MB / 0.5901 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006686/0.3714, allocations: 1.884 MB / 0.5919 GB, free: 8.453 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01757/0.389, allocations: 9.828 MB / 0.6015 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02903/0.418, allocations: 13.9 MB / 0.6151 GB, free: 4.055 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01108/0.4291, allocations: 5.393 MB / 0.6203 GB, free: 14.65 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01474/0.4438, allocations: 6.035 MB / 0.6262 GB, free: 8.594 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007677/0.4515, allocations: 1.516 MB / 0.6277 GB, free: 7.078 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01058/0.4621, allocations: 1.902 MB / 0.6296 GB, free: 5.176 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00787/0.4699, allocations: 2.95 MB / 0.6324 GB, free: 2.219 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01839/0.4883, allocations: 5.724 MB / 0.638 GB, free: 12.47 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04409/0.5324, allocations: 20.34 MB / 0.6579 GB, free: 8.062 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.5324, allocations: 0 / 0.6579 GB, free: 8.062 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.5324, allocations: 0 / 0.6579 GB, free: 8.062 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006744/0.5331, allocations: 4 kB / 0.6579 GB, free: 8.059 MB / 462.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.06096/0.5941, allocations: 11.76 MB / 0.6694 GB, free: 12.21 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.121e-05/0.5941, allocations: 12.03 kB / 0.6694 GB, free: 12.2 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0571/0.6512, allocations: 5.551 MB / 0.6748 GB, free: 6.637 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02556/0.6768, allocations: 6.268 MB / 0.6809 GB, free: 308 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001281/0.6781, allocations: 0.6943 MB / 0.6816 GB, free: 15.61 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005769/0.6838, allocations: 0.9061 MB / 0.6825 GB, free: 14.7 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5054/1.189, allocations: 14.88 MB / 0.697 GB, free: 107.5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004626/1.19, allocations: 16.27 kB / 0.6971 GB, free: 107.5 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002649/1.192, allocations: 383.5 kB / 0.6974 GB, free: 107.5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008032/1.193, allocations: 0.5107 MB / 0.6979 GB, free: 107.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02753/1.221, allocations: 13.61 MB / 0.7112 GB, free: 103.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07614/1.297, allocations: 45.61 MB / 0.7558 GB, free: 74.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01101/1.308, allocations: 7.939 MB / 0.7635 GB, free: 69.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003348/1.311, allocations: 2.752 MB / 0.7662 GB, free: 66.48 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002961/1.311, allocations: 117.2 kB / 0.7663 GB, free: 66.38 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/1.312, allocations: 69.52 kB / 0.7664 GB, free: 66.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 6.031e-06/1.312, allocations: 0 / 0.7664 GB, free: 66.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.02443/1.336, allocations: 14.62 MB / 0.7807 GB, free: 52.03 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/1.336, allocations: 94.39 kB / 0.7807 GB, free: 51.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004087/1.34, allocations: 3.493 MB / 0.7842 GB, free: 48.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003004/1.34, allocations: 89.64 kB / 0.7842 GB, free: 48.39 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001773/1.342, allocations: 4.09 MB / 0.7882 GB, free: 44.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008629/1.343, allocations: 1.373 MB / 0.7896 GB, free: 43.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001264/1.344, allocations: 1.156 MB / 0.7907 GB, free: 41.91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.126e-05/1.344, allocations: 301.1 kB / 0.791 GB, free: 41.61 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002843/1.347, allocations: 2.561 MB / 0.7935 GB, free: 39.04 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004109/1.351, allocations: 5.015 MB / 0.7984 GB, free: 32.87 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0071/1.358, allocations: 8.229 MB / 0.8064 GB, free: 23.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.226e-05/1.358, allocations: 24 kB / 0.8064 GB, free: 23.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.011/1.369, allocations: 8.514 MB / 0.8148 GB, free: 14.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/1.369, allocations: 40 kB / 0.8148 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.261e-05/1.37, allocations: 80.84 kB / 0.8149 GB, free: 14.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002005/1.372, allocations: 0.8498 MB / 0.8157 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003923/1.375, allocations: 1.349 MB / 0.817 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00889/1.384, allocations: 7.571 MB / 0.8244 GB, free: 4.895 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003803/1.388, allocations: 319.5 kB / 0.8247 GB, free: 4.582 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005078/1.389, allocations: 315.9 kB / 0.825 GB, free: 4.273 MB / 494.1 MB 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.004443/1.393, allocations: 3.474 MB / 0.8284 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007323/1.394, allocations: 409.4 kB / 0.8288 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01047/1.404, allocations: 5.839 MB / 0.8345 GB, free: 10.53 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-05/1.404, allocations: 40 kB / 0.8345 GB, free: 10.49 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.312e-05/1.404, allocations: 12 kB / 0.8346 GB, free: 10.48 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.793e-05/1.404, allocations: 19.92 kB / 0.8346 GB, free: 10.46 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02587/1.43, allocations: 14.51 MB / 0.8488 GB, free: 11.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/1.43, allocations: 8 kB / 0.8488 GB, free: 11.89 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002739/1.433, allocations: 0.6748 MB / 0.8494 GB, free: 11.21 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002074/1.435, allocations: 0.7091 MB / 0.8501 GB, free: 10.5 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002313/1.435, allocations: 87.97 kB / 0.8502 GB, free: 10.42 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/1.445, allocations: 6.6 MB / 0.8566 GB, free: 3.707 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.354e-06/1.445, allocations: 7.938 kB / 0.8566 GB, free: 3.699 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01418/1.46, allocations: 8.572 MB / 0.865 GB, free: 11 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002479/1.462, allocations: 0.8251 MB / 0.8658 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006026/1.463, allocations: 75.94 kB / 0.8659 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001972/1.465, allocations: 187.8 kB / 0.8661 GB, free: 9.914 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005383/1.465, allocations: 270.4 kB / 0.8663 GB, free: 9.648 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000248/1.465, allocations: 116 kB / 0.8664 GB, free: 9.535 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003966/1.469, allocations: 2.338 MB / 0.8687 GB, free: 7.207 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/1.469, allocations: 0 / 0.8687 GB, free: 7.207 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005739/1.475, allocations: 1.512 MB / 0.8702 GB, free: 5.695 MB / 0.5294 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.0006312/1.476, allocations: 264.7 kB / 0.8705 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01133/1.487, allocations: 6.178 MB / 0.8765 GB, free: 15.25 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/1.487, allocations: 0 / 0.8765 GB, free: 15.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005046/1.492, allocations: 2.677 MB / 0.8791 GB, free: 12.56 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005937/1.498, allocations: 0.8914 MB / 0.88 GB, free: 11.68 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03483/1.533, allocations: 15.68 MB / 0.8953 GB, free: 11.9 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007226/1.54, allocations: 5.898 MB / 0.901 GB, free: 5.957 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005194/1.545, allocations: 1.852 MB / 0.9029 GB, free: 4.098 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/1.546, allocations: 351.3 kB / 0.9032 GB, free: 3.754 MB / 0.5607 GB Notification: Performance of SimCode: time 9.01e-07/1.546, allocations: 0 / 0.9032 GB, free: 3.754 MB / 0.5607 GB Notification: Performance of Templates: time 0.402/1.948, allocations: 63.29 MB / 0.965 GB, free: 166.8 MB / 0.5763 GB " [Timeout remaining time 658] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile [Timeout 660] (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 & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.778128523146734] Failed to read output from testmodel.py, exit status != 0: 1.9583595851436257 1.97043353 1.434628441 Calling exit ...