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.0009491/0.0009491, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001113/0.001113, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 205.4 MB / 222.1 MB, free: 5.527 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.0004805/0.0004808, allocations: 8 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2638, allocations: 47.59 MB / 326.5 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002955/0.2668, allocations: 1.855 MB / 328.3 MB, free: 15.97 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.2686, allocations: 0.9032 MB / 329.2 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.2687, allocations: 3.562 kB / 329.2 MB, free: 15.26 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003606/0.2691, allocations: 81.28 kB / 329.3 MB, free: 15.21 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002825/0.2694, allocations: 112.8 kB / 329.4 MB, free: 15.13 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002745/0.2696, allocations: 99.81 kB / 329.5 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002937/0.2699, allocations: 254.8 kB / 329.8 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.2701, allocations: 72.56 kB / 329.8 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.2703, allocations: 94.41 kB / 329.9 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/0.2705, allocations: 107.3 kB / 330 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/0.2705, allocations: 13.05 kB / 330.1 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.2706, allocations: 34.98 kB / 330.1 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.516e-05/0.2707, allocations: 41 kB / 330.1 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.443e-05/0.2708, allocations: 65.17 kB / 330.2 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002789/0.2711, allocations: 216.7 kB / 330.4 MB, free: 14.52 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2711, allocations: 1.031 kB / 330.4 MB, free: 14.52 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2711, allocations: 0 / 330.4 MB, free: 14.52 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.2711, allocations: 0 / 330.4 MB, free: 14.52 MB / 270.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.0007799/0.2719, allocations: 0.5032 MB / 330.9 MB, free: 14.04 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.2719, allocations: 8.656 kB / 330.9 MB, free: 14.04 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.2721, allocations: 31.03 kB / 330.9 MB, free: 14.02 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.2725, allocations: 250.4 kB / 331.2 MB, free: 13.76 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.2725, allocations: 11.72 kB / 331.2 MB, free: 13.76 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.238e-05/0.2726, allocations: 18.41 kB / 331.2 MB, free: 13.75 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003638/0.2729, allocations: 164.9 kB / 331.4 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.273, allocations: 4.969 kB / 331.4 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.883e-05/0.273, allocations: 13.36 kB / 331.4 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.273, allocations: 3.75 kB / 331.4 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002705/0.2733, allocations: 113.2 kB / 331.5 MB, free: 13.57 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009026/0.2742, allocations: 0.5604 MB / 332.1 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003069/0.2745, allocations: 161.5 kB / 332.2 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.2747, allocations: 88.86 kB / 332.3 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.375e-05/0.2747, allocations: 2.156 kB / 332.3 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002644/0.275, allocations: 126.9 kB / 332.4 MB, free: 12.85 MB / 270.1 MB Notification: Performance of pre-optimization done (n=20): time 1.994e-06/0.275, allocations: 3.938 kB / 332.4 MB, free: 12.85 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004956/0.2755, allocations: 225.8 kB / 332.7 MB, free: 12.73 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.2756, allocations: 57.41 kB / 332.7 MB, free: 12.66 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.2759, allocations: 252.6 kB / 333 MB, free: 12.5 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.2759, allocations: 30.8 kB / 333 MB, free: 12.46 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.924e-05/0.276, allocations: 139.5 kB / 333.1 MB, free: 12.33 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.458e-05/0.2761, allocations: 76.56 kB / 333.2 MB, free: 12.27 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.2761, allocations: 0.9062 kB / 333.2 MB, free: 12.27 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.2762, allocations: 332 kB / 333.5 MB, free: 11.94 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.2764, allocations: 51.5 kB / 333.6 MB, free: 11.91 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.2765, allocations: 81 kB / 333.7 MB, free: 11.86 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.2766, allocations: 63.3 kB / 333.7 MB, free: 11.82 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.2766, allocations: 1.25 kB / 333.7 MB, free: 11.82 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003453/0.277, allocations: 200.7 kB / 333.9 MB, free: 11.71 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.277, allocations: 13.3 kB / 333.9 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.277, allocations: 1.031 kB / 333.9 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.2771, allocations: 2.406 kB / 333.9 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.2773, allocations: 48.94 kB / 334 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.2773, allocations: 2.25 kB / 334 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.2774, allocations: 20.06 kB / 334 MB, free: 11.68 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.2774, allocations: 10.28 kB / 334 MB, free: 11.68 MB / 270.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 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.2776, allocations: 143.2 kB / 334.2 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.2776, allocations: 27.66 kB / 334.2 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.281e-05/0.2777, allocations: 34.12 kB / 334.2 MB, free: 11.47 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2777, allocations: 4 kB / 334.2 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2777, allocations: 0 / 334.2 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.2777, allocations: 0 / 334.2 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002658/0.278, allocations: 285.5 kB / 334.5 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.278, allocations: 4 kB / 334.5 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.2782, allocations: 43.92 kB / 334.5 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2782, allocations: 0 / 334.5 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.2782, allocations: 3.953 kB / 334.6 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.2782, allocations: 4 kB / 334.6 MB, free: 11.08 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2782, allocations: 0 / 334.6 MB, free: 11.08 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004534/0.2787, allocations: 276.8 kB / 334.8 MB, free: 10.79 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.2788, allocations: 108.8 kB / 334.9 MB, free: 10.67 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.51e-05/0.2788, allocations: 4 kB / 334.9 MB, free: 10.66 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.381e-05/0.2789, allocations: 19.88 kB / 335 MB, free: 10.64 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.24e-05/0.2789, allocations: 7.984 kB / 335 MB, free: 10.64 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.069e-05/0.279, allocations: 8 kB / 335 MB, free: 10.63 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001665/0.2791, allocations: 184.5 kB / 335.2 MB, free: 10.45 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2791, allocations: 0 / 335.2 MB, free: 10.45 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002723/0.2794, allocations: 59.83 kB / 335.2 MB, free: 10.39 MB / 270.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009285/0.2804, allocations: 421.7 kB / 335.6 MB, free: 9.977 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003136/0.2807, allocations: 135.9 kB / 335.8 MB, free: 9.844 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.2807, allocations: 0 / 335.8 MB, free: 9.844 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.2808, allocations: 79.8 kB / 335.8 MB, free: 9.766 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.2812, allocations: 44.77 kB / 335.9 MB, free: 9.723 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00096/0.2821, allocations: 0.6365 MB / 336.5 MB, free: 9.062 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.2825, allocations: 0.7482 MB / 337.3 MB, free: 8.289 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001145/0.2826, allocations: 29.92 kB / 337.3 MB, free: 8.262 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.479e-05/0.2827, allocations: 23.44 kB / 337.3 MB, free: 8.238 MB / 270.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2827, allocations: 3.938 kB / 337.3 MB, free: 8.234 MB / 270.1 MB Notification: Performance of Templates: time 0.005572/0.2883, allocations: 2.447 MB / 339.8 MB, free: 5.785 MB / 270.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)