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.007439/0.007439, allocations: 96.23 kB / 15.73 MB, free: 6.062 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.001266/0.001266, allocations: 198.4 kB / 16.68 MB, free: 5.98 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.655/1.655, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001467/0.001467, allocations: 45.22 kB / 326.5 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1043, allocations: 46.63 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003787/0.1082, allocations: 2.213 MB / 375.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.11, allocations: 0.9671 MB / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001831/0.1102, allocations: 4 kB / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004088/0.1106, allocations: 87.5 kB / 376.4 MB, free: 14.04 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.0003892/0.111, allocations: 123.3 kB / 376.5 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004151/0.1115, allocations: 135.6 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004118/0.1119, allocations: 282.8 kB / 377 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002322/0.1121, allocations: 88.55 kB / 377 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.1124, allocations: 119.5 kB / 377.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.1126, allocations: 119.5 kB / 377.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.529e-05/0.1126, allocations: 24 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.1128, allocations: 47.94 kB / 377.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.112e-05/0.1129, allocations: 51.83 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.1131, allocations: 119.4 kB / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004736/0.1136, allocations: 298.6 kB / 377.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1136, allocations: 0 / 377.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1136, allocations: 4 kB / 377.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.1136, allocations: 0 / 377.8 MB, free: 12.65 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.000959/0.1146, allocations: 0.5455 MB / 378.4 MB, free: 12.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.1146, allocations: 8.031 kB / 378.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.1148, allocations: 36.75 kB / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004276/0.1153, allocations: 248.9 kB / 378.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.1153, allocations: 16.38 kB / 378.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.736e-05/0.1153, allocations: 20.12 kB / 378.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000376/0.1157, allocations: 165.2 kB / 378.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.1158, allocations: 4 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.1158, allocations: 12 kB / 378.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.455e-06/0.1158, allocations: 4 kB / 378.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000258/0.1161, allocations: 115.9 kB / 379 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009921/0.1171, allocations: 0.5664 MB / 379.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.1174, allocations: 166.5 kB / 379.7 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.1176, allocations: 84.83 kB / 379.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.1176, allocations: 3.984 kB / 379.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000225/0.1178, allocations: 111.4 kB / 379.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 2.314e-06/0.1179, allocations: 0 / 379.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005235/0.1184, allocations: 245.7 kB / 380.1 MB, free: 10.15 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/0.1184, allocations: 51.41 kB / 380.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.1187, allocations: 253 kB / 380.4 MB, free: 9.828 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.1188, allocations: 29.7 kB / 380.5 MB, free: 9.793 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.1189, allocations: 148.4 kB / 380.6 MB, free: 9.645 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.293e-05/0.119, allocations: 71.38 kB / 380.7 MB, free: 9.574 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.091e-05/0.1191, allocations: 37.7 kB / 380.7 MB, free: 9.531 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.1193, allocations: 342.8 kB / 381 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.1194, allocations: 51.98 kB / 381.1 MB, free: 9.137 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001373/0.1195, allocations: 95.25 kB / 381.2 MB, free: 9.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002469/0.1198, allocations: 139.4 kB / 381.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.1198, allocations: 4 kB / 381.3 MB, free: 8.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003483/0.1202, allocations: 205.4 kB / 381.5 MB, free: 8.672 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.1202, allocations: 4 kB / 381.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1202, allocations: 0 / 381.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.1202, allocations: 4 kB / 381.5 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.1205, allocations: 47.91 kB / 381.6 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.1205, allocations: 7.938 kB / 381.6 MB, free: 8.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.1206, allocations: 23.78 kB / 381.6 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/0.1206, allocations: 8 kB / 381.6 MB, free: 8.578 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.0002429/0.1209, allocations: 145.9 kB / 381.8 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.671e-05/0.1209, allocations: 19.91 kB / 381.8 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.921e-05/0.121, allocations: 34.17 kB / 381.8 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.121, allocations: 0 / 381.8 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.121, allocations: 3.938 kB / 381.8 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.121, allocations: 0 / 381.8 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004008/0.1214, allocations: 285.4 kB / 382.1 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.1214, allocations: 0 / 382.1 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001822/0.1216, allocations: 39.92 kB / 382.1 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.1216, allocations: 4 kB / 382.1 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.1217, allocations: 3.984 kB / 382.1 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.1217, allocations: 4 kB / 382.1 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1217, allocations: 3.938 kB / 382.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006229/0.1223, allocations: 276.9 kB / 382.4 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.1225, allocations: 96.94 kB / 382.5 MB, free: 7.582 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.218e-05/0.1225, allocations: 15.98 kB / 382.5 MB, free: 7.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.541e-05/0.1226, allocations: 8 kB / 382.5 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.462e-05/0.1227, allocations: 15.98 kB / 382.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.1227, allocations: 4 kB / 382.6 MB, free: 7.539 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001837/0.1229, allocations: 192.5 kB / 382.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1229, allocations: 3.938 kB / 382.8 MB, free: 7.344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000288/0.1232, allocations: 59.89 kB / 382.8 MB, free: 7.285 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.0009316/0.1241, allocations: 404.2 kB / 383.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003448/0.1245, allocations: 152 kB / 383.4 MB, free: 6.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1245, allocations: 3.938 kB / 383.4 MB, free: 6.727 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.1246, allocations: 67.92 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.0003764/0.125, allocations: 68.38 kB / 383.5 MB, free: 6.594 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.1263, allocations: 0.5449 MB / 384 MB, free: 6.023 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.1267, allocations: 0.7441 MB / 384.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001411/0.1269, allocations: 29.94 kB / 384.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.943e-05/0.127, allocations: 23.44 kB / 384.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.127, allocations: 0 / 384.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of Templates: time 0.007957/0.1349, allocations: 2.684 MB / 387.5 MB, free: 2.512 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)