Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006326/0.006326, allocations: 101.6 kB / 15.73 MB, free: 5.547 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 190.2 kB / 16.67 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.671/1.671, allocations: 205.1 MB / 222.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 47.94 kB / 326.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.111, allocations: 46.62 MB / 373.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003838/0.1148, allocations: 2.231 MB / 375.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.1166, allocations: 0.9593 MB / 376.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.1168, allocations: 4 kB / 376.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004962/0.1173, allocations: 95.5 kB / 376.4 MB, free: 1.266 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004265/0.1178, allocations: 127.2 kB / 376.5 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003738/0.1182, allocations: 119.7 kB / 376.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003428/0.1185, allocations: 286.8 kB / 376.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.1187, allocations: 96.55 kB / 377 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.1189, allocations: 111.6 kB / 377.1 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002072/0.1191, allocations: 123.5 kB / 377.3 MB, free: 428 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.767e-05/0.1192, allocations: 16 kB / 377.3 MB, free: 412 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.1193, allocations: 51.98 kB / 377.3 MB, free: 360 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.972e-05/0.1194, allocations: 55.81 kB / 377.4 MB, free: 304 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.1195, allocations: 115.3 kB / 377.5 MB, free: 188 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2266/0.3461, allocations: 283.9 kB / 377.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3461, allocations: 1.188 kB / 377.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3462, allocations: 0 / 377.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.624e-05/0.3462, allocations: 0.6562 kB / 377.8 MB, free: 10.27 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0009503/0.3471, allocations: 0.5424 MB / 378.3 MB, free: 9.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.774e-05/0.3472, allocations: 10.55 kB / 378.3 MB, free: 9.852 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.3474, allocations: 35.81 kB / 378.4 MB, free: 9.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.3479, allocations: 249.7 kB / 378.6 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.701e-05/0.3479, allocations: 14.36 kB / 378.6 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.3479, allocations: 19.59 kB / 378.6 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003943/0.3484, allocations: 169.6 kB / 378.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.3484, allocations: 2.297 kB / 378.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.3484, allocations: 4.875 kB / 378.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3484, allocations: 4.797 kB / 378.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002713/0.3487, allocations: 118 kB / 378.9 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.3497, allocations: 0.553 MB / 379.5 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004246/0.3501, allocations: 169.9 kB / 379.7 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.3504, allocations: 90.23 kB / 379.7 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.591e-05/0.3504, allocations: 2.75 kB / 379.7 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003034/0.3507, allocations: 123.4 kB / 379.9 MB, free: 9.195 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 2.004e-06/0.3507, allocations: 0 / 379.9 MB, free: 9.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006381/0.3514, allocations: 230.1 kB / 380.1 MB, free: 9.152 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/0.3515, allocations: 55.16 kB / 380.1 MB, free: 9.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004521/0.3519, allocations: 252.2 kB / 380.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.352, allocations: 33.98 kB / 380.4 MB, free: 8.953 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.3521, allocations: 148.7 kB / 380.6 MB, free: 8.855 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.694e-05/0.3522, allocations: 67.66 kB / 380.6 MB, free: 8.812 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.256e-05/0.3523, allocations: 42.56 kB / 380.7 MB, free: 8.797 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.048e-05/0.3524, allocations: 335.2 kB / 381 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.3526, allocations: 50.67 kB / 381.1 MB, free: 8.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/0.3528, allocations: 94.44 kB / 381.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.3531, allocations: 145.8 kB / 381.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.3531, allocations: 0.5938 kB / 381.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004292/0.3536, allocations: 208.3 kB / 381.5 MB, free: 8.359 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.3536, allocations: 5.922 kB / 381.5 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.3536, allocations: 1.062 kB / 381.5 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.64e-05/0.3537, allocations: 2.312 kB / 381.5 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002429/0.3539, allocations: 46.42 kB / 381.6 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.3539, allocations: 1.156 kB / 381.6 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.777e-05/0.354, allocations: 24.75 kB / 381.6 MB, free: 8.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.937e-05/0.3541, allocations: 10.05 kB / 381.6 MB, free: 8.348 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001309/0.3542, allocations: 152.1 kB / 381.7 MB, free: 8.227 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.578e-05/0.3542, allocations: 25.84 kB / 381.8 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.037e-05/0.3543, allocations: 27.69 kB / 381.8 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.3543, allocations: 2.75 kB / 381.8 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.3543, allocations: 0.7969 kB / 381.8 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3544, allocations: 4.547 kB / 381.8 MB, free: 8.203 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.3546, allocations: 283.3 kB / 382.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3547, allocations: 0.9844 kB / 382.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.3548, allocations: 40.11 kB / 382.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3549, allocations: 5.406 kB / 382.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.3549, allocations: 1.188 kB / 382.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3549, allocations: 3.328 kB / 382.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3549, allocations: 0 / 382.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005391/0.3554, allocations: 289.4 kB / 382.4 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.619e-05/0.3555, allocations: 100.6 kB / 382.5 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/0.3555, allocations: 5.875 kB / 382.5 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.559e-05/0.3556, allocations: 11.41 kB / 382.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.29e-05/0.3557, allocations: 14.31 kB / 382.5 MB, free: 7.805 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.293e-05/0.3557, allocations: 9.969 kB / 382.5 MB, free: 7.805 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001475/0.3558, allocations: 186.5 kB / 382.7 MB, free: 7.727 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3559, allocations: 0 / 382.7 MB, free: 7.727 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002749/0.3561, allocations: 51.48 kB / 382.8 MB, free: 7.727 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009271/0.3571, allocations: 415.2 kB / 383.2 MB, free: 7.426 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003976/0.3575, allocations: 142.7 kB / 383.3 MB, free: 7.418 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3575, allocations: 1.062 kB / 383.3 MB, free: 7.418 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001826/0.3577, allocations: 73.12 kB / 383.4 MB, free: 7.418 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004189/0.3581, allocations: 57.69 kB / 383.4 MB, free: 7.402 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.3593, allocations: 0.5329 MB / 384 MB, free: 7.098 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.3596, allocations: 0.7469 MB / 384.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.3598, allocations: 36.12 kB / 384.8 MB, free: 6.395 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.117e-05/0.3598, allocations: 23.03 kB / 384.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3598, allocations: 0 / 384.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of Templates: time 0.007296/0.3671, allocations: 2.747 MB / 387.5 MB, free: 6.117 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)