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.001254/0.001254, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001808/0.001809, allocations: 194.8 kB / 16.14 MB, free: 6.719 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.665/1.665, allocations: 205.1 MB / 222 MB, free: 5.023 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.001168/0.001168, allocations: 59.92 kB / 278.1 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.278, allocations: 46.61 MB / 324.7 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003317/0.2813, allocations: 2.28 MB / 326.9 MB, free: 40 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.2832, allocations: 0.9577 MB / 327.9 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.2833, allocations: 3.75 kB / 327.9 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004527/0.2838, allocations: 81.34 kB / 328 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002938/0.2841, allocations: 108.6 kB / 328.1 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003298/0.2845, allocations: 112.2 kB / 328.2 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003199/0.2848, allocations: 267.7 kB / 328.5 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.285, allocations: 78.8 kB / 328.5 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.2852, allocations: 105.7 kB / 328.6 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.2854, allocations: 122.7 kB / 328.8 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.587e-05/0.2854, allocations: 15.59 kB / 328.8 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.2856, allocations: 46.95 kB / 328.8 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.505e-05/0.2857, allocations: 57.3 kB / 328.9 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.2858, allocations: 110.4 kB / 329 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003303/0.2861, allocations: 277.1 kB / 329.3 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.2862, allocations: 0 / 329.3 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2862, allocations: 1.156 kB / 329.3 MB, free: 14.43 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.2862, allocations: 0 / 329.3 MB, free: 14.43 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.0008063/0.287, allocations: 0.5464 MB / 329.8 MB, free: 13.92 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.287, allocations: 7.875 kB / 329.8 MB, free: 13.92 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.2872, allocations: 32.03 kB / 329.8 MB, free: 13.9 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002812/0.2875, allocations: 255.4 kB / 330.1 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.2875, allocations: 19.8 kB / 330.1 MB, free: 13.63 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.138e-05/0.2875, allocations: 19.5 kB / 330.1 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003314/0.2879, allocations: 165.5 kB / 330.3 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.2879, allocations: 5.031 kB / 330.3 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.2879, allocations: 5.062 kB / 330.3 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.2879, allocations: 4.406 kB / 330.3 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.2882, allocations: 122.4 kB / 330.4 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008958/0.2891, allocations: 0.559 MB / 331 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003461/0.2895, allocations: 158.8 kB / 331.1 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.2897, allocations: 84.8 kB / 331.2 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.698e-05/0.2897, allocations: 2.156 kB / 331.2 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003461/0.2901, allocations: 123.1 kB / 331.3 MB, free: 12.73 MB / 270.1 MB Notification: Performance of pre-optimization done (n=20): time 3.086e-06/0.2901, allocations: 1.062 kB / 331.3 MB, free: 12.73 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005259/0.2906, allocations: 238.2 kB / 331.6 MB, free: 12.61 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.2907, allocations: 54.09 kB / 331.6 MB, free: 12.54 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003058/0.291, allocations: 249.9 kB / 331.9 MB, free: 12.38 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.291, allocations: 30.8 kB / 331.9 MB, free: 12.34 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.2911, allocations: 139.5 kB / 332 MB, free: 12.21 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.54e-05/0.2912, allocations: 67.88 kB / 332.1 MB, free: 12.16 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.325e-05/0.2913, allocations: 44.39 kB / 332.2 MB, free: 12.12 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.2914, allocations: 341.5 kB / 332.5 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.2915, allocations: 50.91 kB / 332.5 MB, free: 11.76 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.2917, allocations: 80.88 kB / 332.6 MB, free: 11.7 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002614/0.2919, allocations: 149.1 kB / 332.8 MB, free: 11.61 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.2919, allocations: 0 / 332.8 MB, free: 11.61 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003491/0.2923, allocations: 209.4 kB / 333 MB, free: 11.49 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.2923, allocations: 5.469 kB / 333 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.2923, allocations: 1.25 kB / 333 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.2924, allocations: 2.406 kB / 333 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.2926, allocations: 48.3 kB / 333 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.2926, allocations: 10.25 kB / 333 MB, free: 11.47 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.2927, allocations: 23.89 kB / 333.1 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.2928, allocations: 14.12 kB / 333.1 MB, free: 11.45 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.0001405/0.2929, allocations: 145.7 kB / 333.2 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.815e-05/0.2929, allocations: 21.16 kB / 333.2 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.212e-05/0.293, allocations: 29.84 kB / 333.3 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.293, allocations: 6.438 kB / 333.3 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.293, allocations: 7.922 kB / 333.3 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.2931, allocations: 5.781 kB / 333.3 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003201/0.2934, allocations: 278.7 kB / 333.6 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.2934, allocations: 0 / 333.6 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.2936, allocations: 35.98 kB / 333.6 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.2936, allocations: 0 / 333.6 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.2936, allocations: 4 kB / 333.6 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.2936, allocations: 7.984 kB / 333.6 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2936, allocations: 3.938 kB / 333.6 MB, free: 10.93 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004872/0.2941, allocations: 288.7 kB / 333.9 MB, free: 10.62 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.876e-05/0.2942, allocations: 92.86 kB / 334 MB, free: 10.52 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.36e-05/0.2942, allocations: 4 kB / 334 MB, free: 10.51 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.644e-05/0.2943, allocations: 19.91 kB / 334 MB, free: 10.49 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.874e-05/0.2944, allocations: 11.98 kB / 334 MB, free: 10.48 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.2944, allocations: 4 kB / 334 MB, free: 10.48 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001641/0.2946, allocations: 188.5 kB / 334.2 MB, free: 10.29 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2946, allocations: 0 / 334.2 MB, free: 10.29 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002991/0.2949, allocations: 63.91 kB / 334.3 MB, free: 10.23 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.001029/0.2959, allocations: 414 kB / 334.7 MB, free: 9.824 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003263/0.2963, allocations: 139.8 kB / 334.8 MB, free: 9.688 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2963, allocations: 0 / 334.8 MB, free: 9.688 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.2964, allocations: 79.86 kB / 334.9 MB, free: 9.609 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004786/0.2969, allocations: 52.81 kB / 334.9 MB, free: 9.559 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.298, allocations: 0.6019 MB / 335.5 MB, free: 8.93 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.2983, allocations: 0.7521 MB / 336.3 MB, free: 8.152 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.2984, allocations: 33.94 kB / 336.3 MB, free: 8.121 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.488e-05/0.2985, allocations: 23.44 kB / 336.3 MB, free: 8.098 MB / 270.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2985, allocations: 0 / 336.3 MB, free: 8.098 MB / 270.1 MB Notification: Performance of Templates: time 0.005944/0.3045, allocations: 2.545 MB / 338.9 MB, free: 5.551 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)