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.001556/0.001556, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.45/1.45, allocations: 230.6 MB / 253.4 MB, free: 8.301 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.001718/0.001718, allocations: 210 kB / 310 MB, free: 3.145 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.04124/0.04124, allocations: 8.913 MB / 375.3 MB, free: 1.895 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.002843/0.002843, allocations: 90.52 kB / 0.4905 GB, free: 6.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3017, allocations: 55.6 MB / 0.5448 GB, free: 27.36 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02296/0.3246, allocations: 27.88 MB / 0.572 GB, free: 7.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01793/0.3426, allocations: 8.159 MB / 0.5799 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007366/0.3499, allocations: 251.5 kB / 0.5802 GB, free: 1.332 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02108/0.371, allocations: 8.047 MB / 0.588 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01184/0.3829, allocations: 2.819 MB / 0.5908 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007491/0.3903, allocations: 1.896 MB / 0.5926 GB, free: 8.625 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01777/0.4081, allocations: 9.829 MB / 0.6022 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03345/0.4416, allocations: 13.9 MB / 0.6158 GB, free: 4.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01153/0.4531, allocations: 5.393 MB / 0.6211 GB, free: 14.77 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01253/0.4656, allocations: 6.035 MB / 0.627 GB, free: 8.719 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0058/0.4714, allocations: 1.516 MB / 0.6285 GB, free: 7.203 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008446/0.4799, allocations: 1.91 MB / 0.6303 GB, free: 5.293 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006356/0.4862, allocations: 2.942 MB / 0.6332 GB, free: 2.344 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0144/0.5006, allocations: 5.724 MB / 0.6388 GB, free: 12.6 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03403/0.5347, allocations: 20.35 MB / 0.6587 GB, free: 8.184 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.14e-05/0.5347, allocations: 4 kB / 0.6587 GB, free: 8.18 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.5347, allocations: 0 / 0.6587 GB, free: 8.18 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000675/0.5353, allocations: 0 / 0.6587 GB, free: 8.18 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.04234/0.5777, allocations: 11.76 MB / 0.6701 GB, free: 12.34 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.93e-05/0.5777, allocations: 12.03 kB / 0.6701 GB, free: 12.33 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0314/0.6091, allocations: 5.558 MB / 0.6756 GB, free: 6.758 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01622/0.6254, allocations: 6.268 MB / 0.6817 GB, free: 432 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000866/0.6262, allocations: 0.6904 MB / 0.6824 GB, free: 15.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004201/0.6304, allocations: 0.9061 MB / 0.6833 GB, free: 14.82 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2972/0.9276, allocations: 14.89 MB / 0.6978 GB, free: 109.8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006319/0.9282, allocations: 17.06 kB / 0.6978 GB, free: 109.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003878/0.9321, allocations: 384.3 kB / 0.6982 GB, free: 109.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009175/0.933, allocations: 0.5101 MB / 0.6987 GB, free: 109.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02868/0.9617, allocations: 13.61 MB / 0.712 GB, free: 105.7 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08175/1.043, allocations: 45.61 MB / 0.7565 GB, free: 77 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01294/1.056, allocations: 7.938 MB / 0.7643 GB, free: 71.29 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004287/1.061, allocations: 2.752 MB / 0.767 GB, free: 68.54 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004275/1.061, allocations: 122.2 kB / 0.7671 GB, free: 68.44 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.23e-05/1.061, allocations: 69.52 kB / 0.7671 GB, free: 68.36 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 6.332e-06/1.061, allocations: 0 / 0.7671 GB, free: 68.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.02782/1.089, allocations: 14.61 MB / 0.7814 GB, free: 53.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/1.089, allocations: 90.41 kB / 0.7815 GB, free: 53.63 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006588/1.096, allocations: 3.488 MB / 0.7849 GB, free: 50.14 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008195/1.096, allocations: 89.7 kB / 0.785 GB, free: 50.05 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00214/1.099, allocations: 4.104 MB / 0.789 GB, free: 45.93 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001495/1.1, allocations: 1.374 MB / 0.7903 GB, free: 44.58 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003156/1.103, allocations: 1.156 MB / 0.7915 GB, free: 43.41 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.252e-05/1.103, allocations: 301.1 kB / 0.7917 GB, free: 43.11 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003903/1.107, allocations: 2.553 MB / 0.7942 GB, free: 40.55 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005164/1.112, allocations: 5.023 MB / 0.7991 GB, free: 34.37 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009131/1.121, allocations: 8.222 MB / 0.8072 GB, free: 24.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.643e-05/1.122, allocations: 24 kB / 0.8072 GB, free: 24.95 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01652/1.138, allocations: 8.523 MB / 0.8155 GB, free: 16.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/1.138, allocations: 40 kB / 0.8156 GB, free: 16.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000183/1.138, allocations: 84 kB / 0.8156 GB, free: 16.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00242/1.141, allocations: 0.8461 MB / 0.8165 GB, free: 15.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004932/1.146, allocations: 1.341 MB / 0.8178 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009909/1.156, allocations: 7.575 MB / 0.8252 GB, free: 6.402 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004417/1.16, allocations: 323.5 kB / 0.8255 GB, free: 6.086 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001094/1.161, allocations: 307.9 kB / 0.8258 GB, free: 5.785 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.006519/1.168, allocations: 3.474 MB / 0.8292 GB, free: 2.297 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001366/1.169, allocations: 409.4 kB / 0.8296 GB, free: 1.895 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01272/1.182, allocations: 5.844 MB / 0.8353 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.243e-05/1.182, allocations: 40 kB / 0.8353 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.578e-05/1.182, allocations: 11.94 kB / 0.8353 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.127e-05/1.182, allocations: 19.92 kB / 0.8353 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03621/1.218, allocations: 14.51 MB / 0.8495 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.877e-05/1.218, allocations: 4 kB / 0.8495 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003036/1.221, allocations: 0.6748 MB / 0.8502 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002388/1.224, allocations: 0.7096 MB / 0.8509 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006022/1.224, allocations: 87.97 kB / 0.8509 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01114/1.235, allocations: 6.606 MB / 0.8574 GB, free: 5.191 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.924e-06/1.235, allocations: 4 kB / 0.8574 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01737/1.253, allocations: 8.578 MB / 0.8658 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003197/1.256, allocations: 0.8212 MB / 0.8666 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001412/1.257, allocations: 75.89 kB / 0.8666 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002764/1.26, allocations: 183.8 kB / 0.8668 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009517/1.261, allocations: 278.5 kB / 0.8671 GB, free: 11.13 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005961/1.262, allocations: 116 kB / 0.8672 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005713/1.267, allocations: 2.334 MB / 0.8695 GB, free: 8.695 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/1.267, allocations: 0 / 0.8695 GB, free: 8.695 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007757/1.275, allocations: 1.512 MB / 0.871 GB, free: 7.184 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.001065/1.276, allocations: 261.8 kB / 0.8712 GB, free: 6.926 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01338/1.29, allocations: 6.178 MB / 0.8772 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.467e-06/1.29, allocations: 0 / 0.8772 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005994/1.296, allocations: 2.673 MB / 0.8798 GB, free: 14.05 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006188/1.302, allocations: 0.8956 MB / 0.8807 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04056/1.342, allocations: 15.42 MB / 0.8958 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01241/1.355, allocations: 5.723 MB / 0.9014 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002247/1.357, allocations: 391.3 kB / 0.9017 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.322e-06/1.357, allocations: 0 / 0.9017 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.4776/1.835, allocations: 149.8 MB / 1.048 GB, free: 89.04 MB / 0.5762 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: 16.755515665980056] Failed to read output from testmodel.py, exit status != 0: 1.845480180112645 1.855877854 1.318262429 Calling exit ...