Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001355/0.001355, allocations: 96.88 kB / 16.5 MB, free: 6.641 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.001372/0.001372, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.517/1.517, allocations: 205.1 MB / 223.3 MB, free: 12.37 MB / 190.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.001156/0.001156, allocations: 43.94 kB / 279.3 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1106, allocations: 46.63 MB / 326 MB, free: 4.875 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006326/0.1169, allocations: 5 MB / 331 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00345/0.1204, allocations: 1.771 MB / 332.7 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006261/0.1211, allocations: 11.94 kB / 332.7 MB, free: 14.05 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004144/0.1215, allocations: 127.1 kB / 332.9 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009856/0.1225, allocations: 349.7 kB / 333.2 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00106/0.1236, allocations: 459.4 kB / 333.7 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001549/0.1252, allocations: 1.538 MB / 335.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004594/0.1256, allocations: 281 kB / 335.5 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008997/0.1265, allocations: 0.6228 MB / 336.1 MB, free: 10.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008827/0.1274, allocations: 0.7434 MB / 336.8 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001693/0.1276, allocations: 76 kB / 336.9 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004694/0.1281, allocations: 163.8 kB / 337.1 MB, free: 9.695 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003268/0.1284, allocations: 287 kB / 337.3 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005709/0.129, allocations: 0.5635 MB / 337.9 MB, free: 8.848 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.1304, allocations: 1.429 MB / 339.3 MB, free: 7.414 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1304, allocations: 4 kB / 339.3 MB, free: 7.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1304, allocations: 0 / 339.3 MB, free: 7.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.1305, allocations: 0 / 339.3 MB, free: 7.41 MB / 286.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.003565/0.134, allocations: 1.524 MB / 340.9 MB, free: 5.832 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/0.1341, allocations: 8.031 kB / 340.9 MB, free: 5.824 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005304/0.1346, allocations: 139.5 kB / 341 MB, free: 5.688 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009383/0.1356, allocations: 0.6045 MB / 341.6 MB, free: 5.039 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003534/0.136, allocations: 195.4 kB / 341.8 MB, free: 4.832 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001883/0.1362, allocations: 107.8 kB / 341.9 MB, free: 4.727 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002326/0.1385, allocations: 1.251 MB / 343.2 MB, free: 3.457 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.198e-05/0.1385, allocations: 7.891 kB / 343.2 MB, free: 3.449 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.1387, allocations: 44 kB / 343.2 MB, free: 3.406 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.421e-05/0.1387, allocations: 24 kB / 343.2 MB, free: 3.383 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002837/0.1415, allocations: 1.335 MB / 344.6 MB, free: 2.051 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006494/0.148, allocations: 3.659 MB / 348.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002059/0.1501, allocations: 1.046 MB / 349.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/0.1514, allocations: 0.6606 MB / 349.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.569e-05/0.1515, allocations: 21.3 kB / 350 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.1516, allocations: 51.81 kB / 350 MB, free: 12.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 3.085e-06/0.1516, allocations: 0 / 350 MB, free: 12.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.0141/0.1657, allocations: 5.631 MB / 355.6 MB, free: 6.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.392e-05/0.1658, allocations: 98.36 kB / 355.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/0.1669, allocations: 0.5887 MB / 356.3 MB, free: 5.926 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.1671, allocations: 61.69 kB / 356.4 MB, free: 5.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003454/0.1674, allocations: 337.2 kB / 356.7 MB, free: 5.523 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005606/0.168, allocations: 477.3 kB / 357.2 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006232/0.1686, allocations: 263.4 kB / 357.4 MB, free: 4.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002534/0.1689, allocations: 390.7 kB / 357.8 MB, free: 4.398 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/0.1703, allocations: 0.5818 MB / 358.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.1718, allocations: 0.7193 MB / 359.1 MB, free: 3.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002207/0.174, allocations: 1.058 MB / 360.2 MB, free: 1.996 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.1741, allocations: 11.94 kB / 360.2 MB, free: 1.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003917/0.178, allocations: 1.791 MB / 362 MB, free: 184 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.178, allocations: 4 kB / 362 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.1781, allocations: 4 kB / 362 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002009/0.1801, allocations: 0.9579 MB / 362.9 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.1812, allocations: 251.6 kB / 363.2 MB, free: 14.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002636/0.1838, allocations: 2.009 MB / 365.2 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.185, allocations: 151.9 kB / 365.4 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.1852, allocations: 51.98 kB / 365.4 MB, free: 12.7 MB / 318.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.0005586/0.1858, allocations: 269.5 kB / 365.7 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002681/0.186, allocations: 91.06 kB / 365.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003191/0.1864, allocations: 137.2 kB / 365.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.1864, allocations: 12 kB / 365.9 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/0.1864, allocations: 0 / 365.9 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.1864, allocations: 15.91 kB / 365.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006485/0.1929, allocations: 3.284 MB / 369.2 MB, free: 8.816 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.193, allocations: 3.938 kB / 369.2 MB, free: 8.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.1941, allocations: 235.7 kB / 369.4 MB, free: 8.582 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001855/0.196, allocations: 0.9186 MB / 370.4 MB, free: 7.656 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/0.1961, allocations: 47.94 kB / 370.4 MB, free: 7.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002472/0.1986, allocations: 1.94 MB / 372.3 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1986, allocations: 0 / 372.3 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005838/0.2045, allocations: 2.563 MB / 374.9 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005863/0.2051, allocations: 291.8 kB / 375.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.2054, allocations: 40 kB / 375.2 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.2065, allocations: 163.9 kB / 375.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004579/0.207, allocations: 196.9 kB / 375.6 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.2071, allocations: 55.89 kB / 375.6 MB, free: 2.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006379/0.2078, allocations: 422.8 kB / 376 MB, free: 1.855 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2078, allocations: 0 / 376 MB, free: 1.855 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00112/0.2089, allocations: 324 kB / 376.4 MB, free: 1.539 MB / 318.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.0004052/0.2093, allocations: 197.2 kB / 376.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.167/0.3763, allocations: 1.493 MB / 378 MB, free: 54.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.3764, allocations: 0 / 378 MB, free: 54.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002482/0.3788, allocations: 0.8409 MB / 378.9 MB, free: 54.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.3801, allocations: 155.8 kB / 379 MB, free: 54.9 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008428/0.3886, allocations: 3.501 MB / 382.5 MB, free: 53.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007029/0.3893, allocations: 1.027 MB / 383.6 MB, free: 52.71 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007421/0.3901, allocations: 134.1 kB / 383.7 MB, free: 52.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/0.3904, allocations: 76.11 kB / 383.8 MB, free: 52.67 MB / 318.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3904, allocations: 0 / 383.8 MB, free: 52.67 MB / 318.1 MB Notification: Performance of Templates: time 0.03149/0.4219, allocations: 20.71 MB / 404.5 MB, free: 40 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)