Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.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.008189/0.008189, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001365/0.001365, allocations: 189.5 kB / 16.67 MB, free: 5.938 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.552/1.552, allocations: 205.1 MB / 222.6 MB, free: 4.488 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.001222/0.001222, allocations: 49.97 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1235, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006035/0.1295, allocations: 4.993 MB / 378.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00381/0.1334, allocations: 1.763 MB / 379.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006844/0.1341, allocations: 15.94 kB / 379.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004787/0.1346, allocations: 186.4 kB / 380.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.1357, allocations: 409 kB / 380.5 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.1369, allocations: 0.5031 MB / 381 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001899/0.1388, allocations: 1.627 MB / 382.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004956/0.1393, allocations: 315.3 kB / 383 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.1404, allocations: 0.6894 MB / 383.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009731/0.1414, allocations: 0.7864 MB / 384.4 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001751/0.1416, allocations: 128 kB / 384.6 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004433/0.142, allocations: 227.8 kB / 384.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003363/0.1424, allocations: 335 kB / 385.1 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006256/0.143, allocations: 0.6143 MB / 385.7 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001743/0.1448, allocations: 1.506 MB / 387.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.1448, allocations: 0 / 387.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1448, allocations: 0 / 387.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.036e-05/0.1448, 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.00351/0.1483, allocations: 1.557 MB / 388.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.1484, allocations: 12.03 kB / 388.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005196/0.1489, allocations: 148.1 kB / 388.9 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.1501, allocations: 0.609 MB / 389.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002623/0.1504, allocations: 175.4 kB / 389.7 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002192/0.1506, allocations: 111.8 kB / 389.8 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002649/0.1533, allocations: 1.251 MB / 391.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.359e-05/0.1533, allocations: 15.94 kB / 391.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.1534, allocations: 36 kB / 391.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.518e-05/0.1535, allocations: 24 kB / 391.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002943/0.1564, allocations: 1.339 MB / 392.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006678/0.1631, allocations: 3.648 MB / 396.1 MB, free: 9.965 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/0.1652, allocations: 1.042 MB / 397.2 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/0.1666, allocations: 0.6721 MB / 397.9 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.617e-05/0.1667, allocations: 17.3 kB / 397.9 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/0.1667, allocations: 51.81 kB / 397.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=129): time 3.837e-06/0.1667, allocations: 0 / 397.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=141): time 0.0139/0.1806, allocations: 5.641 MB / 403.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/0.1807, allocations: 98.36 kB / 403.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008246/0.1816, allocations: 0.5887 MB / 404.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.1817, allocations: 73.62 kB / 404.3 MB, free: 1.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002583/0.182, allocations: 342 kB / 404.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003861/0.1824, allocations: 0.492 MB / 405.2 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004504/0.1828, allocations: 259.5 kB / 405.4 MB, free: 496 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.183, allocations: 394.7 kB / 405.8 MB, free: 92 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.1842, allocations: 0.5857 MB / 406.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001273/0.1855, allocations: 0.7153 MB / 407.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00207/0.1876, allocations: 1.061 MB / 408.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.1876, allocations: 0 / 408.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003603/0.1912, allocations: 1.803 MB / 410 MB, free: 11.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.1913, allocations: 7.938 kB / 410 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.1913, allocations: 0 / 410 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001889/0.1932, allocations: 0.9657 MB / 410.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.1942, allocations: 243.7 kB / 411.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002617/0.1969, allocations: 2.005 MB / 413.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.1981, allocations: 155.9 kB / 413.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.1983, allocations: 47.98 kB / 413.4 MB, free: 8.387 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.0005461/0.1988, allocations: 265.7 kB / 413.6 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001984/0.199, allocations: 95.39 kB / 413.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002479/0.1993, allocations: 133.2 kB / 413.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/0.1993, allocations: 20 kB / 413.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/0.1993, allocations: 0 / 413.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.1994, allocations: 11.91 kB / 413.9 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006073/0.2054, allocations: 3.262 MB / 417.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.2055, allocations: 3.938 kB / 417.2 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/0.2066, allocations: 231.7 kB / 417.4 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001759/0.2084, allocations: 0.9149 MB / 418.3 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.2086, allocations: 43.94 kB / 418.3 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002958/0.2115, allocations: 1.952 MB / 420.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.2115, allocations: 0 / 420.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005788/0.2173, allocations: 2.577 MB / 422.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006578/0.218, allocations: 296.3 kB / 423.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/0.2182, allocations: 36 kB / 423.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.2192, allocations: 151.8 kB / 423.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005058/0.2197, allocations: 201 kB / 423.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.2198, allocations: 59.88 kB / 423.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006722/0.2205, allocations: 418.8 kB / 424 MB, free: 13.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2205, allocations: 0 / 424 MB, free: 13.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009111/0.2214, allocations: 323.9 kB / 424.3 MB, free: 13.23 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.0003462/0.2218, allocations: 189.1 kB / 424.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003385/0.2252, allocations: 1.512 MB / 426 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2252, allocations: 0 / 426 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001983/0.2272, allocations: 0.8483 MB / 426.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.2284, allocations: 178.4 kB / 427 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008507/0.2369, allocations: 3.1 MB / 430.1 MB, free: 7.371 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009166/0.2379, allocations: 1.031 MB / 431.2 MB, free: 6.312 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000628/0.2385, allocations: 131.2 kB / 431.3 MB, free: 6.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.2388, allocations: 83.39 kB / 431.4 MB, free: 6.098 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.2388, allocations: 0 / 431.4 MB, free: 6.098 MB / 366.1 MB Notification: Performance of Templates: time 0.2426/0.4814, allocations: 22.36 MB / 453.7 MB, free: 74.58 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)