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.007568/0.007568, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001286/0.001286, allocations: 193.2 kB / 16.67 MB, free: 5.938 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.616/1.616, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.00111/0.00111, allocations: 49.02 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09652/0.09764, allocations: 46.63 MB / 373.2 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003788/0.1015, allocations: 2.213 MB / 375.4 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.1032, allocations: 0.9671 MB / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.1034, allocations: 4 kB / 376.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004035/0.1038, allocations: 95.55 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.000403/0.1042, allocations: 123.2 kB / 376.6 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003705/0.1046, allocations: 123.7 kB / 376.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000349/0.1049, allocations: 290.8 kB / 377 MB, free: 13.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002324/0.1052, allocations: 88.56 kB / 377 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.1054, allocations: 107.6 kB / 377.1 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/0.1056, allocations: 123.5 kB / 377.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.949e-05/0.1056, allocations: 24 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.1058, allocations: 51.92 kB / 377.3 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.56e-05/0.1059, allocations: 55.81 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.106, allocations: 111.4 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004754/0.1065, allocations: 294.7 kB / 377.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.1065, allocations: 3.984 kB / 377.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1065, allocations: 0 / 377.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.1065, allocations: 4 kB / 377.8 MB, free: 12.67 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.0009917/0.1075, allocations: 0.5455 MB / 378.3 MB, free: 12.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.1076, allocations: 12.03 kB / 378.4 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002055/0.1078, allocations: 32.75 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004386/0.1083, allocations: 248.9 kB / 378.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.1083, allocations: 16.36 kB / 378.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.217e-05/0.1084, allocations: 24.12 kB / 378.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003664/0.1087, allocations: 165.2 kB / 378.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.1088, allocations: 4 kB / 378.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.1088, allocations: 8 kB / 378.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.1088, allocations: 4 kB / 378.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000252/0.1091, allocations: 115.9 kB / 379 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009322/0.11, allocations: 0.5702 MB / 379.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003297/0.1103, allocations: 162.5 kB / 379.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.1105, allocations: 84.83 kB / 379.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.1105, allocations: 4 kB / 379.8 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002291/0.1108, allocations: 119.3 kB / 379.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.643e-06/0.1108, allocations: 0 / 379.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004783/0.1113, allocations: 233.7 kB / 380.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.1113, allocations: 59.41 kB / 380.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.1115, allocations: 245 kB / 380.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.1116, allocations: 33.7 kB / 380.5 MB, free: 9.809 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.357e-05/0.1117, allocations: 144.4 kB / 380.6 MB, free: 9.664 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.088e-05/0.1117, allocations: 79.36 kB / 380.7 MB, free: 9.586 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.862e-05/0.1118, allocations: 37.66 kB / 380.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.112, allocations: 338.8 kB / 381 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.1121, allocations: 59.97 kB / 381.1 MB, free: 9.145 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.1122, allocations: 87.28 kB / 381.2 MB, free: 9.047 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.1125, allocations: 143.3 kB / 381.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1125, allocations: 4 kB / 381.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003495/0.1129, allocations: 205.4 kB / 381.5 MB, free: 8.684 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.1129, allocations: 4 kB / 381.5 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.1129, allocations: 0 / 381.5 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.1129, allocations: 4 kB / 381.5 MB, free: 8.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.1132, allocations: 43.92 kB / 381.6 MB, free: 8.633 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.1132, allocations: 3.938 kB / 381.6 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.1133, allocations: 31.77 kB / 381.6 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.1133, allocations: 4 kB / 381.6 MB, free: 8.594 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.0001385/0.1135, allocations: 145.9 kB / 381.8 MB, free: 8.441 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.474e-05/0.1135, allocations: 23.89 kB / 381.8 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.058e-05/0.1136, allocations: 22.19 kB / 381.8 MB, free: 8.395 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1136, allocations: 4 kB / 381.8 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.1136, allocations: 3.938 kB / 381.8 MB, free: 8.387 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-05/0.1136, allocations: 3.984 kB / 381.8 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002788/0.1139, allocations: 289.4 kB / 382.1 MB, free: 8.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1139, allocations: 4 kB / 382.1 MB, free: 8.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.1141, allocations: 31.98 kB / 382.1 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1141, allocations: 4 kB / 382.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.1141, allocations: 4 kB / 382.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.1141, allocations: 7.938 kB / 382.2 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1141, allocations: 3.938 kB / 382.2 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004714/0.1146, allocations: 280.9 kB / 382.4 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.837e-05/0.1147, allocations: 96.94 kB / 382.5 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.147e-05/0.1147, allocations: 8 kB / 382.5 MB, free: 7.582 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.734e-05/0.1148, allocations: 15.98 kB / 382.5 MB, free: 7.566 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.606e-05/0.1149, allocations: 19.97 kB / 382.6 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.1149, allocations: 4 kB / 382.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000166/0.1151, allocations: 184.5 kB / 382.8 MB, free: 7.359 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1151, allocations: 4 kB / 382.8 MB, free: 7.355 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002611/0.1153, allocations: 59.88 kB / 382.8 MB, free: 7.297 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.0008869/0.1162, allocations: 416.1 kB / 383.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003146/0.1166, allocations: 148 kB / 383.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1166, allocations: 3.938 kB / 383.4 MB, free: 6.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.1167, allocations: 71.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.0003287/0.117, allocations: 56.5 kB / 383.5 MB, free: 6.605 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009058/0.118, allocations: 0.541 MB / 384 MB, free: 6.039 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.1184, allocations: 0.7479 MB / 384.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.747e-05/0.1185, allocations: 29.94 kB / 384.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.172e-05/0.1185, allocations: 23.44 kB / 384.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1185, allocations: 0 / 384.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of Templates: time 0.006234/0.1248, allocations: 2.684 MB / 387.5 MB, free: 2.523 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)