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.006175/0.006175, allocations: 107.8 kB / 15.74 MB, free: 6.449 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.001304/0.001304, allocations: 196 kB / 16.67 MB, free: 6.355 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.615/1.615, allocations: 205.1 MB / 222.6 MB, free: 4.539 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.001182/0.001182, allocations: 54.52 kB / 326.5 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1037, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003763/0.1075, allocations: 2.209 MB / 375.4 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001876/0.1094, allocations: 0.971 MB / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.1095, allocations: 4 kB / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004296/0.11, allocations: 95.5 kB / 376.4 MB, free: 14.02 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.0003419/0.1103, allocations: 119.3 kB / 376.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003439/0.1107, allocations: 127.6 kB / 376.7 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003356/0.111, allocations: 286.8 kB / 377 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.1113, allocations: 92.5 kB / 377 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.1114, allocations: 115.5 kB / 377.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.1117, allocations: 119.5 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.68e-05/0.1117, allocations: 20 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.1119, allocations: 59.92 kB / 377.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.772e-05/0.112, allocations: 51.83 kB / 377.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.1121, allocations: 119.4 kB / 377.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003295/0.1124, allocations: 287 kB / 377.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.1124, allocations: 0 / 377.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1125, allocations: 0 / 377.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.1125, 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.0008004/0.1133, allocations: 0.5419 MB / 378.3 MB, free: 12.06 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.1133, allocations: 12.03 kB / 378.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.1135, allocations: 28.66 kB / 378.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.1138, allocations: 248.8 kB / 378.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.1139, allocations: 12.38 kB / 378.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.261e-05/0.1139, allocations: 24.12 kB / 378.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003317/0.1143, allocations: 165.2 kB / 378.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.1143, allocations: 0 / 378.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.1143, allocations: 12 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.1143, allocations: 4 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002398/0.1146, allocations: 115.9 kB / 378.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009089/0.1155, allocations: 0.5584 MB / 379.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.1158, allocations: 166.5 kB / 379.7 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.116, allocations: 88.81 kB / 379.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.116, allocations: 4 kB / 379.8 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.1163, allocations: 123.5 kB / 379.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.804e-06/0.1163, allocations: 0 / 379.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005004/0.1168, allocations: 229.3 kB / 380.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.1168, allocations: 63.34 kB / 380.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/0.1171, allocations: 245 kB / 380.4 MB, free: 9.844 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.1171, allocations: 33.7 kB / 380.4 MB, free: 9.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.1172, allocations: 148.2 kB / 380.6 MB, free: 9.656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.884e-05/0.1173, allocations: 75 kB / 380.7 MB, free: 9.582 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.437e-05/0.1174, allocations: 37.7 kB / 380.7 MB, free: 9.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1175, allocations: 338.8 kB / 381 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.1176, allocations: 51.98 kB / 381.1 MB, free: 9.148 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.1178, allocations: 91.28 kB / 381.2 MB, free: 9.047 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.118, allocations: 143.3 kB / 381.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.118, allocations: 0 / 381.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003301/0.1184, allocations: 209.2 kB / 381.5 MB, free: 8.684 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.1184, allocations: 4 kB / 381.5 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.1184, allocations: 0 / 381.5 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.1184, allocations: 4 kB / 381.5 MB, free: 8.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.1186, allocations: 47.91 kB / 381.6 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.1187, allocations: 3.938 kB / 381.6 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.229e-05/0.1188, allocations: 19.84 kB / 381.6 MB, free: 8.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.1188, allocations: 4 kB / 381.6 MB, free: 8.602 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.0001393/0.1189, allocations: 153.8 kB / 381.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.551e-05/0.119, allocations: 23.72 kB / 381.8 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.785e-05/0.119, allocations: 26.17 kB / 381.8 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.1191, allocations: 4 kB / 381.8 MB, free: 8.387 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1191, allocations: 3.938 kB / 381.8 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1191, allocations: 0 / 381.8 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002627/0.1193, allocations: 285.4 kB / 382.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1193, allocations: 0 / 382.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.1195, allocations: 39.92 kB / 382.1 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1195, allocations: 4 kB / 382.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.1196, allocations: 7.984 kB / 382.1 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.1196, allocations: 8 kB / 382.1 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1196, allocations: 3.938 kB / 382.1 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004652/0.1201, allocations: 276.7 kB / 382.4 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.869e-05/0.1201, allocations: 96.8 kB / 382.5 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/0.1202, allocations: 11.98 kB / 382.5 MB, free: 7.578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.754e-05/0.1202, allocations: 3.938 kB / 382.5 MB, free: 7.574 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.558e-05/0.1203, allocations: 16.05 kB / 382.5 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.1203, allocations: 8 kB / 382.5 MB, free: 7.551 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001603/0.1205, allocations: 184.5 kB / 382.7 MB, free: 7.367 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1205, allocations: 3.938 kB / 382.7 MB, free: 7.363 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002558/0.1208, allocations: 55.98 kB / 382.8 MB, free: 7.309 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.0009211/0.1217, allocations: 420.2 kB / 383.2 MB, free: 6.887 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003186/0.122, allocations: 144 kB / 383.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.122, allocations: 8.125 kB / 383.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.1222, allocations: 71.91 kB / 383.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.1225, allocations: 49.77 kB / 383.5 MB, free: 6.621 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009656/0.1235, allocations: 0.54 MB / 384 MB, free: 6.055 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.1238, allocations: 0.7443 MB / 384.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.1239, allocations: 29.94 kB / 384.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.045e-05/0.124, allocations: 27.44 kB / 384.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.124, allocations: 0 / 384.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of Templates: time 0.00608/0.1301, allocations: 2.688 MB / 387.5 MB, free: 2.535 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)