Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001023/0.001023, allocations: 182.2 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.544/1.544, allocations: 194.3 MB / 208.4 MB, free: 6.707 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001681/0.001681, allocations: 120.7 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.016e-05/3.019e-05, allocations: 0 / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09636/0.09641, allocations: 44.5 MB / 349.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3936/0.4901, allocations: 82.92 MB / 432.4 MB, free: 9.031 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.4903, allocations: 73.58 kB / 432.4 MB, free: 9.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06055/0.5509, allocations: 22.91 MB / 455.3 MB, free: 8.965 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.551, allocations: 4 kB / 455.3 MB, free: 8.961 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.439e-05/0.551, allocations: 20 kB / 455.4 MB, free: 8.941 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.003059/0.5541, allocations: 1.276 MB / 456.6 MB, free: 7.684 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/0.5541, allocations: 12.03 kB / 456.6 MB, free: 7.672 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005526/0.5547, allocations: 142.5 kB / 456.8 MB, free: 7.531 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008815/0.5556, allocations: 0.5265 MB / 457.3 MB, free: 7.039 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003284/0.5559, allocations: 201.2 kB / 457.5 MB, free: 6.863 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/0.5561, allocations: 98.28 kB / 457.6 MB, free: 6.797 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001937/0.5581, allocations: 1.144 MB / 458.7 MB, free: 6 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.598e-05/0.5581, allocations: 18.8 kB / 458.8 MB, free: 5.984 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.5583, allocations: 35.94 kB / 458.8 MB, free: 5.977 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.5583, allocations: 24 kB / 458.8 MB, free: 5.953 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.5602, allocations: 1.154 MB / 460 MB, free: 5.145 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006973/0.5672, allocations: 3.69 MB / 463.7 MB, free: 2.109 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.5688, allocations: 0.9305 MB / 464.6 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009358/0.5698, allocations: 0.5973 MB / 465.2 MB, free: 1.152 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001093/0.5699, allocations: 25.25 kB / 465.2 MB, free: 1.129 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/0.5699, allocations: 49.55 kB / 465.3 MB, free: 1.078 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 4.829e-06/0.5699, allocations: 7.922 kB / 465.3 MB, free: 1.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.006946/0.5769, allocations: 3.737 MB / 469 MB, free: 14.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/0.577, allocations: 90.42 kB / 469.1 MB, free: 14.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005977/0.5776, allocations: 441.4 kB / 469.5 MB, free: 13.75 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.5777, allocations: 68.38 kB / 469.6 MB, free: 13.71 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002364/0.578, allocations: 314.1 kB / 469.9 MB, free: 13.47 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004117/0.5784, allocations: 0.4905 MB / 470.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.697e-05/0.5785, allocations: 28.75 kB / 470.4 MB, free: 13.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000237/0.5787, allocations: 399.5 kB / 470.8 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008837/0.5796, allocations: 0.5201 MB / 471.3 MB, free: 12.36 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.5807, allocations: 0.6499 MB / 472 MB, free: 11.78 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000829/0.5815, allocations: 457.8 kB / 472.4 MB, free: 11.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.5816, allocations: 4 kB / 472.4 MB, free: 11.33 MB / 330.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003098/0.5847, allocations: 1.646 MB / 474.1 MB, free: 9.672 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.5847, allocations: 8 kB / 474.1 MB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.832e-05/0.5847, allocations: 8 kB / 474.1 MB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001667/0.5864, allocations: 0.7746 MB / 474.9 MB, free: 8.875 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.5875, allocations: 259.6 kB / 475.1 MB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/0.5898, allocations: 1.868 MB / 477 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.5912, allocations: 207.9 kB / 477.2 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/0.5913, allocations: 59.97 kB / 477.3 MB, free: 6.438 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003707/0.5917, allocations: 191.9 kB / 477.4 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000228/0.592, allocations: 90.97 kB / 477.5 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003367/0.5953, allocations: 1.781 MB / 479.3 MB, free: 4.344 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.922e-05/0.5954, allocations: 16 kB / 479.3 MB, free: 4.328 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.5954, allocations: 0 / 479.3 MB, free: 4.328 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.5954, allocations: 7.969 kB / 479.3 MB, free: 4.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005498/0.6009, allocations: 3.044 MB / 482.4 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.6009, allocations: 7.891 kB / 482.4 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001132/0.6021, allocations: 259.8 kB / 482.6 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001548/0.6036, allocations: 0.7353 MB / 483.4 MB, free: 192 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/0.6038, allocations: 51.94 kB / 483.4 MB, free: 140 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002295/0.6061, allocations: 1.804 MB / 485.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.6061, allocations: 0 / 485.2 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004013/0.6101, allocations: 2.251 MB / 487.5 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007716/0.6109, allocations: 295.8 kB / 487.8 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001837/0.6111, allocations: 44 kB / 487.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.6122, allocations: 211.8 kB / 488 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004493/0.6127, allocations: 236.8 kB / 488.3 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.6128, allocations: 63.94 kB / 488.3 MB, free: 11.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004677/0.6133, allocations: 353.5 kB / 488.7 MB, free: 10.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.645e-06/0.6133, allocations: 112 / 488.7 MB, free: 10.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009593/0.6143, allocations: 327.9 kB / 489 MB, free: 10.45 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004235/0.6147, allocations: 193.8 kB / 489.2 MB, free: 10.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002531/0.6173, allocations: 1.417 MB / 490.6 MB, free: 8.809 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.6173, allocations: 0 / 490.6 MB, free: 8.809 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001553/0.6189, allocations: 0.7704 MB / 491.4 MB, free: 8.039 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.6202, allocations: 136.5 kB / 491.5 MB, free: 7.91 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01389/0.6342, allocations: 2.938 MB / 494.4 MB, free: 4.938 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001139/0.6353, allocations: 1.047 MB / 495.5 MB, free: 3.863 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001445/0.6368, allocations: 143.2 kB / 495.6 MB, free: 3.719 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005982/0.6375, allocations: 83.38 kB / 495.7 MB, free: 3.637 MB / 346.7 MB Notification: Performance of SimCode: time 2.024e-06/0.6375, allocations: 0 / 495.7 MB, free: 3.637 MB / 346.7 MB Notification: Performance of Templates: time 0.04287/0.6804, allocations: 19.13 MB / 0.5028 GB, free: 492 kB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)