Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.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.008424/0.008424, allocations: 103.9 kB / 15.74 MB, free: 5.953 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.00133/0.001331, allocations: 188.9 kB / 16.67 MB, free: 5.883 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.589/1.589, allocations: 205.1 MB / 222.6 MB, free: 4.355 MB / 174.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.001383/0.001383, allocations: 53.84 kB / 326.5 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09652/0.09791, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003721/0.1017, allocations: 2.221 MB / 375.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.1033, allocations: 0.9671 MB / 376.3 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.1034, allocations: 4 kB / 376.3 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003872/0.1038, allocations: 95.48 kB / 376.4 MB, free: 14 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.0003368/0.1042, allocations: 115.3 kB / 376.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003439/0.1045, allocations: 123.7 kB / 376.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003112/0.1049, allocations: 286.8 kB / 376.9 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002014/0.1051, allocations: 88.52 kB / 377 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001599/0.1052, allocations: 115.6 kB / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001771/0.1054, allocations: 123.5 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.175e-05/0.1055, allocations: 20 kB / 377.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.1056, allocations: 55.92 kB / 377.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.677e-05/0.1057, allocations: 55.81 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.1058, allocations: 111.4 kB / 377.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004131/0.1063, allocations: 295 kB / 377.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.1063, allocations: 0 / 377.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.786e-06/0.1063, allocations: 0 / 377.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.1063, allocations: 0 / 377.8 MB, free: 12.64 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.0009289/0.1072, allocations: 0.5419 MB / 378.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.1073, allocations: 8.031 kB / 378.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.1074, allocations: 32.66 kB / 378.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.1078, allocations: 248.8 kB / 378.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.1079, allocations: 12.38 kB / 378.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/0.1079, allocations: 24.12 kB / 378.7 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003141/0.1082, allocations: 161.2 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.1082, allocations: 8 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.1083, allocations: 4 kB / 378.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.1083, allocations: 7.984 kB / 378.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002384/0.1085, allocations: 119.9 kB / 378.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008611/0.1094, allocations: 0.5662 MB / 379.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/0.1097, allocations: 158.5 kB / 379.7 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.1099, allocations: 88.77 kB / 379.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.817e-05/0.1099, allocations: 3.984 kB / 379.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.1102, allocations: 119.6 kB / 379.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.703e-06/0.1102, allocations: 0 / 379.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005131/0.1107, allocations: 237.3 kB / 380.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.1108, allocations: 59.28 kB / 380.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.111, allocations: 253 kB / 380.4 MB, free: 9.816 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.1111, allocations: 25.7 kB / 380.4 MB, free: 9.785 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.1112, allocations: 148.3 kB / 380.6 MB, free: 9.637 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.746e-05/0.1112, allocations: 71 kB / 380.7 MB, free: 9.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.545e-05/0.1113, allocations: 41.7 kB / 380.7 MB, free: 9.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1115, allocations: 334.8 kB / 381 MB, free: 9.184 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.1116, allocations: 55.97 kB / 381.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.1117, allocations: 87.28 kB / 381.2 MB, free: 9.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.112, allocations: 147.3 kB / 381.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.112, allocations: 4 kB / 381.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003492/0.1124, allocations: 201.2 kB / 381.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.1124, allocations: 5.094 kB / 381.5 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.1124, allocations: 4 kB / 381.5 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.1125, allocations: 0 / 381.5 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.1127, allocations: 43.92 kB / 381.6 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.1127, allocations: 7.938 kB / 381.6 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.541e-05/0.1128, allocations: 19.83 kB / 381.6 MB, free: 8.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.1128, allocations: 8 kB / 381.6 MB, free: 8.582 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.0001627/0.113, allocations: 145.9 kB / 381.7 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.1131, allocations: 23.72 kB / 381.8 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.21e-05/0.1132, allocations: 30.19 kB / 381.8 MB, free: 8.375 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1132, allocations: 0 / 381.8 MB, free: 8.375 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.1132, allocations: 3.938 kB / 381.8 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.1132, allocations: 11.92 kB / 381.8 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003566/0.1136, allocations: 281.5 kB / 382.1 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1136, allocations: 0 / 382.1 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001775/0.1138, allocations: 39.92 kB / 382.1 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1138, allocations: 4 kB / 382.1 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.972e-05/0.1138, allocations: 4 kB / 382.1 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.1138, allocations: 0 / 382.1 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/0.1138, allocations: 7.938 kB / 382.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005522/0.1144, allocations: 280.7 kB / 382.4 MB, free: 7.688 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.672e-05/0.1145, allocations: 100.8 kB / 382.5 MB, free: 7.57 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.472e-05/0.1145, allocations: 4 kB / 382.5 MB, free: 7.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.912e-05/0.1146, allocations: 19.98 kB / 382.5 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.049e-05/0.1147, allocations: 7.984 kB / 382.5 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.1147, allocations: 4 kB / 382.5 MB, free: 7.535 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002059/0.1149, allocations: 188.5 kB / 382.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1149, allocations: 0 / 382.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003112/0.1153, allocations: 55.98 kB / 382.8 MB, free: 7.293 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.001067/0.1163, allocations: 412.1 kB / 383.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003752/0.1167, allocations: 151.9 kB / 383.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1167, allocations: 4 kB / 383.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001433/0.1169, allocations: 67.91 kB / 383.4 MB, free: 6.66 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004007/0.1173, allocations: 60.55 kB / 383.5 MB, free: 6.602 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.1184, allocations: 0.5414 MB / 384 MB, free: 6.035 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003607/0.1188, allocations: 0.7482 MB / 384.7 MB, free: 5.262 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001103/0.1189, allocations: 29.94 kB / 384.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.68e-05/0.119, allocations: 19.44 kB / 384.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of SimCode: time 2.01e-07/0.119, allocations: 0 / 384.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of Templates: time 0.007474/0.1265, allocations: 2.692 MB / 387.5 MB, free: 2.516 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)