Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 145.2 kB / 25.59 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8955/0.8955, allocations: 173.4 MB / 202.2 MB, free: 8.277 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=10000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 269.2 MB, free: 9.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.026e-05/2.174e-05, allocations: 5.266 kB / 269.2 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004334/0.004355, allocations: 4.846 MB / 274 MB, free: 4.938 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00284/0.007195, allocations: 1.79 MB / 275.8 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004437/0.007639, allocations: 19.88 kB / 275.8 MB, free: 3.137 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003641/0.008003, allocations: 174.4 kB / 276 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008302/0.008833, allocations: 424.8 kB / 276.4 MB, free: 2.547 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008692/0.009703, allocations: 0.5302 MB / 277 MB, free: 2.016 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001264/0.01097, allocations: 1.658 MB / 278.6 MB, free: 360 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003113/0.01128, allocations: 211.9 kB / 278.8 MB, free: 136 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001047/0.01233, allocations: 0.9669 MB / 279.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007064/0.01303, allocations: 0.6703 MB / 280.5 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001471/0.01318, allocations: 128 kB / 280.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003307/0.01351, allocations: 215.8 kB / 280.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002424/0.01375, allocations: 342.9 kB / 281.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000351/0.0141, allocations: 466.9 kB / 281.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.01511, allocations: 1.156 MB / 282.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.01511, allocations: 0 / 282.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.01512, allocations: 4 kB / 282.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.01513, allocations: 0 / 282.8 MB, free: 12.2 MB / 266.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.001949/0.01708, allocations: 1.527 MB / 284.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.01712, allocations: 12.03 kB / 284.3 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000439/0.01756, allocations: 220.2 kB / 284.5 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006357/0.01819, allocations: 0.5394 MB / 285 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001689/0.01836, allocations: 252.8 kB / 285.3 MB, free: 9.551 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.01849, allocations: 100.3 kB / 285.4 MB, free: 9.453 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.01957, allocations: 0.9174 MB / 286.3 MB, free: 8.508 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.071e-05/0.0196, allocations: 7.953 kB / 286.3 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-05/0.01967, allocations: 40 kB / 286.4 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.01969, allocations: 24 kB / 286.4 MB, free: 8.438 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008371/0.02052, allocations: 0.6262 MB / 287 MB, free: 7.812 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003408/0.02393, allocations: 2.704 MB / 289.7 MB, free: 5.023 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008558/0.02479, allocations: 0.6232 MB / 290.3 MB, free: 4.391 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003876/0.02518, allocations: 339.2 kB / 290.7 MB, free: 4.055 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.356e-05/0.02524, allocations: 25.3 kB / 290.7 MB, free: 4.031 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.02527, allocations: 46.7 kB / 290.7 MB, free: 3.977 MB / 266.7 MB Notification: Performance of pre-optimization done (n=129): time 2.865e-06/0.02528, allocations: 0 / 290.7 MB, free: 3.977 MB / 266.7 MB Notification: Performance of matching and sorting (n=141): time 0.005503/0.03078, allocations: 3.38 MB / 294.1 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.03082, allocations: 94.36 kB / 294.2 MB, free: 464 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.03121, allocations: 0.5412 MB / 294.7 MB, free: 15.89 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.681e-05/0.03129, allocations: 57.7 kB / 294.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.03147, allocations: 400.6 kB / 295.2 MB, free: 15.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002736/0.03175, allocations: 0.492 MB / 295.7 MB, free: 14.94 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002951/0.03204, allocations: 269 kB / 295.9 MB, free: 14.67 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.03221, allocations: 0.578 MB / 296.5 MB, free: 14.08 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003952/0.03261, allocations: 275.8 kB / 296.8 MB, free: 13.81 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004317/0.03304, allocations: 464.8 kB / 297.2 MB, free: 13.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006647/0.0337, allocations: 0.6315 MB / 297.9 MB, free: 12.66 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.03371, allocations: 0 / 297.9 MB, free: 12.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.001501/0.03521, allocations: 1.16 MB / 299 MB, free: 11.48 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.03523, allocations: 4 kB / 299 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.03523, allocations: 0 / 299 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009941/0.03623, allocations: 0.7838 MB / 299.8 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005165/0.03674, allocations: 247.6 kB / 300.1 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.03813, allocations: 2.098 MB / 302.2 MB, free: 8.273 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005601/0.03869, allocations: 111.9 kB / 302.3 MB, free: 8.164 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.591e-05/0.03876, allocations: 43.98 kB / 302.3 MB, free: 8.121 MB / 282.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,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.0003146/0.03907, allocations: 232.3 kB / 302.5 MB, free: 7.883 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002085/0.03928, allocations: 147.4 kB / 302.7 MB, free: 7.738 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001559/0.03943, allocations: 125.2 kB / 302.8 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.03944, allocations: 12 kB / 302.8 MB, free: 7.598 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.03945, allocations: 4 kB / 302.8 MB, free: 7.594 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.03946, allocations: 7.969 kB / 302.8 MB, free: 7.586 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.04228, allocations: 2.164 MB / 305 MB, free: 5.371 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.04228, allocations: 0 / 305 MB, free: 5.371 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005425/0.04283, allocations: 219.7 kB / 305.2 MB, free: 5.156 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009479/0.04377, allocations: 0.7603 MB / 306 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.657e-05/0.04386, allocations: 43.95 kB / 306 MB, free: 4.344 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001366/0.04523, allocations: 2.107 MB / 308.1 MB, free: 2.168 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.04523, allocations: 160 / 308.1 MB, free: 2.168 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/0.04733, allocations: 1.635 MB / 309.8 MB, free: 0.5 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004434/0.04778, allocations: 211.8 kB / 310 MB, free: 300 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001334/0.04791, allocations: 43.94 kB / 310 MB, free: 256 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004405/0.04835, allocations: 111.9 kB / 310.1 MB, free: 144 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/0.04864, allocations: 216.9 kB / 310.3 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.158e-05/0.0487, allocations: 47.94 kB / 310.4 MB, free: 15.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002093/0.04891, allocations: 326.6 kB / 310.7 MB, free: 15.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04891, allocations: 3.938 kB / 310.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007157/0.04963, allocations: 319.9 kB / 311 MB, free: 15.24 MB / 298.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,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.0002854/0.04992, allocations: 193.7 kB / 311.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.05116, allocations: 0.9012 MB / 312.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.05116, allocations: 0 / 312.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006797/0.05184, allocations: 0.5492 MB / 312.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006593/0.0525, allocations: 258.6 kB / 312.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004143/0.05665, allocations: 2.538 MB / 315.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001334/0.05678, allocations: 202.5 kB / 315.6 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003589/0.05714, allocations: 107.2 kB / 315.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003944/0.05753, allocations: 262.1 kB / 316 MB, free: 10.18 MB / 298.7 MB Notification: Performance of SimCode: time 1.092e-06/0.05753, allocations: 0 / 316 MB, free: 10.18 MB / 298.7 MB Notification: Performance of Templates: time 0.02524/0.08277, allocations: 21.46 MB / 337.5 MB, free: 4.934 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 3.5131791750900447]