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.001402/0.001402, allocations: 104.4 kB / 19.7 MB, free: 2.137 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.493/1.493, allocations: 230.6 MB / 253.4 MB, free: 14.29 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.001671/0.001671, allocations: 213.5 kB / 310 MB, free: 3.074 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.0412/0.0412, allocations: 8.919 MB / 375.3 MB, free: 6.582 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.002473/0.002473, allocations: 95.86 kB / 0.4904 GB, free: 44.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09453, allocations: 55.6 MB / 0.5447 GB, free: 4.535 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2994/0.3939, allocations: 23.84 MB / 0.568 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01664/0.4105, allocations: 7.824 MB / 0.5756 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006439/0.417, allocations: 247.8 kB / 0.5758 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01803/0.435, allocations: 7.404 MB / 0.5831 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01103/0.446, allocations: 2.736 MB / 0.5858 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006737/0.4528, allocations: 1.812 MB / 0.5875 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01295/0.4657, allocations: 9.819 MB / 0.5971 GB, free: 48 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0291/0.4948, allocations: 13.73 MB / 0.6105 GB, free: 7.391 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01109/0.5059, allocations: 5.397 MB / 0.6158 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01288/0.5188, allocations: 5.768 MB / 0.6214 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005105/0.5239, allocations: 1.516 MB / 0.6229 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008027/0.5319, allocations: 1.875 MB / 0.6247 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006165/0.5381, allocations: 2.95 MB / 0.6276 GB, free: 8.637 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01166/0.5498, allocations: 4.448 MB / 0.632 GB, free: 4.172 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03013/0.5799, allocations: 20.43 MB / 0.6519 GB, free: 15.68 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.5799, allocations: 0 / 0.6519 GB, free: 15.68 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.5799, allocations: 0 / 0.6519 GB, free: 15.68 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006381/0.5805, allocations: 4 kB / 0.6519 GB, free: 15.67 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.03822/0.6187, allocations: 11.75 MB / 0.6634 GB, free: 3.836 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.6188, allocations: 11.98 kB / 0.6634 GB, free: 3.824 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03206/0.6509, allocations: 5.555 MB / 0.6688 GB, free: 14.26 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01551/0.6664, allocations: 6.269 MB / 0.6749 GB, free: 7.922 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009757/0.6673, allocations: 0.6865 MB / 0.6756 GB, free: 7.234 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003844/0.6712, allocations: 0.91 MB / 0.6765 GB, free: 6.324 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03937/0.7106, allocations: 15.04 MB / 0.6912 GB, free: 7.203 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003638/0.7109, allocations: 15.94 kB / 0.6912 GB, free: 7.188 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003043/0.714, allocations: 383.9 kB / 0.6916 GB, free: 6.812 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006078/0.7146, allocations: 0.5074 MB / 0.6921 GB, free: 6.305 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03034/0.7449, allocations: 13.56 MB / 0.7053 GB, free: 8.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07988/0.8248, allocations: 40.48 MB / 0.7448 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01475/0.8395, allocations: 7.851 MB / 0.7525 GB, free: 8.566 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004987/0.8445, allocations: 2.745 MB / 0.7552 GB, free: 5.82 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003526/0.8449, allocations: 94.86 kB / 0.7553 GB, free: 5.727 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.467e-05/0.845, allocations: 73.98 kB / 0.7554 GB, free: 5.645 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=375): time 6.593e-06/0.845, allocations: 4 kB / 0.7554 GB, free: 5.641 MB / 0.5294 GB Notification: Performance of matching and sorting (n=382): time 0.03327/0.8783, allocations: 14.53 MB / 0.7695 GB, free: 7.039 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.286e-05/0.8783, allocations: 94.39 kB / 0.7696 GB, free: 6.934 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005683/0.884, allocations: 3.443 MB / 0.773 GB, free: 3.484 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000659/0.8847, allocations: 85.7 kB / 0.7731 GB, free: 3.395 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.4378/1.322, allocations: 4.089 MB / 0.7771 GB, free: 165 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001405/1.324, allocations: 1.379 MB / 0.7784 GB, free: 164.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001708/1.326, allocations: 1.156 MB / 0.7796 GB, free: 164.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.593e-05/1.326, allocations: 301.8 kB / 0.7798 GB, free: 164.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003469/1.329, allocations: 2.547 MB / 0.7823 GB, free: 164.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00543/1.335, allocations: 5.043 MB / 0.7873 GB, free: 160.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009867/1.344, allocations: 8.219 MB / 0.7953 GB, free: 155.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001541/1.345, allocations: 24.75 kB / 0.7953 GB, free: 155.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01623/1.361, allocations: 8.487 MB / 0.8036 GB, free: 151.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.591e-05/1.361, allocations: 48.28 kB / 0.8036 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002753/1.361, allocations: 81.91 kB / 0.8037 GB, free: 151.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002583/1.364, allocations: 0.8302 MB / 0.8045 GB, free: 151.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004876/1.369, allocations: 1.343 MB / 0.8058 GB, free: 151.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/1.379, allocations: 7.324 MB / 0.813 GB, free: 147.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004483/1.383, allocations: 320.9 kB / 0.8133 GB, free: 147.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008459/1.384, allocations: 308.8 kB / 0.8136 GB, free: 147.1 MB / 0.545 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.006257/1.39, allocations: 3.479 MB / 0.817 GB, free: 145.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001014/1.391, allocations: 399.9 kB / 0.8174 GB, free: 145.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008462/1.4, allocations: 5.823 MB / 0.8231 GB, free: 142.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.864e-05/1.4, allocations: 45.88 kB / 0.8231 GB, free: 142.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/1.4, allocations: 7.781 kB / 0.8231 GB, free: 142.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-05/1.4, allocations: 20.86 kB / 0.8231 GB, free: 142.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01946/1.419, allocations: 12.61 MB / 0.8354 GB, free: 135.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/1.419, allocations: 7.938 kB / 0.8354 GB, free: 135.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002332/1.422, allocations: 0.6752 MB / 0.8361 GB, free: 135 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001721/1.423, allocations: 0.6916 MB / 0.8368 GB, free: 134.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002451/1.424, allocations: 91.08 kB / 0.8369 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007067/1.431, allocations: 6.374 MB / 0.8431 GB, free: 128.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.431, allocations: 4 kB / 0.8431 GB, free: 128.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/1.441, allocations: 8.543 MB / 0.8514 GB, free: 119.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002413/1.444, allocations: 0.8096 MB / 0.8522 GB, free: 118.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005425/1.444, allocations: 74.25 kB / 0.8523 GB, free: 118.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/1.446, allocations: 175.8 kB / 0.8525 GB, free: 118.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004241/1.446, allocations: 276.6 kB / 0.8527 GB, free: 118.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002022/1.447, allocations: 116 kB / 0.8528 GB, free: 118.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00282/1.449, allocations: 2.202 MB / 0.855 GB, free: 116 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.1e-08/1.449, allocations: 6.953 kB / 0.855 GB, free: 116 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005412/1.455, allocations: 1.512 MB / 0.8565 GB, free: 114.5 MB / 0.545 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.0006172/1.455, allocations: 249.6 kB / 0.8567 GB, free: 114.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008934/1.464, allocations: 6.166 MB / 0.8627 GB, free: 108.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.225e-05/1.464, allocations: 192 / 0.8627 GB, free: 108.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004301/1.469, allocations: 2.662 MB / 0.8653 GB, free: 105.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00419/1.473, allocations: 0.841 MB / 0.8662 GB, free: 104.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02544/1.498, allocations: 15.4 MB / 0.8812 GB, free: 89.13 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005189/1.504, allocations: 5.265 MB / 0.8863 GB, free: 83.81 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/1.505, allocations: 383.3 kB / 0.8867 GB, free: 83.43 MB / 0.545 GB Notification: Performance of SimCode: time 1.653e-06/1.505, allocations: 0 / 0.8867 GB, free: 83.43 MB / 0.545 GB Notification: Performance of Templates: time 0.4317/1.937, allocations: 151.5 MB / 1.035 GB, free: 174 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: 17.284340277314186] Failed to read output from testmodel.py, exit status != 0: 1.9448638008907437 1.955638661 1.37304613 Calling exit ...