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.0009235/0.0009235, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009052/0.0009052, allocations: 141.7 kB / 24.89 MB, free: 8.777 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.8835/0.8835, allocations: 173.4 MB / 201.5 MB, free: 8.758 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 2.435e-06/2.435e-06, allocations: 0 / 268.5 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.415e-05, allocations: 2.312 kB / 268.5 MB, free: 6.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004159/0.004183, allocations: 4.855 MB / 273.3 MB, free: 1.152 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002536/0.006719, allocations: 1.84 MB / 275.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/0.006985, allocations: 19.88 kB / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003055/0.00729, allocations: 174.4 kB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007035/0.007994, allocations: 440.3 kB / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006271/0.008621, allocations: 0.5147 MB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009877/0.009609, allocations: 1.666 MB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.009872, allocations: 225.8 kB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008061/0.01068, allocations: 0.963 MB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000604/0.01128, allocations: 0.6547 MB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000148/0.01143, allocations: 128 kB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002674/0.0117, allocations: 219.8 kB / 280.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00022/0.01192, allocations: 346.9 kB / 280.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003086/0.01223, allocations: 466.9 kB / 280.9 MB, free: 9.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000853/0.01308, allocations: 1.153 MB / 282.1 MB, free: 8.344 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.01308, allocations: 4 kB / 282.1 MB, free: 8.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.01308, allocations: 0 / 282.1 MB, free: 8.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.01309, allocations: 0 / 282.1 MB, free: 8.34 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.001671/0.01477, allocations: 1.383 MB / 283.5 MB, free: 6.926 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.0148, allocations: 12.92 kB / 283.5 MB, free: 6.914 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003781/0.01518, allocations: 192.8 kB / 283.7 MB, free: 6.727 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005215/0.0157, allocations: 433.8 kB / 284.1 MB, free: 6.273 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.01585, allocations: 252.8 kB / 284.3 MB, free: 5.992 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.01597, allocations: 100.3 kB / 284.4 MB, free: 5.895 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009275/0.01689, allocations: 0.9273 MB / 285.4 MB, free: 4.941 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.734e-05/0.01692, allocations: 7.953 kB / 285.4 MB, free: 4.934 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.246e-05/0.01698, allocations: 40 kB / 285.4 MB, free: 4.895 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.017, allocations: 27.98 kB / 285.4 MB, free: 4.867 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006952/0.01769, allocations: 0.5316 MB / 286 MB, free: 4.336 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002815/0.02051, allocations: 2.161 MB / 288.1 MB, free: 2.105 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006875/0.0212, allocations: 0.5707 MB / 288.7 MB, free: 1.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.02151, allocations: 300.4 kB / 289 MB, free: 1.223 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.361e-05/0.02157, allocations: 25.31 kB / 289 MB, free: 1.199 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.0216, allocations: 47.81 kB / 289.1 MB, free: 1.145 MB / 266.7 MB Notification: Performance of pre-optimization done (n=129): time 2.414e-06/0.0216, allocations: 0 / 289.1 MB, free: 1.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=141): time 0.1036/0.1252, allocations: 3.195 MB / 292.3 MB, free: 29.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.1252, allocations: 96.2 kB / 292.4 MB, free: 29.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003828/0.1256, allocations: 489 kB / 292.8 MB, free: 29.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.001e-05/0.1257, allocations: 70.2 kB / 292.9 MB, free: 29.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.1258, allocations: 298.3 kB / 293.2 MB, free: 29.14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.126, allocations: 0.4903 MB / 293.7 MB, free: 28.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/0.1263, allocations: 261 kB / 293.9 MB, free: 28.87 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.565e-05/0.1264, allocations: 398.3 kB / 294.3 MB, free: 28.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/0.1268, allocations: 246.4 kB / 294.6 MB, free: 28.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/0.1272, allocations: 403.2 kB / 295 MB, free: 28.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007235/0.1279, allocations: 0.6214 MB / 295.6 MB, free: 28.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.1279, allocations: 0 / 295.6 MB, free: 28.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.001204/0.1291, allocations: 0.9104 MB / 296.5 MB, free: 28.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.1291, allocations: 8.75 kB / 296.5 MB, free: 28.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1291, allocations: 1.188 kB / 296.5 MB, free: 28.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009924/0.1301, allocations: 0.7395 MB / 297.2 MB, free: 28.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005269/0.1306, allocations: 234.5 kB / 297.5 MB, free: 28.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009732/0.1316, allocations: 1.511 MB / 299 MB, free: 27.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004409/0.1321, allocations: 109.1 kB / 299.1 MB, free: 27.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.317e-05/0.1321, allocations: 38.42 kB / 299.1 MB, free: 27.14 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.0001988/0.1323, allocations: 195.5 kB / 299.3 MB, free: 27.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.1325, allocations: 102.6 kB / 299.4 MB, free: 27.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.1326, allocations: 132.1 kB / 299.5 MB, free: 27.01 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.1326, allocations: 15.03 kB / 299.6 MB, free: 27.01 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.1326, allocations: 0 / 299.6 MB, free: 27.01 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.1326, allocations: 10.75 kB / 299.6 MB, free: 27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002323/0.1349, allocations: 1.661 MB / 301.2 MB, free: 26.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1349, allocations: 1.312 kB / 301.2 MB, free: 26.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005005/0.1354, allocations: 224.7 kB / 301.5 MB, free: 26.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007518/0.1362, allocations: 0.7254 MB / 302.2 MB, free: 26.63 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.517e-05/0.1363, allocations: 47.83 kB / 302.2 MB, free: 26.63 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007368/0.137, allocations: 1.501 MB / 303.7 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.137, allocations: 2.625 kB / 303.7 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.1384, allocations: 1.342 MB / 305.1 MB, free: 25.21 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002363/0.1386, allocations: 133.1 kB / 305.2 MB, free: 25.15 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.1387, allocations: 43.36 kB / 305.2 MB, free: 25.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003542/0.1391, allocations: 110.4 kB / 305.4 MB, free: 25.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.1393, allocations: 206.3 kB / 305.6 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.456e-05/0.1393, allocations: 38.3 kB / 305.6 MB, free: 24.98 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001353/0.1394, allocations: 227.9 kB / 305.8 MB, free: 24.81 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1394, allocations: 0 / 305.8 MB, free: 24.81 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004734/0.1399, allocations: 325 kB / 306.1 MB, free: 24.5 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.0002166/0.1401, allocations: 183.7 kB / 306.3 MB, free: 24.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008279/0.141, allocations: 0.8165 MB / 307.1 MB, free: 23.55 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.141, allocations: 4 kB / 307.1 MB, free: 23.55 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004754/0.1414, allocations: 0.511 MB / 307.6 MB, free: 23.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004734/0.1419, allocations: 233.1 kB / 307.9 MB, free: 22.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.1451, allocations: 2.283 MB / 310.2 MB, free: 20.54 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.129e-05/0.1452, allocations: 198.5 kB / 310.3 MB, free: 20.33 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002546/0.1455, allocations: 110.1 kB / 310.5 MB, free: 20.22 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003237/0.1458, allocations: 225.2 kB / 310.7 MB, free: 20 MB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1458, allocations: 0 / 310.7 MB, free: 20 MB / 266.7 MB Notification: Performance of Templates: time 0.01872/0.1645, allocations: 20.92 MB / 331.6 MB, free: 15.36 MB / 282.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: 4.463581573218107]