Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009808/0.0009805, allocations: 170.4 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.265/1.265, allocations: 170.6 MB / 183.8 MB, free: 11.48 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001611/0.001611, allocations: 99.47 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.312e-05/2.313e-05, allocations: 8 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0702/0.07024, allocations: 38.77 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2711/0.3414, allocations: 77.77 MB / 385.4 MB, free: 14.62 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002242/0.3417, allocations: 78.58 kB / 385.5 MB, free: 14.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06452/0.4062, allocations: 23.01 MB / 408.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4063, allocations: 0 / 408.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.91e-05/0.4063, allocations: 27.98 kB / 408.5 MB, free: 10.89 MB / 298.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.002934/0.4093, allocations: 1.28 MB / 409.8 MB, free: 9.629 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.4093, allocations: 12.03 kB / 409.8 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004866/0.4098, allocations: 142.6 kB / 409.9 MB, free: 9.477 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008496/0.4107, allocations: 0.5433 MB / 410.5 MB, free: 8.973 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003205/0.411, allocations: 200.1 kB / 410.7 MB, free: 8.797 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001885/0.4112, allocations: 99.03 kB / 410.8 MB, free: 8.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001988/0.4132, allocations: 1.178 MB / 412 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.936e-05/0.4133, allocations: 15.72 kB / 412 MB, free: 7.891 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/0.4134, allocations: 40 kB / 412 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.4134, allocations: 27.94 kB / 412 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001986/0.4154, allocations: 1.212 MB / 413.3 MB, free: 6.996 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006144/0.4216, allocations: 3.7 MB / 417 MB, free: 3.945 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.4231, allocations: 0.964 MB / 417.9 MB, free: 3.305 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008378/0.424, allocations: 0.6 MB / 418.5 MB, free: 2.941 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.486e-05/0.4241, allocations: 17.3 kB / 418.5 MB, free: 2.922 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.4241, allocations: 46 kB / 418.6 MB, free: 2.879 MB / 298.7 MB Notification: Performance of pre-optimization done (n=129): time 2.494e-06/0.4242, allocations: 0 / 418.6 MB, free: 2.879 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.007033/0.4312, allocations: 3.837 MB / 422.4 MB, free: 15.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/0.4313, allocations: 90.42 kB / 422.5 MB, free: 15.03 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006215/0.4319, allocations: 488.6 kB / 423 MB, free: 14.55 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.432, allocations: 65.69 kB / 423 MB, free: 14.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002553/0.4323, allocations: 337.2 kB / 423.4 MB, free: 14.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003771/0.4327, allocations: 473.4 kB / 423.8 MB, free: 13.67 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.953e-05/0.4328, allocations: 32 kB / 423.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.433, allocations: 398.7 kB / 424.3 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009565/0.4339, allocations: 0.5468 MB / 424.8 MB, free: 12.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.435, allocations: 0.6804 MB / 425.5 MB, free: 11.99 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00086/0.4359, allocations: 0.4901 MB / 426 MB, free: 11.5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4359, allocations: 0 / 426 MB, free: 11.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00348/0.4394, allocations: 1.892 MB / 427.9 MB, free: 9.598 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.4394, allocations: 8 kB / 427.9 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.4394, allocations: 0 / 427.9 MB, free: 9.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001871/0.4413, allocations: 0.9853 MB / 428.9 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.4423, allocations: 259.7 kB / 429.1 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002269/0.4446, allocations: 1.97 MB / 431.1 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.446, allocations: 211.9 kB / 431.3 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/0.4462, allocations: 63.97 kB / 431.4 MB, free: 6.051 MB / 314.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 (bearingFriction.free,$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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * 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 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000348/0.4465, allocations: 183.9 kB / 431.5 MB, free: 5.863 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002629/0.4468, allocations: 86.97 kB / 431.6 MB, free: 5.777 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003429/0.4471, allocations: 133.3 kB / 431.7 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/0.4471, allocations: 19.89 kB / 431.8 MB, free: 5.625 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.4472, allocations: 0 / 431.8 MB, free: 5.625 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.915e-05/0.4472, allocations: 7.969 kB / 431.8 MB, free: 5.617 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005388/0.4526, allocations: 3.168 MB / 434.9 MB, free: 2.379 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.4526, allocations: 11.92 kB / 435 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.4537, allocations: 263.8 kB / 435.2 MB, free: 2.109 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001755/0.4555, allocations: 0.9226 MB / 436.1 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001245/0.4556, allocations: 55.88 kB / 436.2 MB, free: 1.125 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/0.458, allocations: 1.909 MB / 438.1 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.458, allocations: 4.031 kB / 438.1 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004277/0.4623, allocations: 2.45 MB / 440.5 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007366/0.463, allocations: 299.8 kB / 440.8 MB, free: 12.35 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/0.4632, allocations: 40 kB / 440.9 MB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.4644, allocations: 215.8 kB / 441.1 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004798/0.4649, allocations: 228.8 kB / 441.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/0.4651, allocations: 71.91 kB / 441.4 MB, free: 11.8 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005232/0.4656, allocations: 369.5 kB / 441.7 MB, free: 11.44 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4656, allocations: 0 / 441.7 MB, free: 11.44 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001195/0.4668, allocations: 336 kB / 442.1 MB, free: 11.11 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * 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.0004236/0.4673, allocations: 209.2 kB / 442.3 MB, free: 10.9 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0025/0.4698, allocations: 1.344 MB / 443.6 MB, free: 9.555 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.4698, allocations: 4.375 kB / 443.6 MB, free: 9.551 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.4713, allocations: 0.7542 MB / 444.4 MB, free: 8.797 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009157/0.4722, allocations: 135.4 kB / 444.5 MB, free: 8.668 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007841/0.4801, allocations: 2.92 MB / 447.4 MB, free: 5.715 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006747/0.4808, allocations: 1.047 MB / 448.5 MB, free: 4.641 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000773/0.4816, allocations: 139.2 kB / 448.6 MB, free: 4.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003532/0.4819, allocations: 83.38 kB / 448.7 MB, free: 4.418 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/0.4819, allocations: 0 / 448.7 MB, free: 4.418 MB / 330.7 MB Notification: Performance of Templates: time 0.03054/0.5125, allocations: 18.87 MB / 467.6 MB, free: 1.531 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)