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.001315/0.001315, allocations: 85.08 kB / 23 MB, free: 1.504 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.00107/0.00107, allocations: 176 kB / 26.39 MB, free: 8.008 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.9185/0.9185, allocations: 158.6 MB / 188.3 MB, free: 2.812 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 1.392e-06/1.392e-06, allocations: 3.938 kB / 252.2 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.358e-05/1.497e-05, allocations: 6.25 kB / 252.3 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004115/0.00413, allocations: 4.889 MB / 257.1 MB, free: 2.34 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002579/0.006709, allocations: 1.736 MB / 258.9 MB, free: 0.5898 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003011/0.00701, allocations: 19.88 kB / 258.9 MB, free: 0.5703 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003049/0.007315, allocations: 170.4 kB / 259.1 MB, free: 412 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007227/0.008038, allocations: 432.8 kB / 259.5 MB, free: 15.97 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007251/0.008763, allocations: 0.5302 MB / 260 MB, free: 15.44 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001076/0.009839, allocations: 1.654 MB / 261.7 MB, free: 13.79 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002863/0.01013, allocations: 211.9 kB / 261.9 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009518/0.01108, allocations: 0.9668 MB / 262.8 MB, free: 12.6 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006085/0.01169, allocations: 0.6742 MB / 263.5 MB, free: 11.93 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001474/0.01183, allocations: 128 kB / 263.6 MB, free: 11.8 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000274/0.01211, allocations: 215.8 kB / 263.9 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002191/0.01233, allocations: 338.9 kB / 264.2 MB, free: 11.26 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006067/0.01293, allocations: 466.9 kB / 264.6 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009655/0.0139, allocations: 1.156 MB / 265.8 MB, free: 9.641 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.0139, allocations: 4 kB / 265.8 MB, free: 9.637 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.0139, allocations: 0 / 265.8 MB, free: 9.637 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.01392, allocations: 0 / 265.8 MB, free: 9.637 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.001857/0.01577, allocations: 1.523 MB / 267.3 MB, free: 8.07 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.01581, allocations: 11.98 kB / 267.3 MB, free: 8.059 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003989/0.0162, allocations: 232.1 kB / 267.6 MB, free: 7.832 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005835/0.01679, allocations: 0.5278 MB / 268.1 MB, free: 7.273 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.01695, allocations: 252.8 kB / 268.3 MB, free: 6.992 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.01709, allocations: 104.3 kB / 268.4 MB, free: 6.891 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.01832, allocations: 0.9251 MB / 269.4 MB, free: 5.938 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.35e-05/0.01835, allocations: 11.94 kB / 269.4 MB, free: 5.926 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.924e-05/0.01842, allocations: 39.94 kB / 269.4 MB, free: 5.887 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.709e-05/0.01844, allocations: 24 kB / 269.4 MB, free: 5.863 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000792/0.01923, allocations: 0.6223 MB / 270.1 MB, free: 5.242 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00345/0.02268, allocations: 2.696 MB / 272.8 MB, free: 2.465 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008206/0.0235, allocations: 0.633 MB / 273.4 MB, free: 1.82 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003809/0.02388, allocations: 334.9 kB / 273.7 MB, free: 1.488 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.357e-05/0.02394, allocations: 33.25 kB / 273.7 MB, free: 1.453 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.02397, allocations: 50.7 kB / 273.8 MB, free: 1.395 MB / 250.7 MB Notification: Performance of pre-optimization done (n=129): time 2.214e-06/0.02397, allocations: 0 / 273.8 MB, free: 1.395 MB / 250.7 MB Notification: Performance of matching and sorting (n=141): time 0.005157/0.02913, allocations: 3.368 MB / 277.2 MB, free: 14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.02917, allocations: 94.42 kB / 277.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003457/0.02951, allocations: 0.5451 MB / 277.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.666e-05/0.02959, allocations: 65.69 kB / 277.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.02976, allocations: 392.7 kB / 278.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002515/0.03002, allocations: 0.4919 MB / 278.7 MB, free: 12.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005357/0.03055, allocations: 273 kB / 279 MB, free: 12.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.03071, allocations: 0.5741 MB / 279.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003683/0.03108, allocations: 283.8 kB / 279.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004383/0.03151, allocations: 468.8 kB / 280.3 MB, free: 10.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006388/0.03215, allocations: 0.6237 MB / 280.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.03215, allocations: 0 / 280.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.001384/0.03354, allocations: 1.16 MB / 282.1 MB, free: 8.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.03355, allocations: 4 kB / 282.1 MB, free: 8.906 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.03356, allocations: 4 kB / 282.1 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009391/0.0345, allocations: 0.7759 MB / 282.9 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004903/0.03499, allocations: 235.7 kB / 283.1 MB, free: 7.887 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.03622, allocations: 2.102 MB / 285.2 MB, free: 5.719 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004173/0.03664, allocations: 111.9 kB / 285.3 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.265e-05/0.0367, allocations: 39.98 kB / 285.4 MB, free: 5.57 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.0002445/0.03694, allocations: 244.3 kB / 285.6 MB, free: 5.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.03711, allocations: 143.3 kB / 285.7 MB, free: 5.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/0.03726, allocations: 133.2 kB / 285.9 MB, free: 5.043 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.03727, allocations: 16 kB / 285.9 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.03727, allocations: 0 / 285.9 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.03728, allocations: 7.969 kB / 285.9 MB, free: 5.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002905/0.04018, allocations: 2.141 MB / 288 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.04019, allocations: 4 kB / 288 MB, free: 2.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005379/0.04073, allocations: 227.7 kB / 288.3 MB, free: 2.598 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008942/0.04162, allocations: 0.7601 MB / 289 MB, free: 1.828 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.827e-05/0.04169, allocations: 47.94 kB / 289.1 MB, free: 1.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.04293, allocations: 2.107 MB / 291.2 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.04293, allocations: 0 / 291.2 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001971/0.0449, allocations: 1.632 MB / 292.8 MB, free: 13.94 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003068/0.04521, allocations: 203.9 kB / 293 MB, free: 13.74 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.04533, allocations: 47.94 kB / 293.1 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004173/0.04575, allocations: 103.9 kB / 293.2 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005477/0.0463, allocations: 216.9 kB / 293.4 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.425e-05/0.04636, allocations: 47.95 kB / 293.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002028/0.04656, allocations: 334.7 kB / 293.7 MB, free: 13.01 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04656, allocations: 0 / 293.7 MB, free: 13.01 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005767/0.04714, allocations: 319.9 kB / 294.1 MB, free: 12.7 MB / 282.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.0002479/0.04739, allocations: 189 kB / 294.2 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.04851, allocations: 0.9041 MB / 295.1 MB, free: 11.59 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.04851, allocations: 0 / 295.1 MB, free: 11.59 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006497/0.04916, allocations: 0.5652 MB / 295.7 MB, free: 11.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005907/0.04975, allocations: 234.1 kB / 295.9 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003839/0.05359, allocations: 2.538 MB / 298.5 MB, free: 8.211 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001245/0.05372, allocations: 202.5 kB / 298.7 MB, free: 7.992 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002579/0.05397, allocations: 107.1 kB / 298.8 MB, free: 7.883 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003983/0.05437, allocations: 258.1 kB / 299 MB, free: 7.629 MB / 282.7 MB Notification: Performance of SimCode: time 8.01e-07/0.05437, allocations: 0 / 299 MB, free: 7.629 MB / 282.7 MB Notification: Performance of Templates: time 0.02245/0.07682, allocations: 21.45 MB / 320.5 MB, free: 2.176 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: 3.4599116290919483]