Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009324/0.009324, allocations: 101 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 196.6 kB / 16.68 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.653/1.653, allocations: 205.1 MB / 222.5 MB, free: 4.477 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 63.34 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09957/0.1007, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006716/0.1075, allocations: 5.001 MB / 378.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003943/0.1115, allocations: 1.767 MB / 379.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000414/0.1119, allocations: 15.94 kB / 380 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004056/0.1124, allocations: 174.4 kB / 380.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009042/0.1133, allocations: 409 kB / 380.5 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.1143, allocations: 0.5186 MB / 381 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002286/0.1166, allocations: 1.616 MB / 382.7 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004807/0.1171, allocations: 315.3 kB / 383 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009196/0.118, allocations: 0.6894 MB / 383.7 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009965/0.119, allocations: 0.7825 MB / 384.4 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000242/0.1193, allocations: 128 kB / 384.6 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004962/0.1198, allocations: 223.9 kB / 384.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003548/0.1201, allocations: 339 kB / 385.1 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007641/0.1209, allocations: 0.6182 MB / 385.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.1224, allocations: 1.503 MB / 387.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1224, allocations: 0 / 387.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1224, allocations: 0 / 387.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.76e-05/0.1225, allocations: 0 / 387.2 MB, free: 3.176 MB / 318.1 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.003271/0.1257, allocations: 1.535 MB / 388.8 MB, free: 1.586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.1258, allocations: 8.031 kB / 388.8 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004713/0.1263, allocations: 131.6 kB / 388.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.1274, allocations: 0.6085 MB / 389.5 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002014/0.1276, allocations: 175.4 kB / 389.7 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/0.1278, allocations: 99.91 kB / 389.8 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/0.13, allocations: 1.259 MB / 391 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.111e-05/0.13, allocations: 15.81 kB / 391.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.1301, allocations: 40 kB / 391.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.1302, allocations: 20 kB / 391.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002683/0.1328, allocations: 1.331 MB / 392.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005924/0.1388, allocations: 3.655 MB / 396.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001996/0.1408, allocations: 1.042 MB / 397.1 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001214/0.142, allocations: 0.6682 MB / 397.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.588e-05/0.1421, allocations: 13.31 kB / 397.8 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.788e-05/0.1422, allocations: 47.88 kB / 397.9 MB, free: 8.219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 3.757e-06/0.1422, allocations: 0 / 397.9 MB, free: 8.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.01356/0.1558, allocations: 5.627 MB / 403.5 MB, free: 2.438 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.273e-05/0.1559, allocations: 94.42 kB / 403.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009644/0.1568, allocations: 0.6003 MB / 404.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001312/0.157, allocations: 61.7 kB / 404.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003303/0.1573, allocations: 329.2 kB / 404.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005105/0.1579, allocations: 485.3 kB / 405 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005656/0.1584, allocations: 263.3 kB / 405.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002772/0.1587, allocations: 394.7 kB / 405.7 MB, free: 192 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.1601, allocations: 0.5779 MB / 406.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001378/0.1615, allocations: 0.7309 MB / 407 MB, free: 14.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002152/0.1637, allocations: 1.058 MB / 408.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.1637, allocations: 0 / 408.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003879/0.1676, allocations: 1.798 MB / 409.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.561e-05/0.1676, allocations: 8 kB / 409.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.1676, allocations: 4.188 kB / 409.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001985/0.1696, allocations: 0.9657 MB / 410.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009825/0.1706, allocations: 251.6 kB / 411.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00245/0.1731, allocations: 1.993 MB / 413.1 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/0.1743, allocations: 151.9 kB / 413.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/0.1744, allocations: 51.98 kB / 413.3 MB, free: 8.484 MB / 350.1 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.0005779/0.175, allocations: 265.6 kB / 413.5 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002765/0.1753, allocations: 94.88 kB / 413.6 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002823/0.1756, allocations: 133.2 kB / 413.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.1756, allocations: 12 kB / 413.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.1756, allocations: 0 / 413.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.1757, allocations: 7.984 kB / 413.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00663/0.1823, allocations: 3.262 MB / 417 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.1823, allocations: 0 / 417 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.1834, allocations: 235.7 kB / 417.3 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001894/0.1853, allocations: 0.9109 MB / 418.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000152/0.1855, allocations: 55.92 kB / 418.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002703/0.1882, allocations: 1.936 MB / 420.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1882, allocations: 0 / 420.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005552/0.1938, allocations: 2.584 MB / 422.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006372/0.1944, allocations: 283.9 kB / 423 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002669/0.1947, allocations: 47.98 kB / 423.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.1959, allocations: 147.8 kB / 423.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000561/0.1964, allocations: 197 kB / 423.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/0.1966, allocations: 59.88 kB / 423.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008144/0.1974, allocations: 422.8 kB / 423.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1974, allocations: 0 / 423.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001378/0.1988, allocations: 320 kB / 424.2 MB, free: 13.35 MB / 366.1 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.0004907/0.1993, allocations: 189.3 kB / 424.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003592/0.2029, allocations: 1.508 MB / 425.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2029, allocations: 4.062 kB / 425.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001929/0.2049, allocations: 0.8477 MB / 426.7 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.2061, allocations: 174.6 kB / 426.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008194/0.2144, allocations: 3.079 MB / 430 MB, free: 7.516 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007621/0.2152, allocations: 1.027 MB / 431 MB, free: 6.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007034/0.2159, allocations: 139.2 kB / 431.1 MB, free: 6.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003198/0.2162, allocations: 83.39 kB / 431.2 MB, free: 6.238 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2162, allocations: 0 / 431.2 MB, free: 6.238 MB / 366.1 MB Notification: Performance of Templates: time 0.2642/0.4805, allocations: 22.34 MB / 453.6 MB, free: 74.7 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)