Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00134/0.00134, allocations: 84.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 159.7 kB / 24.91 MB, free: 8.711 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.027/1.027, allocations: 177 MB / 205.2 MB, free: 5.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.887e-05/2.029e-05, allocations: 6.25 kB / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004925/0.004946, allocations: 5.033 MB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004081/0.009027, allocations: 2.078 MB / 280.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005913/0.009618, allocations: 23.81 kB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005417/0.01016, allocations: 190.3 kB / 280.7 MB, free: 9.832 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001168/0.01133, allocations: 497.4 kB / 281.2 MB, free: 9.344 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001113/0.01244, allocations: 0.5341 MB / 281.7 MB, free: 8.809 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001826/0.01427, allocations: 1.779 MB / 283.5 MB, free: 7.023 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003834/0.01465, allocations: 222 kB / 283.7 MB, free: 6.789 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001531/0.01618, allocations: 1.037 MB / 284.8 MB, free: 5.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008375/0.01702, allocations: 0.7015 MB / 285.5 MB, free: 5.047 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002415/0.01726, allocations: 136 kB / 285.6 MB, free: 4.914 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004392/0.0177, allocations: 239.8 kB / 285.8 MB, free: 4.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003168/0.01802, allocations: 378.8 kB / 286.2 MB, free: 4.309 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004611/0.01848, allocations: 490.9 kB / 286.7 MB, free: 3.828 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001725/0.0202, allocations: 1.246 MB / 287.9 MB, free: 2.578 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.02021, allocations: 4 kB / 287.9 MB, free: 2.574 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.02021, allocations: 0 / 287.9 MB, free: 2.574 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.78e-05/0.02024, allocations: 0 / 287.9 MB, free: 2.574 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002329/0.02256, allocations: 1.468 MB / 289.4 MB, free: 1.074 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.0226, allocations: 11.98 kB / 289.4 MB, free: 1.062 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005676/0.02317, allocations: 216.7 kB / 289.6 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000779/0.02395, allocations: 465.7 kB / 290.1 MB, free: 376 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002066/0.02415, allocations: 260.7 kB / 290.3 MB, free: 80 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1047/0.1288, allocations: 100.3 kB / 290.4 MB, free: 25.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.1303, allocations: 0.9248 MB / 291.3 MB, free: 25.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.383e-05/0.1303, allocations: 11.61 kB / 291.4 MB, free: 25.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.691e-05/0.1304, allocations: 40.12 kB / 291.4 MB, free: 25.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.886e-05/0.1304, allocations: 24.25 kB / 291.4 MB, free: 25.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009319/0.1313, allocations: 0.5312 MB / 292 MB, free: 25.26 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003592/0.1349, allocations: 2.122 MB / 294.1 MB, free: 24.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008829/0.1358, allocations: 0.5907 MB / 294.7 MB, free: 24.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000368/0.1362, allocations: 287.4 kB / 294.9 MB, free: 24.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.271e-05/0.1362, allocations: 25.41 kB / 295 MB, free: 24.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.1363, allocations: 49.42 kB / 295 MB, free: 24.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=136): time 2.815e-06/0.1363, allocations: 0 / 295 MB, free: 24.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=148): time 0.005457/0.1417, allocations: 3.144 MB / 298.2 MB, free: 24.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.1418, allocations: 98.12 kB / 298.3 MB, free: 24.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003795/0.1421, allocations: 0.4964 MB / 298.8 MB, free: 23.97 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.705e-05/0.1422, allocations: 63.19 kB / 298.8 MB, free: 23.94 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.1423, allocations: 292.3 kB / 299.1 MB, free: 23.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002292/0.1426, allocations: 0.5212 MB / 299.6 MB, free: 23.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002798/0.1428, allocations: 258.8 kB / 299.9 MB, free: 23.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.5e-05/0.1429, allocations: 348.2 kB / 300.2 MB, free: 23.19 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003707/0.1433, allocations: 220 kB / 300.4 MB, free: 23.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000381/0.1436, allocations: 379.8 kB / 300.8 MB, free: 23.06 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006323/0.1443, allocations: 0.5976 MB / 301.4 MB, free: 22.96 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1443, allocations: 1.906 kB / 301.4 MB, free: 22.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.001061/0.1453, allocations: 0.8617 MB / 302.3 MB, free: 22.87 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.1454, allocations: 14.84 kB / 302.3 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1454, allocations: 3.969 kB / 302.3 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007659/0.1461, allocations: 0.5885 MB / 302.9 MB, free: 22.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004412/0.1466, allocations: 231.3 kB / 303.1 MB, free: 22.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007926/0.1474, allocations: 1.463 MB / 304.6 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004049/0.1478, allocations: 107.9 kB / 304.7 MB, free: 21.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-05/0.1478, allocations: 43.97 kB / 304.7 MB, free: 21.36 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 (126): * Single equations (assignments): 124 * 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,45), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.148, allocations: 198.1 kB / 304.9 MB, free: 21.17 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.1481, allocations: 111.5 kB / 305 MB, free: 21.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.677e-05/0.1482, allocations: 137.8 kB / 305.1 MB, free: 20.92 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.1483, allocations: 19.98 kB / 305.2 MB, free: 20.9 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.1483, allocations: 4 kB / 305.2 MB, free: 20.9 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/0.1483, allocations: 3.984 kB / 305.2 MB, free: 20.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001997/0.1503, allocations: 1.642 MB / 306.8 MB, free: 19.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.1503, allocations: 3.984 kB / 306.8 MB, free: 19.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004852/0.1508, allocations: 225.4 kB / 307 MB, free: 19.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006895/0.1514, allocations: 0.5809 MB / 307.6 MB, free: 18.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.947e-05/0.1515, allocations: 43.94 kB / 307.7 MB, free: 18.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007241/0.1522, allocations: 1.452 MB / 309.1 MB, free: 17.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1522, allocations: 3.375 kB / 309.1 MB, free: 17.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.1535, allocations: 1.242 MB / 310.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002523/0.1538, allocations: 152.9 kB / 310.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.1539, allocations: 40 kB / 310.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003862/0.1543, allocations: 111.9 kB / 310.7 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/0.1545, allocations: 212.9 kB / 310.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.908e-05/0.1545, allocations: 43.89 kB / 310.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001379/0.1547, allocations: 231 kB / 311.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1547, allocations: 0 / 311.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004772/0.1552, allocations: 319.5 kB / 311.4 MB, free: 14.73 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,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,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 (95): * Single equations (assignments): 93 * 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,7), (4,43)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009739/0.1561, allocations: 0.5004 MB / 311.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008558/0.157, allocations: 0.7814 MB / 312.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.157, allocations: 4 kB / 312.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005/0.1575, allocations: 0.5234 MB / 313.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005369/0.158, allocations: 291.2 kB / 313.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003358/0.1614, allocations: 2.362 MB / 315.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.655e-05/0.1615, allocations: 214.4 kB / 316.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003071/0.1618, allocations: 139.5 kB / 316.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003802/0.1622, allocations: 257 kB / 316.5 MB, free: 9.914 MB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1622, allocations: 0 / 316.5 MB, free: 9.914 MB / 266.7 MB Notification: Performance of Templates: time 0.02211/0.1843, allocations: 21.5 MB / 338 MB, free: 4.648 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 4.000412347726524]