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.0009991/0.0009987, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.00151/0.00151, allocations: 168.7 kB / 15.95 MB, free: 204 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.766/1.766, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.000651/0.0006513, allocations: 8 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2925, allocations: 47.6 MB / 326.5 MB, free: 1.27 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002879/0.2954, allocations: 1.86 MB / 328.3 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001738/0.2972, allocations: 0.89 MB / 329.2 MB, free: 15.1 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002272/0.2974, allocations: 3.125 kB / 329.2 MB, free: 15.1 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000435/0.2979, allocations: 81.64 kB / 329.3 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000419/0.2983, allocations: 109.7 kB / 329.4 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003942/0.2987, allocations: 106.6 kB / 329.5 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004321/0.2992, allocations: 263.5 kB / 329.8 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.2994, allocations: 69.36 kB / 329.8 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.2996, allocations: 98.27 kB / 329.9 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.2999, allocations: 102.2 kB / 330 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.846e-05/0.2999, allocations: 10.25 kB / 330.1 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.3001, allocations: 38.31 kB / 330.1 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.262e-05/0.3002, allocations: 48.66 kB / 330.1 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.493e-05/0.3003, allocations: 65.98 kB / 330.2 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003224/0.3006, allocations: 204.4 kB / 330.4 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3006, allocations: 0 / 330.4 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3007, allocations: 1.031 kB / 330.4 MB, free: 14.36 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.3007, allocations: 0 / 330.4 MB, free: 14.36 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.000828/0.3015, allocations: 0.5023 MB / 330.9 MB, free: 13.88 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.3016, allocations: 10.09 kB / 330.9 MB, free: 13.88 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002032/0.3018, allocations: 42.5 kB / 331 MB, free: 13.85 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.3021, allocations: 245.7 kB / 331.2 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.3022, allocations: 15.22 kB / 331.2 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.644e-05/0.3022, allocations: 14.91 kB / 331.2 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003578/0.3026, allocations: 169.7 kB / 331.4 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.3026, allocations: 3.906 kB / 331.4 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.3026, allocations: 9.219 kB / 331.4 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.3027, allocations: 5.062 kB / 331.4 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.3029, allocations: 112.5 kB / 331.5 MB, free: 13.4 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009734/0.3039, allocations: 0.5657 MB / 332.1 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.3042, allocations: 161.9 kB / 332.2 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.3044, allocations: 83.33 kB / 332.3 MB, free: 12.78 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.3045, allocations: 2 kB / 332.3 MB, free: 12.78 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002854/0.3047, allocations: 114.5 kB / 332.4 MB, free: 12.69 MB / 270.1 MB Notification: Performance of pre-optimization done (n=20): time 1.613e-06/0.3048, allocations: 5.125 kB / 332.4 MB, free: 12.69 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005342/0.3053, allocations: 233.1 kB / 332.7 MB, free: 12.56 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.3054, allocations: 54.03 kB / 332.7 MB, free: 12.5 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000277/0.3056, allocations: 252.5 kB / 333 MB, free: 12.33 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.3057, allocations: 30.83 kB / 333 MB, free: 12.3 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.3058, allocations: 139.3 kB / 333.1 MB, free: 12.17 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.712e-05/0.3059, allocations: 68.2 kB / 333.2 MB, free: 12.11 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-05/0.3059, allocations: 5.25 kB / 333.2 MB, free: 12.11 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.306, allocations: 336 kB / 333.5 MB, free: 11.77 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.3062, allocations: 51.31 kB / 333.6 MB, free: 11.75 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.3063, allocations: 84.12 kB / 333.7 MB, free: 11.69 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.3065, allocations: 64.44 kB / 333.7 MB, free: 11.66 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3065, allocations: 0 / 333.7 MB, free: 11.66 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003828/0.3069, allocations: 206.4 kB / 333.9 MB, free: 11.54 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3069, allocations: 9.016 kB / 333.9 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/0.3069, allocations: 1.062 kB / 333.9 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.3069, allocations: 2 kB / 333.9 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002288/0.3072, allocations: 48.77 kB / 334 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.3072, allocations: 2.312 kB / 334 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001413/0.3073, allocations: 19.86 kB / 334 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.3074, allocations: 14.41 kB / 334 MB, free: 11.51 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.0001475/0.3075, allocations: 142.3 kB / 334.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.817e-05/0.3076, allocations: 25.28 kB / 334.2 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.994e-05/0.3076, allocations: 34.03 kB / 334.2 MB, free: 11.33 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3077, allocations: 2.031 kB / 334.2 MB, free: 11.33 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/0.3077, allocations: 5.047 kB / 334.2 MB, free: 11.33 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3077, allocations: 0 / 334.2 MB, free: 11.33 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003157/0.308, allocations: 282.7 kB / 334.5 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.308, allocations: 3.938 kB / 334.5 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.3082, allocations: 40.08 kB / 334.6 MB, free: 11.01 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.3082, allocations: 4 kB / 334.6 MB, free: 11.01 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.3082, allocations: 3.953 kB / 334.6 MB, free: 11 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.3083, allocations: 4 kB / 334.6 MB, free: 11 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.3083, allocations: 3.984 kB / 334.6 MB, free: 11 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004816/0.3088, allocations: 280.7 kB / 334.8 MB, free: 10.7 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.618e-05/0.3089, allocations: 108.8 kB / 334.9 MB, free: 10.58 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.437e-05/0.3089, allocations: 4.062 kB / 335 MB, free: 10.57 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.105e-05/0.309, allocations: 11.95 kB / 335 MB, free: 10.56 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/0.309, allocations: 11.98 kB / 335 MB, free: 10.55 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-05/0.3091, allocations: 8 kB / 335 MB, free: 10.54 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.3093, allocations: 188.5 kB / 335.2 MB, free: 10.36 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3093, allocations: 0 / 335.2 MB, free: 10.36 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003118/0.3096, allocations: 51.91 kB / 335.2 MB, free: 10.31 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.001077/0.3107, allocations: 417.2 kB / 335.6 MB, free: 9.898 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003479/0.311, allocations: 135.9 kB / 335.8 MB, free: 9.766 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3111, allocations: 4 kB / 335.8 MB, free: 9.762 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.3112, allocations: 75.86 kB / 335.8 MB, free: 9.688 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/0.3116, allocations: 48.58 kB / 335.9 MB, free: 9.641 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.3127, allocations: 0.6328 MB / 336.5 MB, free: 8.984 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.3131, allocations: 0.7521 MB / 337.3 MB, free: 8.207 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001183/0.3132, allocations: 33.91 kB / 337.3 MB, free: 8.176 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.499e-05/0.3133, allocations: 27.44 kB / 337.3 MB, free: 8.148 MB / 270.1 MB Notification: Performance of SimCode: time 1.953e-06/0.3133, allocations: 0 / 337.3 MB, free: 8.148 MB / 270.1 MB Notification: Performance of Templates: time 0.006731/0.32, allocations: 2.439 MB / 339.8 MB, free: 5.707 MB / 270.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)