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.001159/0.001159, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001631/0.001631, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.696/1.696, allocations: 205.1 MB / 222 MB, free: 4.941 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.0013/0.0013, allocations: 51.94 kB / 278 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.258, allocations: 46.62 MB / 324.7 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003194/0.2613, allocations: 2.28 MB / 326.9 MB, free: 156 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.2628, allocations: 0.9628 MB / 327.9 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.2629, allocations: 1.656 kB / 327.9 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003642/0.2633, allocations: 77.95 kB / 328 MB, free: 15.35 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002851/0.2636, allocations: 109.5 kB / 328.1 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002951/0.2639, allocations: 116 kB / 328.2 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002899/0.2642, allocations: 267.4 kB / 328.5 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.2644, allocations: 82.05 kB / 328.5 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001472/0.2646, allocations: 105.2 kB / 328.7 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.2647, allocations: 122.4 kB / 328.8 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.2648, allocations: 12.69 kB / 328.8 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.2649, allocations: 42.86 kB / 328.8 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.503e-05/0.265, allocations: 57.3 kB / 328.9 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.2651, allocations: 113.8 kB / 329 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003253/0.2655, allocations: 278.1 kB / 329.3 MB, free: 14.54 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2655, allocations: 0 / 329.3 MB, free: 14.54 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.2655, allocations: 3.984 kB / 329.3 MB, free: 14.54 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.2655, allocations: 0 / 329.3 MB, free: 14.54 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.0008686/0.2664, allocations: 0.546 MB / 329.8 MB, free: 14.02 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.2664, allocations: 8.938 kB / 329.8 MB, free: 14.02 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.2666, allocations: 32 kB / 329.9 MB, free: 14.01 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003103/0.2669, allocations: 252.3 kB / 330.1 MB, free: 13.75 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.2669, allocations: 14.44 kB / 330.1 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.281e-05/0.267, allocations: 23.83 kB / 330.1 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003416/0.2673, allocations: 165.8 kB / 330.3 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.2674, allocations: 1.156 kB / 330.3 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/0.2674, allocations: 5.125 kB / 330.3 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.2674, allocations: 12.39 kB / 330.3 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.2677, allocations: 114.3 kB / 330.4 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008587/0.2685, allocations: 0.5586 MB / 331 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/0.2689, allocations: 166.9 kB / 331.1 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.2691, allocations: 84.95 kB / 331.2 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.2691, allocations: 2.125 kB / 331.2 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003155/0.2694, allocations: 119.6 kB / 331.4 MB, free: 12.84 MB / 270.1 MB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.2694, allocations: 0 / 331.4 MB, free: 12.84 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.000571/0.27, allocations: 238.6 kB / 331.6 MB, free: 12.71 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.2701, allocations: 57.8 kB / 331.6 MB, free: 12.65 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002751/0.2704, allocations: 250 kB / 331.9 MB, free: 12.48 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.2704, allocations: 27.86 kB / 331.9 MB, free: 12.45 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.324e-05/0.2705, allocations: 139.2 kB / 332 MB, free: 12.32 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.268e-05/0.2705, allocations: 72.44 kB / 332.1 MB, free: 12.26 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.311e-05/0.2706, allocations: 39.86 kB / 332.2 MB, free: 12.23 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.2708, allocations: 345.1 kB / 332.5 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.2709, allocations: 54.81 kB / 332.5 MB, free: 11.86 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.271, allocations: 85.34 kB / 332.6 MB, free: 11.8 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.2713, allocations: 144.6 kB / 332.8 MB, free: 11.71 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2713, allocations: 0 / 332.8 MB, free: 11.71 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003699/0.2717, allocations: 206.2 kB / 333 MB, free: 11.6 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.2717, allocations: 8.766 kB / 333 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2717, allocations: 1.031 kB / 333 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.2717, allocations: 1.969 kB / 333 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/0.272, allocations: 40.8 kB / 333 MB, free: 11.59 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.272, allocations: 10.12 kB / 333 MB, free: 11.58 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.2721, allocations: 27.95 kB / 333.1 MB, free: 11.56 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.2721, allocations: 9.781 kB / 333.1 MB, free: 11.56 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 ($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.0001401/0.2723, allocations: 146 kB / 333.2 MB, free: 11.42 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.122e-05/0.2724, allocations: 26.22 kB / 333.2 MB, free: 11.41 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.681e-05/0.2724, allocations: 28.91 kB / 333.3 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.2724, allocations: 2.375 kB / 333.3 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.2725, allocations: 3.938 kB / 333.3 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2725, allocations: 4.953 kB / 333.3 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002804/0.2728, allocations: 282.6 kB / 333.6 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2728, allocations: 0 / 333.6 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001788/0.273, allocations: 39.92 kB / 333.6 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.273, allocations: 4 kB / 333.6 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.273, allocations: 0 / 333.6 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.273, allocations: 0 / 333.6 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.273, allocations: 3.938 kB / 333.6 MB, free: 11.04 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004828/0.2735, allocations: 288.8 kB / 333.9 MB, free: 10.74 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.122e-05/0.2736, allocations: 100.9 kB / 334 MB, free: 10.62 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.675e-05/0.2736, allocations: 8 kB / 334 MB, free: 10.61 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.587e-05/0.2737, allocations: 15.92 kB / 334 MB, free: 10.6 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/0.2738, allocations: 7.984 kB / 334 MB, free: 10.59 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.2738, allocations: 4 kB / 334 MB, free: 10.59 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001689/0.274, allocations: 192.5 kB / 334.2 MB, free: 10.4 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.274, allocations: 0 / 334.2 MB, free: 10.4 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000273/0.2743, allocations: 59.84 kB / 334.3 MB, free: 10.34 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 (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.0009573/0.2752, allocations: 410.1 kB / 334.7 MB, free: 9.938 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003339/0.2756, allocations: 143.8 kB / 334.8 MB, free: 9.797 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2756, allocations: 0 / 334.8 MB, free: 9.797 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.2757, allocations: 75.86 kB / 334.9 MB, free: 9.723 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.2761, allocations: 44.64 kB / 334.9 MB, free: 9.68 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.2772, allocations: 0.6099 MB / 335.5 MB, free: 9.043 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.2775, allocations: 0.756 MB / 336.3 MB, free: 8.262 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.2776, allocations: 33.92 kB / 336.3 MB, free: 8.23 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.356e-05/0.2777, allocations: 23.44 kB / 336.3 MB, free: 8.207 MB / 270.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2777, allocations: 0 / 336.3 MB, free: 8.207 MB / 270.1 MB Notification: Performance of Templates: time 0.006744/0.2844, allocations: 2.545 MB / 338.9 MB, free: 5.66 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)