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.001233/0.001233, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.627/1.627, allocations: 205.1 MB / 222.4 MB, free: 4.562 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.00137/0.00137, allocations: 47.92 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2584, allocations: 46.64 MB / 325.3 MB, free: 1.902 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00335/0.2618, allocations: 2.215 MB / 327.5 MB, free: 156 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.2635, allocations: 0.9675 MB / 328.5 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.2636, allocations: 7.625 kB / 328.5 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003705/0.264, allocations: 89.89 kB / 328.6 MB, free: 15.32 MB / 270.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003315/0.2643, allocations: 121.1 kB / 328.7 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003449/0.2647, allocations: 119.4 kB / 328.8 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000348/0.265, allocations: 290.1 kB / 329.1 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.2653, allocations: 81.28 kB / 329.2 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.2654, allocations: 114.3 kB / 329.3 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/0.2656, allocations: 122.6 kB / 329.4 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.784e-05/0.2657, allocations: 17.62 kB / 329.4 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001439/0.2658, allocations: 52.48 kB / 329.5 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.982e-05/0.2659, allocations: 61.02 kB / 329.5 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.2661, allocations: 113.6 kB / 329.7 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000346/0.2664, allocations: 284.1 kB / 329.9 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.2665, allocations: 0 / 329.9 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.2665, allocations: 0 / 329.9 MB, free: 14.46 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.2665, allocations: 1.281 kB / 329.9 MB, free: 14.46 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.0007736/0.2673, allocations: 0.5367 MB / 330.5 MB, free: 13.96 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.2673, allocations: 10.03 kB / 330.5 MB, free: 13.96 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.2675, allocations: 31.22 kB / 330.5 MB, free: 13.95 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/0.2678, allocations: 260.1 kB / 330.8 MB, free: 13.68 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.2678, allocations: 19.66 kB / 330.8 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.687e-05/0.2679, allocations: 18.53 kB / 330.8 MB, free: 13.66 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003056/0.2682, allocations: 171 kB / 331 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2682, allocations: 0 / 331 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.948e-05/0.2682, allocations: 9.094 kB / 331 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.2682, allocations: 8.219 kB / 331 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.2685, allocations: 114.6 kB / 331.1 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008285/0.2693, allocations: 0.5688 MB / 331.7 MB, free: 12.99 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002932/0.2696, allocations: 157.5 kB / 331.8 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.2698, allocations: 85.33 kB / 331.9 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.2698, allocations: 3.344 kB / 331.9 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003001/0.2701, allocations: 122.5 kB / 332 MB, free: 12.77 MB / 270.1 MB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.2701, allocations: 0 / 332 MB, free: 12.77 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004813/0.2706, allocations: 231.2 kB / 332.3 MB, free: 12.64 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.2707, allocations: 53.56 kB / 332.3 MB, free: 12.58 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.2709, allocations: 250.6 kB / 332.5 MB, free: 12.41 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.2709, allocations: 30.84 kB / 332.6 MB, free: 12.38 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.058e-05/0.271, allocations: 140.1 kB / 332.7 MB, free: 12.25 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.567e-05/0.2711, allocations: 68.08 kB / 332.8 MB, free: 12.19 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-05/0.2712, allocations: 43.7 kB / 332.8 MB, free: 12.16 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.2713, allocations: 341.2 kB / 333.2 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.2714, allocations: 46.7 kB / 333.2 MB, free: 11.8 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.2715, allocations: 90.08 kB / 333.3 MB, free: 11.73 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/0.2718, allocations: 139.4 kB / 333.4 MB, free: 11.58 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2718, allocations: 4 kB / 333.4 MB, free: 11.58 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003198/0.2721, allocations: 205.2 kB / 333.6 MB, free: 11.37 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.2721, allocations: 4 kB / 333.6 MB, free: 11.37 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2721, allocations: 3.984 kB / 333.6 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.2722, allocations: 4 kB / 333.6 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.2724, allocations: 51.84 kB / 333.7 MB, free: 11.31 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.2724, allocations: 8.031 kB / 333.7 MB, free: 11.3 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.176e-05/0.2725, allocations: 19.84 kB / 333.7 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.2725, allocations: 12 kB / 333.7 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.0001229/0.2726, allocations: 146.3 kB / 333.9 MB, free: 11.12 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/0.2727, allocations: 23.72 kB / 333.9 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.537e-05/0.2727, allocations: 34.17 kB / 333.9 MB, free: 11.06 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2728, allocations: 0 / 333.9 MB, free: 11.06 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2728, allocations: 3.938 kB / 333.9 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2728, allocations: 0 / 333.9 MB, free: 11.05 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000244/0.273, allocations: 285.4 kB / 334.2 MB, free: 10.73 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.273, allocations: 7.984 kB / 334.2 MB, free: 10.72 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.2732, allocations: 35.98 kB / 334.3 MB, free: 10.68 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2732, allocations: 0 / 334.3 MB, free: 10.68 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.2732, allocations: 3.984 kB / 334.3 MB, free: 10.68 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.969e-06/0.2733, allocations: 4 kB / 334.3 MB, free: 10.68 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.2733, allocations: 3.938 kB / 334.3 MB, free: 10.67 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004554/0.2737, allocations: 284.8 kB / 334.5 MB, free: 10.38 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.491e-05/0.2738, allocations: 100.9 kB / 334.6 MB, free: 10.26 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.796e-05/0.2738, allocations: 11.98 kB / 334.7 MB, free: 10.25 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.017e-05/0.2739, allocations: 7.938 kB / 334.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.274, allocations: 11.98 kB / 334.7 MB, free: 10.23 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.274, allocations: 4 kB / 334.7 MB, free: 10.22 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001565/0.2742, allocations: 192.5 kB / 334.9 MB, free: 10.04 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2742, allocations: 0 / 334.9 MB, free: 10.04 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002664/0.2744, allocations: 59.91 kB / 334.9 MB, free: 9.977 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.000883/0.2753, allocations: 425.8 kB / 335.3 MB, free: 9.559 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003421/0.2757, allocations: 144.1 kB / 335.5 MB, free: 9.418 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2757, allocations: 0 / 335.5 MB, free: 9.418 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.2758, allocations: 75.88 kB / 335.6 MB, free: 9.344 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.2762, allocations: 41.02 kB / 335.6 MB, free: 9.305 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009037/0.2771, allocations: 0.5457 MB / 336.1 MB, free: 8.73 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.2774, allocations: 0.748 MB / 336.9 MB, free: 7.957 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.611e-05/0.2775, allocations: 25.94 kB / 336.9 MB, free: 7.934 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.43e-05/0.2776, allocations: 31.42 kB / 336.9 MB, free: 7.902 MB / 270.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2776, allocations: 0 / 336.9 MB, free: 7.902 MB / 270.1 MB Notification: Performance of Templates: time 0.005676/0.2833, allocations: 2.666 MB / 339.6 MB, free: 5.234 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)