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.0009781/0.0009783, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009017/0.009017, allocations: 173.3 kB / 16.26 MB, free: 6.676 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.688/1.688, allocations: 205.4 MB / 222.5 MB, free: 5.559 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.0004585/0.0004585, allocations: 14.66 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2679, allocations: 47.59 MB / 327 MB, free: 1.539 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002725/0.2707, allocations: 1.925 MB / 328.9 MB, free: 12 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00245/0.2732, allocations: 0.9387 MB / 329.9 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002772/0.2735, allocations: 3.344 kB / 329.9 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004706/0.2739, allocations: 81.38 kB / 330 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004967/0.2745, allocations: 105.9 kB / 330.1 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003886/0.2749, allocations: 107.3 kB / 330.2 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004395/0.2753, allocations: 271.3 kB / 330.4 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002073/0.2755, allocations: 81.41 kB / 330.5 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.2757, allocations: 95.33 kB / 330.6 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002247/0.276, allocations: 114 kB / 330.7 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.558e-05/0.276, allocations: 8.594 kB / 330.7 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.2762, allocations: 43.36 kB / 330.8 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.606e-05/0.2763, allocations: 57.02 kB / 330.8 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.2765, allocations: 130.9 kB / 331 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000579/0.2771, allocations: 265.9 kB / 331.2 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2771, allocations: 0 / 331.2 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.2771, allocations: 0 / 331.2 MB, free: 14.42 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.2771, allocations: 0 / 331.2 MB, free: 14.42 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.001089/0.2782, allocations: 0.5049 MB / 331.7 MB, free: 13.94 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.2783, allocations: 9.312 kB / 331.7 MB, free: 13.94 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002385/0.2785, allocations: 31.09 kB / 331.8 MB, free: 13.92 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003504/0.2789, allocations: 256.3 kB / 332 MB, free: 13.66 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.2789, allocations: 19.22 kB / 332 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.362e-05/0.2789, allocations: 18.69 kB / 332.1 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003649/0.2793, allocations: 162.5 kB / 332.2 MB, free: 13.53 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.2793, allocations: 0 / 332.2 MB, free: 13.53 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.857e-05/0.2794, allocations: 13.73 kB / 332.2 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.2794, allocations: 5.344 kB / 332.2 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002559/0.2797, allocations: 113.2 kB / 332.3 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009801/0.2806, allocations: 0.5605 MB / 332.9 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003793/0.281, allocations: 170.6 kB / 333.1 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001714/0.2812, allocations: 89.98 kB / 333.2 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.2813, allocations: 1.406 kB / 333.2 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002897/0.2816, allocations: 120.4 kB / 333.3 MB, free: 12.75 MB / 270.1 MB Notification: Performance of pre-optimization done (n=20): time 1.814e-06/0.2816, allocations: 0 / 333.3 MB, free: 12.75 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005587/0.2821, allocations: 237.7 kB / 333.5 MB, free: 12.62 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.2822, allocations: 53.72 kB / 333.6 MB, free: 12.55 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002959/0.2825, allocations: 251.1 kB / 333.8 MB, free: 12.39 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.2825, allocations: 30.89 kB / 333.8 MB, free: 12.36 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.2827, allocations: 143.4 kB / 334 MB, free: 12.22 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.311e-05/0.2827, allocations: 67.92 kB / 334 MB, free: 12.16 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.175e-05/0.2828, allocations: 23.19 kB / 334.1 MB, free: 12.14 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.2829, allocations: 336.5 kB / 334.4 MB, free: 11.81 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.2831, allocations: 55.97 kB / 334.4 MB, free: 11.78 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.2832, allocations: 88.56 kB / 334.5 MB, free: 11.71 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002484/0.2835, allocations: 137.9 kB / 334.7 MB, free: 11.58 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.2835, allocations: 0 / 334.7 MB, free: 11.58 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.00037/0.2839, allocations: 213.2 kB / 334.9 MB, free: 11.37 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.2839, allocations: 8 kB / 334.9 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.2839, allocations: 0 / 334.9 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.284, allocations: 3.938 kB / 334.9 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000213/0.2842, allocations: 47.92 kB / 334.9 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.2842, allocations: 3.938 kB / 334.9 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001347/0.2843, allocations: 27.83 kB / 335 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.2844, allocations: 12 kB / 335 MB, free: 11.27 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.0001448/0.2845, allocations: 149.7 kB / 335.1 MB, free: 11.11 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.194e-05/0.2846, allocations: 15.81 kB / 335.1 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.329e-05/0.2846, allocations: 26.19 kB / 335.2 MB, free: 11.07 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2846, allocations: 4 kB / 335.2 MB, free: 11.06 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.2847, allocations: 7.922 kB / 335.2 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.2847, allocations: 0 / 335.2 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003221/0.285, allocations: 281.4 kB / 335.4 MB, free: 10.73 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.285, allocations: 0 / 335.4 MB, free: 10.73 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.2852, allocations: 35.98 kB / 335.5 MB, free: 10.7 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.2852, allocations: 7.938 kB / 335.5 MB, free: 10.69 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.2852, allocations: 4 kB / 335.5 MB, free: 10.68 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2853, allocations: 0 / 335.5 MB, free: 10.68 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.2853, allocations: 7.922 kB / 335.5 MB, free: 10.68 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004964/0.2858, allocations: 284.7 kB / 335.8 MB, free: 10.38 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.788e-05/0.2859, allocations: 100.8 kB / 335.9 MB, free: 10.26 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.749e-05/0.2859, allocations: 12.06 kB / 335.9 MB, free: 10.25 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.189e-05/0.286, allocations: 7.938 kB / 335.9 MB, free: 10.24 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.781e-05/0.2861, allocations: 11.98 kB / 335.9 MB, free: 10.23 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.2861, allocations: 8 kB / 335.9 MB, free: 10.22 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001857/0.2863, allocations: 188.5 kB / 336.1 MB, free: 10.04 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.2863, allocations: 0 / 336.1 MB, free: 10.04 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000291/0.2866, allocations: 55.94 kB / 336.2 MB, free: 9.984 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.0009763/0.2876, allocations: 417 kB / 336.6 MB, free: 9.574 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003301/0.2879, allocations: 144 kB / 336.7 MB, free: 9.434 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2879, allocations: 4 kB / 336.7 MB, free: 9.43 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001437/0.2881, allocations: 67.88 kB / 336.8 MB, free: 9.363 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.2885, allocations: 56.56 kB / 336.8 MB, free: 9.309 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.2897, allocations: 0.6639 MB / 337.5 MB, free: 8.621 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.29, allocations: 0.7443 MB / 338.2 MB, free: 7.852 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.2901, allocations: 29.94 kB / 338.3 MB, free: 7.824 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.721e-05/0.2902, allocations: 31.42 kB / 338.3 MB, free: 7.793 MB / 270.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2902, allocations: 0 / 338.3 MB, free: 7.793 MB / 270.1 MB Notification: Performance of Templates: time 0.006288/0.2965, allocations: 2.514 MB / 340.8 MB, free: 5.277 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)