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.001386/0.001385, allocations: 105.4 kB / 16.62 MB, free: 6.809 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.001519/0.001519, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.582/1.582, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001409/0.001409, allocations: 55.88 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1033, allocations: 46.62 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006313/0.1096, allocations: 4.992 MB / 331.1 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0033/0.113, allocations: 1.767 MB / 332.9 MB, free: 14 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004719/0.1135, allocations: 15.94 kB / 332.9 MB, free: 13.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004226/0.1139, allocations: 135.1 kB / 333 MB, free: 13.85 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001017/0.115, allocations: 349.8 kB / 333.4 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000983/0.1159, allocations: 463.4 kB / 333.8 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001497/0.1175, allocations: 1.612 MB / 335.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004738/0.1179, allocations: 323.3 kB / 335.8 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008658/0.1188, allocations: 0.6969 MB / 336.5 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008067/0.1196, allocations: 0.7786 MB / 337.2 MB, free: 9.625 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001747/0.1198, allocations: 128 kB / 337.4 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003645/0.1202, allocations: 211.9 kB / 337.6 MB, free: 9.293 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002955/0.1205, allocations: 339 kB / 337.9 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005266/0.121, allocations: 0.6143 MB / 338.5 MB, free: 8.344 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.1224, allocations: 1.499 MB / 340 MB, free: 6.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1224, allocations: 0 / 340 MB, free: 6.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1224, allocations: 0 / 340 MB, free: 6.84 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.1225, allocations: 0 / 340 MB, free: 6.84 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.003299/0.1258, allocations: 1.524 MB / 341.5 MB, free: 5.266 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.1258, allocations: 12.03 kB / 341.5 MB, free: 5.254 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005038/0.1263, allocations: 135.5 kB / 341.7 MB, free: 5.121 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008717/0.1272, allocations: 0.5928 MB / 342.3 MB, free: 4.484 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003624/0.1276, allocations: 203.4 kB / 342.5 MB, free: 4.266 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/0.1278, allocations: 99.91 kB / 342.6 MB, free: 4.168 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002429/0.1302, allocations: 1.251 MB / 343.8 MB, free: 2.902 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.698e-05/0.1303, allocations: 23.81 kB / 343.8 MB, free: 2.879 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.1304, allocations: 43.94 kB / 343.9 MB, free: 2.836 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.894e-05/0.1305, allocations: 24 kB / 343.9 MB, free: 2.812 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002718/0.1332, allocations: 1.327 MB / 345.2 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006312/0.1395, allocations: 3.659 MB / 348.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00204/0.1416, allocations: 1.046 MB / 349.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001228/0.1428, allocations: 0.6723 MB / 350.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-05/0.1429, allocations: 17.3 kB / 350.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.535e-05/0.143, allocations: 47.88 kB / 350.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 3.406e-06/0.143, allocations: 0 / 350.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.01392/0.1569, allocations: 5.647 MB / 356.3 MB, free: 6.059 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.833e-05/0.1571, allocations: 94.42 kB / 356.4 MB, free: 5.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009647/0.158, allocations: 0.5887 MB / 357 MB, free: 5.352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001274/0.1582, allocations: 65.69 kB / 357.1 MB, free: 5.281 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002604/0.1584, allocations: 329.3 kB / 357.4 MB, free: 4.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003893/0.1588, allocations: 481.2 kB / 357.9 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004491/0.1593, allocations: 259.4 kB / 358.1 MB, free: 4.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001979/0.1595, allocations: 394.7 kB / 358.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.1607, allocations: 0.5818 MB / 359.1 MB, free: 3.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001438/0.1621, allocations: 0.7231 MB / 359.8 MB, free: 2.492 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002014/0.1642, allocations: 1.058 MB / 360.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1642, allocations: 0 / 360.9 MB, free: 1.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003795/0.168, allocations: 1.787 MB / 362.6 MB, free: 15.62 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.168, allocations: 11.98 kB / 362.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.168, allocations: 0 / 362.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001896/0.1699, allocations: 0.9735 MB / 363.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.171, allocations: 251.6 kB / 363.9 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00255/0.1735, allocations: 2.005 MB / 365.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.1747, allocations: 155.9 kB / 366 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.1748, allocations: 51.98 kB / 366.1 MB, free: 12.12 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,lossyGear.ideal,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,lossyGear.mode,$PRE.lossyGear.mode,lossyGear.locked,lossyGear.startBackward,lossyGear.startForward,lossyGear.tau_aPos,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,40), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005688/0.1754, allocations: 265.5 kB / 366.3 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001962/0.1756, allocations: 86.97 kB / 366.4 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002649/0.1759, allocations: 133.2 kB / 366.6 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.1759, allocations: 16 kB / 366.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.1759, allocations: 0 / 366.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.176, allocations: 11.97 kB / 366.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006102/0.1821, allocations: 3.288 MB / 369.9 MB, free: 8.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.926e-06/0.1821, allocations: 4 kB / 369.9 MB, free: 8.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.1832, allocations: 235.7 kB / 370.1 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001754/0.1849, allocations: 0.9185 MB / 371 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.185, allocations: 47.95 kB / 371.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002237/0.1873, allocations: 1.936 MB / 373 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.284e-05/0.1873, allocations: 8.062 kB / 373 MB, free: 5.031 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004939/0.1923, allocations: 2.571 MB / 375.6 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004834/0.1928, allocations: 291.8 kB / 375.9 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001817/0.193, allocations: 40 kB / 375.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009842/0.1939, allocations: 151.8 kB / 376.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004117/0.1944, allocations: 197 kB / 376.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.1945, allocations: 59.89 kB / 376.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004791/0.195, allocations: 422.8 kB / 376.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.195, allocations: 0 / 376.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008256/0.1958, allocations: 328 kB / 377 MB, free: 0.9531 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (4,38)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003193/0.1961, allocations: 177.4 kB / 377.2 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.1845/0.3806, allocations: 1.6 MB / 378.8 MB, free: 55.4 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.3807, allocations: 1.375 kB / 378.8 MB, free: 55.4 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002224/0.3829, allocations: 0.8392 MB / 379.7 MB, free: 55.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/0.3842, allocations: 156.9 kB / 379.8 MB, free: 55.39 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008194/0.3924, allocations: 3.503 MB / 383.3 MB, free: 53.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005868/0.3931, allocations: 1.028 MB / 384.3 MB, free: 53.06 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007721/0.3938, allocations: 134 kB / 384.5 MB, free: 53.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.3941, allocations: 85.83 kB / 384.6 MB, free: 53 MB / 318.1 MB Notification: Performance of SimCode: time 1.373e-06/0.3941, allocations: 0 / 384.6 MB, free: 53 MB / 318.1 MB Notification: Performance of Templates: time 0.03483/0.429, allocations: 21.91 MB / 406.5 MB, free: 38.27 MB / 318.1 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)