Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008943/0.0008943, allocations: 80.8 kB / 22.28 MB, free: 2.207 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 168.7 kB / 25.7 MB, free: 8.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8337/0.8337, allocations: 158.6 MB / 187.6 MB, free: 2.789 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.865e-06/2.865e-06, allocations: 4 kB / 251.5 MB, free: 7.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.315e-05/2.602e-05, allocations: 2.312 kB / 251.5 MB, free: 7.266 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.005957/0.005983, allocations: 4.889 MB / 256.4 MB, free: 2.352 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003688/0.009671, allocations: 1.794 MB / 258.2 MB, free: 0.543 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003978/0.01007, allocations: 23.88 kB / 258.2 MB, free: 0.5195 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004001/0.01047, allocations: 174.4 kB / 258.4 MB, free: 356 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001096/0.01157, allocations: 428.8 kB / 258.8 MB, free: 15.93 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.01257, allocations: 0.5263 MB / 259.3 MB, free: 15.4 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001109/0.01368, allocations: 1.654 MB / 261 MB, free: 13.74 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.01396, allocations: 225.8 kB / 261.2 MB, free: 13.5 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000773/0.01473, allocations: 0.9669 MB / 262.2 MB, free: 12.54 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007982/0.01553, allocations: 0.6586 MB / 262.8 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001866/0.01572, allocations: 131.9 kB / 263 MB, free: 11.75 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000428/0.01615, allocations: 215.8 kB / 263.2 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003222/0.01647, allocations: 342.9 kB / 263.5 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004738/0.01694, allocations: 463 kB / 264 MB, free: 10.75 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001364/0.01831, allocations: 1.164 MB / 265.1 MB, free: 9.578 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.01831, allocations: 0 / 265.1 MB, free: 9.578 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.01831, allocations: 0 / 265.1 MB, free: 9.578 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.018e-05/0.01832, allocations: 0 / 265.1 MB, free: 9.578 MB / 250.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.002513/0.02084, allocations: 1.383 MB / 266.5 MB, free: 8.164 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.02088, allocations: 19.92 kB / 266.5 MB, free: 8.145 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005553/0.02144, allocations: 184.8 kB / 266.7 MB, free: 7.965 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000812/0.02225, allocations: 433.8 kB / 267.1 MB, free: 7.512 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/0.02248, allocations: 248.8 kB / 267.4 MB, free: 7.234 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001921/0.02267, allocations: 112.3 kB / 267.5 MB, free: 7.125 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009704/0.02364, allocations: 0.9196 MB / 268.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.065e-05/0.02367, allocations: 19.88 kB / 268.4 MB, free: 6.16 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.113e-05/0.02374, allocations: 36 kB / 268.5 MB, free: 6.125 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.44e-05/0.02375, allocations: 24 kB / 268.5 MB, free: 6.102 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006693/0.02442, allocations: 0.5432 MB / 269 MB, free: 5.559 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002826/0.02725, allocations: 2.141 MB / 271.2 MB, free: 3.344 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006857/0.02793, allocations: 0.5784 MB / 271.8 MB, free: 2.762 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003104/0.02824, allocations: 296.4 kB / 272 MB, free: 2.469 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.414e-05/0.02831, allocations: 25.3 kB / 272.1 MB, free: 2.441 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.02833, allocations: 47.88 kB / 272.1 MB, free: 2.387 MB / 250.7 MB Notification: Performance of pre-optimization done (n=129): time 2.434e-06/0.02834, allocations: 4 kB / 272.1 MB, free: 2.383 MB / 250.7 MB Notification: Performance of matching and sorting (n=141): time 0.00462/0.03296, allocations: 3.21 MB / 275.3 MB, free: 15.15 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.033, allocations: 94.41 kB / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003045/0.0333, allocations: 492.7 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.795e-05/0.03337, allocations: 61.69 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.03349, allocations: 302.9 kB / 276.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002385/0.03373, allocations: 499.8 kB / 276.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002417/0.03397, allocations: 259.4 kB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.03409, allocations: 398.6 kB / 277.4 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/0.03441, allocations: 242.7 kB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003532/0.03476, allocations: 402.3 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000572/0.03533, allocations: 0.6213 MB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.03533, allocations: 4 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00103/0.03636, allocations: 0.9038 MB / 279.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.03638, allocations: 4 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.03639, allocations: 0 / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008668/0.03726, allocations: 0.7471 MB / 280.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004493/0.03771, allocations: 235.6 kB / 280.5 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009999/0.03871, allocations: 1.502 MB / 282 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003714/0.03908, allocations: 111.9 kB / 282.1 MB, free: 8.152 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.462e-05/0.03913, allocations: 35.98 kB / 282.2 MB, free: 8.117 MB / 266.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.0002198/0.03935, allocations: 204.3 kB / 282.4 MB, free: 7.906 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.03948, allocations: 103.9 kB / 282.5 MB, free: 7.805 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.0396, allocations: 137.1 kB / 282.6 MB, free: 7.664 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.03961, allocations: 16.03 kB / 282.6 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.03961, allocations: 0 / 282.6 MB, free: 7.648 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.03962, allocations: 3.984 kB / 282.6 MB, free: 7.645 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002184/0.0418, allocations: 1.665 MB / 284.3 MB, free: 5.938 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.04181, allocations: 8 kB / 284.3 MB, free: 5.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005087/0.04232, allocations: 215.7 kB / 284.5 MB, free: 5.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008417/0.04316, allocations: 0.7274 MB / 285.2 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.725e-05/0.04322, allocations: 39.95 kB / 285.3 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009533/0.04417, allocations: 1.495 MB / 286.8 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.04417, allocations: 0 / 286.8 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.04573, allocations: 1.346 MB / 288.1 MB, free: 2.023 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002511/0.04598, allocations: 140 kB / 288.3 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.04609, allocations: 36 kB / 288.3 MB, free: 1.852 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003739/0.04646, allocations: 119.8 kB / 288.4 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002336/0.0467, allocations: 204.9 kB / 288.6 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.095e-05/0.04675, allocations: 43.94 kB / 288.7 MB, free: 1.492 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001624/0.04691, allocations: 215.2 kB / 288.9 MB, free: 1.277 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04691, allocations: 0 / 288.9 MB, free: 1.277 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004908/0.0474, allocations: 319.9 kB / 289.2 MB, free: 0.9648 MB / 266.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.0002354/0.04764, allocations: 174.2 kB / 289.4 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009639/0.0486, allocations: 0.8119 MB / 290.2 MB, free: 15.97 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.04861, allocations: 8.312 kB / 290.2 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000564/0.04917, allocations: 0.5229 MB / 290.7 MB, free: 15.44 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005264/0.0497, allocations: 226.3 kB / 290.9 MB, free: 15.22 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003612/0.05331, allocations: 2.292 MB / 293.2 MB, free: 12.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.05343, allocations: 198.5 kB / 293.4 MB, free: 12.67 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002668/0.0537, allocations: 107.1 kB / 293.5 MB, free: 12.56 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/0.05405, allocations: 233.2 kB / 293.7 MB, free: 12.33 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.05405, allocations: 0 / 293.7 MB, free: 12.33 MB / 282.7 MB Notification: Performance of Templates: time 0.023/0.07705, allocations: 20.91 MB / 314.6 MB, free: 7.426 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 4.381672764662653]