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) 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/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) 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: translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009209/0.0009209, allocations: 99.27 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 223.3 MB / 240 MB, free: 5.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009475/0.0009475, allocations: 183.5 kB / 291.3 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03581/0.03581, allocations: 8.806 MB / 351.2 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003404, allocations: 10.03 kB / 414.5 MB, free: 42.74 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06455/0.06491, allocations: 52.56 MB / 467 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02431/0.08923, allocations: 25.97 MB / 493 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01291/0.1022, allocations: 7.883 MB / 0.4891 GB, free: 11.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003433/0.1056, allocations: 199.3 kB / 0.4893 GB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003522/0.1091, allocations: 1.653 MB / 0.4909 GB, free: 9.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005646/0.1148, allocations: 2.448 MB / 0.4933 GB, free: 6.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003008/0.1178, allocations: 1.491 MB / 0.4948 GB, free: 5.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008344/0.1262, allocations: 9.593 MB / 0.5042 GB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02897/0.1552, allocations: 21.19 MB / 0.5249 GB, free: 6.379 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004227/0.1594, allocations: 3.67 MB / 0.5284 GB, free: 2.695 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1655/0.3249, allocations: 4.486 MB / 0.5328 GB, free: 19.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001622/0.3266, allocations: 0.5878 MB / 0.5334 GB, free: 19.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002886/0.3295, allocations: 0.9432 MB / 0.5343 GB, free: 19.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002014/0.3315, allocations: 1.795 MB / 0.5361 GB, free: 19.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00571/0.3373, allocations: 4.494 MB / 0.5405 GB, free: 18.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01227/0.3495, allocations: 17.13 MB / 0.5572 GB, free: 12.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.3496, allocations: 3.969 kB / 0.5572 GB, free: 12.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3496, allocations: 0 / 0.5572 GB, free: 12.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002918/0.3499, allocations: 0.9688 kB / 0.5572 GB, free: 12.91 MB / 366.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.0218/0.3717, allocations: 9.59 MB / 0.5666 GB, free: 8.027 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.3717, allocations: 9.375 kB / 0.5666 GB, free: 8.027 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02875/0.4005, allocations: 5.59 MB / 0.572 GB, free: 5.852 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007902/0.4084, allocations: 6.021 MB / 0.5779 GB, free: 4.176 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003354/0.4087, allocations: 0.6886 MB / 0.5786 GB, free: 4.152 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001353/0.4101, allocations: 0.9146 MB / 0.5795 GB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02172/0.4318, allocations: 14.86 MB / 0.594 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001903/0.432, allocations: 23.81 kB / 0.594 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001037/0.4331, allocations: 380.8 kB / 0.5944 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004638/0.4336, allocations: 0.5075 MB / 0.5949 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0215/0.4551, allocations: 13.57 MB / 0.6081 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05944/0.5145, allocations: 46.76 MB / 0.6538 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01934/0.5339, allocations: 28.28 MB / 0.6814 GB, free: 13.85 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004216/0.5381, allocations: 3.026 MB / 0.6844 GB, free: 10.82 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000302/0.5384, allocations: 240 kB / 0.6846 GB, free: 10.56 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.12e-05/0.5385, allocations: 77.52 kB / 0.6847 GB, free: 10.47 MB / 478.1 MB Notification: Performance of pre-optimization done (n=375): time 5.68e-06/0.5385, allocations: 0 / 0.6847 GB, free: 10.47 MB / 478.1 MB Notification: Performance of matching and sorting (n=382): time 0.02882/0.5673, allocations: 14.59 MB / 0.6989 GB, free: 11.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.5674, allocations: 94.41 kB / 0.699 GB, free: 11.73 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005063/0.5725, allocations: 3.475 MB / 0.7024 GB, free: 8.258 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002246/0.5727, allocations: 93.7 kB / 0.7025 GB, free: 8.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002392/0.5751, allocations: 3.946 MB / 0.7063 GB, free: 4.188 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009891/0.5761, allocations: 1.308 MB / 0.7076 GB, free: 2.891 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006409/0.5768, allocations: 466.8 kB / 0.7081 GB, free: 2.426 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.607e-05/0.5769, allocations: 301.1 kB / 0.7083 GB, free: 2.129 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1684/0.7452, allocations: 2.549 MB / 0.7108 GB, free: 168.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005153/0.7504, allocations: 5.011 MB / 0.7157 GB, free: 165.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009311/0.7598, allocations: 8.211 MB / 0.7237 GB, free: 161.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.525e-05/0.7598, allocations: 21.41 kB / 0.7238 GB, free: 161.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01178/0.7716, allocations: 8.485 MB / 0.732 GB, free: 159.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.892e-05/0.7717, allocations: 47.09 kB / 0.7321 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.15e-05/0.7718, allocations: 81.5 kB / 0.7322 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0021/0.7739, allocations: 0.8317 MB / 0.733 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004007/0.7779, allocations: 1.336 MB / 0.7343 GB, free: 158.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008614/0.7865, allocations: 7.097 MB / 0.7412 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003187/0.7897, allocations: 321.2 kB / 0.7415 GB, free: 154.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003709/0.7901, allocations: 301.6 kB / 0.7418 GB, free: 154.8 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.004452/0.7945, allocations: 3.477 MB / 0.7452 GB, free: 153.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005498/0.7951, allocations: 388 kB / 0.7456 GB, free: 153.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008389/0.8035, allocations: 5.858 MB / 0.7513 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/0.8035, allocations: 36 kB / 0.7513 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.8035, allocations: 8 kB / 0.7513 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.031e-05/0.8036, allocations: 19.03 kB / 0.7514 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01789/0.8215, allocations: 14.79 MB / 0.7658 GB, free: 137.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.8215, allocations: 5.406 kB / 0.7658 GB, free: 137.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002499/0.824, allocations: 0.6657 MB / 0.7665 GB, free: 137.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001776/0.8258, allocations: 0.6941 MB / 0.7671 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001904/0.826, allocations: 82 kB / 0.7672 GB, free: 136.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007148/0.8332, allocations: 6.159 MB / 0.7732 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.8332, allocations: 4 kB / 0.7732 GB, free: 130.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009803/0.843, allocations: 8.539 MB / 0.7816 GB, free: 122.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001263/0.8443, allocations: 0.8592 MB / 0.7824 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004358/0.8447, allocations: 78.47 kB / 0.7825 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001746/0.8465, allocations: 183.8 kB / 0.7827 GB, free: 121 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003883/0.8469, allocations: 264.1 kB / 0.7829 GB, free: 120.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002013/0.8471, allocations: 108 kB / 0.783 GB, free: 120.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002613/0.8497, allocations: 2.338 MB / 0.7853 GB, free: 118.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8497, allocations: 0 / 0.7853 GB, free: 118.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004216/0.8539, allocations: 1.509 MB / 0.7868 GB, free: 116.8 MB / 494.1 MB 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.0004153/0.8543, allocations: 253.2 kB / 0.787 GB, free: 116.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007328/0.8617, allocations: 6.389 MB / 0.7933 GB, free: 110.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.8617, allocations: 0 / 0.7933 GB, free: 110.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003417/0.8651, allocations: 2.874 MB / 0.7961 GB, free: 107.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005387/0.8705, allocations: 0.8563 MB / 0.7969 GB, free: 106.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01921/0.8897, allocations: 19.15 MB / 0.8156 GB, free: 87.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004395/0.8942, allocations: 5.723 MB / 0.8212 GB, free: 81.41 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00113/0.8953, allocations: 371.4 kB / 0.8215 GB, free: 81.05 MB / 494.1 MB Notification: Performance of SimCode: time 4.3e-07/0.8953, allocations: 0 / 0.8215 GB, free: 81.05 MB / 494.1 MB Notification: Performance of Templates: time 0.2828/1.178, allocations: 145.9 MB / 0.964 GB, free: 101 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile (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)