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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 96.77 kB / 16.31 MB, free: 6.457 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.001793/0.001793, allocations: 174.2 kB / 17.19 MB, free: 6.348 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.661/1.661, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.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.0004757/0.0004758, allocations: 19.44 kB / 280.1 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1044, allocations: 47.58 MB / 327.7 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.005071/0.1096, allocations: 4.016 MB / 331.7 MB, free: 64 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003257/0.1129, allocations: 1.76 MB / 333.5 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003711/0.1133, allocations: 15.94 kB / 333.5 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002529/0.1135, allocations: 127.1 kB / 333.6 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008683/0.1144, allocations: 406.8 kB / 334 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008039/0.1152, allocations: 399.3 kB / 334.4 MB, free: 13.37 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001296/0.1165, allocations: 0.998 MB / 335.4 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003925/0.1169, allocations: 249.6 kB / 335.6 MB, free: 12.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009646/0.1179, allocations: 0.5841 MB / 336.2 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007903/0.1187, allocations: 0.6851 MB / 336.9 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.1188, allocations: 68 kB / 337 MB, free: 10.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003163/0.1192, allocations: 143.9 kB / 337.1 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002608/0.1194, allocations: 259.1 kB / 337.4 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001846/0.1196, allocations: 213.1 kB / 337.6 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009225/0.1206, allocations: 1.052 MB / 338.6 MB, free: 9.102 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1206, allocations: 0 / 338.6 MB, free: 9.102 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1206, allocations: 0 / 338.6 MB, free: 9.102 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.1206, allocations: 0 / 338.6 MB, free: 9.102 MB / 286.1 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.003084/0.1237, allocations: 1.391 MB / 340 MB, free: 7.656 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.1237, allocations: 8.031 kB / 340 MB, free: 7.648 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004442/0.1242, allocations: 134.6 kB / 340.2 MB, free: 7.516 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008615/0.1251, allocations: 0.5881 MB / 340.8 MB, free: 6.883 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003302/0.1254, allocations: 206.9 kB / 341 MB, free: 6.664 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001875/0.1256, allocations: 103.9 kB / 341.1 MB, free: 6.562 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00222/0.1278, allocations: 1.251 MB / 342.3 MB, free: 5.293 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.922e-05/0.1279, allocations: 19.8 kB / 342.3 MB, free: 5.273 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.128, allocations: 36 kB / 342.4 MB, free: 5.238 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.886e-05/0.128, allocations: 24 kB / 342.4 MB, free: 5.215 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002678/0.1307, allocations: 1.37 MB / 343.8 MB, free: 3.848 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006113/0.1368, allocations: 3.738 MB / 347.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001984/0.1388, allocations: 1.077 MB / 348.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.519e-05/0.1389, allocations: 25.28 kB / 348.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.139, allocations: 47.81 kB / 348.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 2.845e-06/0.139, allocations: 0 / 348.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.01299/0.152, allocations: 5.872 MB / 354.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.1521, allocations: 102.4 kB / 354.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007158/0.1528, allocations: 0.5886 MB / 355.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001104/0.1529, allocations: 61.7 kB / 355.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002486/0.1532, allocations: 337.2 kB / 355.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003774/0.1536, allocations: 477.3 kB / 356.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.378e-05/0.1537, allocations: 27.98 kB / 356.1 MB, free: 7.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.1538, allocations: 390.8 kB / 356.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.155, allocations: 0.5896 MB / 357.1 MB, free: 6.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.1562, allocations: 0.7115 MB / 357.8 MB, free: 5.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/0.1572, allocations: 0.5214 MB / 358.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1572, allocations: 0 / 358.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00366/0.1609, allocations: 1.853 MB / 360.1 MB, free: 3.031 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.1609, allocations: 11.94 kB / 360.2 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.1609, allocations: 0 / 360.2 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00185/0.1628, allocations: 0.9618 MB / 361.1 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.1639, allocations: 267.5 kB / 361.4 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0024/0.1663, allocations: 1.997 MB / 363.4 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.1676, allocations: 203.9 kB / 363.6 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.1677, allocations: 55.97 kB / 363.6 MB, free: 15.48 MB / 318.1 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 () * Number of clocked 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.0005162/0.1682, allocations: 257.6 kB / 363.9 MB, free: 15.22 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002527/0.1685, allocations: 98.88 kB / 364 MB, free: 15.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002817/0.1688, allocations: 133.2 kB / 364.1 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.1688, allocations: 12 kB / 364.1 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/0.1688, allocations: 11.95 kB / 364.1 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.1688, allocations: 7.969 kB / 364.1 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006008/0.1748, allocations: 3.311 MB / 367.4 MB, free: 11.58 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/0.1749, allocations: 7.953 kB / 367.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.176, allocations: 267.6 kB / 367.7 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001723/0.1777, allocations: 0.9185 MB / 368.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.1778, allocations: 43.94 kB / 368.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002295/0.1801, allocations: 1.941 MB / 370.6 MB, free: 8.344 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.1802, allocations: 4.031 kB / 370.6 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005085/0.1853, allocations: 2.641 MB / 373.3 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005927/0.1859, allocations: 291.9 kB / 373.5 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.1861, allocations: 36 kB / 373.6 MB, free: 5.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.1871, allocations: 223.7 kB / 373.8 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004087/0.1876, allocations: 220.9 kB / 374 MB, free: 4.887 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/0.1877, allocations: 60.05 kB / 374.1 MB, free: 4.828 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005609/0.1883, allocations: 422.8 kB / 374.5 MB, free: 4.414 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1883, allocations: 0 / 374.5 MB, free: 4.414 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009214/0.1892, allocations: 324 kB / 374.8 MB, free: 4.098 MB / 318.1 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,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * 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.0003753/0.1896, allocations: 181.3 kB / 375 MB, free: 3.914 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003149/0.1927, allocations: 1.515 MB / 376.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1928, allocations: 320 / 376.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001754/0.1945, allocations: 0.8674 MB / 377.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008555/0.1954, allocations: 133.9 kB / 377.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2024/0.3978, allocations: 3.774 MB / 381.3 MB, free: 52.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008831/0.3988, allocations: 1.046 MB / 382.3 MB, free: 51.74 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001105/0.3999, allocations: 134.5 kB / 382.4 MB, free: 51.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004079/0.4003, allocations: 74.8 kB / 382.5 MB, free: 51.7 MB / 318.1 MB Notification: Performance of SimCode: time 1.463e-06/0.4003, allocations: 0 / 382.5 MB, free: 51.7 MB / 318.1 MB Notification: Performance of Templates: time 0.04486/0.4452, allocations: 19.85 MB / 402.4 MB, free: 41.49 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: