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.001221/0.001221, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.57/1.57, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.001395/0.001396, allocations: 51.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3147, allocations: 46.64 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006748/0.3215, allocations: 4.995 MB / 330.3 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004594/0.3261, allocations: 1.75 MB / 332.1 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.3273, allocations: 15.94 kB / 332.1 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000591/0.3279, allocations: 186 kB / 332.3 MB, free: 12.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00172/0.3296, allocations: 400 kB / 332.6 MB, free: 11.97 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.3311, allocations: 0.5148 MB / 333.2 MB, free: 11.53 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002215/0.3333, allocations: 1.603 MB / 334.8 MB, free: 10.43 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005922/0.3339, allocations: 315.3 kB / 335.1 MB, free: 10.11 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001452/0.3354, allocations: 0.6854 MB / 335.8 MB, free: 9.422 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009891/0.3364, allocations: 0.7748 MB / 336.5 MB, free: 8.645 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002001/0.3366, allocations: 135.9 kB / 336.7 MB, free: 8.512 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004764/0.3371, allocations: 219.8 kB / 336.9 MB, free: 8.297 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00034/0.3374, allocations: 335 kB / 337.2 MB, free: 7.969 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006384/0.3381, allocations: 0.6105 MB / 337.8 MB, free: 7.355 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001626/0.3397, allocations: 1.493 MB / 339.3 MB, free: 5.859 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3397, allocations: 0 / 339.3 MB, free: 5.859 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3397, allocations: 4 kB / 339.3 MB, free: 5.855 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.803e-05/0.3398, allocations: 0 / 339.3 MB, free: 5.855 MB / 270.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.003477/0.3432, allocations: 1.524 MB / 340.8 MB, free: 4.281 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.3433, allocations: 8.031 kB / 340.8 MB, free: 4.273 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005422/0.3439, allocations: 143.5 kB / 341 MB, free: 4.133 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009629/0.3448, allocations: 0.6045 MB / 341.6 MB, free: 3.488 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003559/0.3452, allocations: 199.4 kB / 341.8 MB, free: 3.273 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001848/0.3454, allocations: 99.91 kB / 341.9 MB, free: 3.176 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002543/0.3479, allocations: 1.255 MB / 343.1 MB, free: 1.906 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.304e-05/0.348, allocations: 11.84 kB / 343.1 MB, free: 1.895 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/0.3482, allocations: 40 kB / 343.2 MB, free: 1.855 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.3482, allocations: 24 kB / 343.2 MB, free: 1.832 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00291/0.3511, allocations: 1.335 MB / 344.5 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006506/0.3576, allocations: 3.656 MB / 348.2 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002343/0.36, allocations: 1.046 MB / 349.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001283/0.3613, allocations: 0.6643 MB / 349.9 MB, free: 10.95 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.699e-05/0.3614, allocations: 21.3 kB / 349.9 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.694e-05/0.3614, allocations: 51.88 kB / 350 MB, free: 10.87 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 3.767e-06/0.3615, allocations: 0 / 350 MB, free: 10.87 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01346/0.3749, allocations: 5.631 MB / 355.6 MB, free: 5.086 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.77e-05/0.3751, allocations: 94.42 kB / 355.7 MB, free: 4.973 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008197/0.3759, allocations: 0.5887 MB / 356.3 MB, free: 4.375 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001171/0.376, allocations: 69.69 kB / 356.4 MB, free: 4.301 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.3763, allocations: 329.2 kB / 356.7 MB, free: 3.973 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004079/0.3767, allocations: 485.2 kB / 357.2 MB, free: 3.492 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004504/0.3772, allocations: 263.4 kB / 357.4 MB, free: 3.227 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.3774, allocations: 394.7 kB / 357.8 MB, free: 2.832 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001192/0.3786, allocations: 0.5739 MB / 358.4 MB, free: 2.258 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001316/0.3799, allocations: 0.7309 MB / 359.1 MB, free: 1.504 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00208/0.382, allocations: 1.054 MB / 360.2 MB, free: 444 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.382, allocations: 0 / 360.2 MB, free: 444 kB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003764/0.3858, allocations: 1.791 MB / 361.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.3858, allocations: 8 kB / 362 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.3859, allocations: 0 / 362 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001939/0.3878, allocations: 0.9619 MB / 362.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.3888, allocations: 251.6 kB / 363.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002489/0.3913, allocations: 2.017 MB / 365.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.3925, allocations: 147.9 kB / 365.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.3927, allocations: 51.98 kB / 365.4 MB, free: 11.14 MB / 302.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.0006112/0.3933, allocations: 265.7 kB / 365.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002295/0.3935, allocations: 94.97 kB / 365.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002882/0.3938, allocations: 129.2 kB / 365.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.3938, allocations: 12 kB / 365.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.3939, allocations: 3.938 kB / 365.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.3939, allocations: 7.969 kB / 365.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006304/0.4002, allocations: 3.288 MB / 369.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.4002, allocations: 0 / 369.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.4013, allocations: 235.7 kB / 369.4 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001891/0.4033, allocations: 0.9148 MB / 370.3 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/0.4034, allocations: 51.94 kB / 370.4 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002519/0.4059, allocations: 1.948 MB / 372.3 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4059, allocations: 3.938 kB / 372.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00542/0.4114, allocations: 2.571 MB / 374.9 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000639/0.412, allocations: 295.7 kB / 375.2 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002788/0.4123, allocations: 36 kB / 375.2 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/0.4136, allocations: 155.8 kB / 375.4 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004646/0.414, allocations: 193 kB / 375.5 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/0.4142, allocations: 59.88 kB / 375.6 MB, free: 0.707 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006624/0.4148, allocations: 422.8 kB / 376 MB, free: 300 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4148, allocations: 0 / 376 MB, free: 300 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.001205/0.4161, allocations: 316 kB / 376.3 MB, free: 15.98 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.0004577/0.4165, allocations: 189.3 kB / 376.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004195/0.4207, allocations: 1.601 MB / 378.1 MB, free: 14.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4208, allocations: 0 / 378.1 MB, free: 14.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002038/0.4228, allocations: 0.8522 MB / 379 MB, free: 13.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.4242, allocations: 178.2 kB / 379.1 MB, free: 13.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008716/0.4329, allocations: 3.083 MB / 382.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006873/0.4336, allocations: 1.023 MB / 383.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006607/0.4343, allocations: 131.2 kB / 383.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002802/0.4346, allocations: 87.39 kB / 383.5 MB, free: 8.773 MB / 318.1 MB Notification: Performance of SimCode: time 1.262e-06/0.4346, allocations: 0 / 383.5 MB, free: 8.773 MB / 318.1 MB Notification: Performance of Templates: time 0.03911/0.4737, allocations: 22.12 MB / 405.6 MB, free: 2.625 MB / 334.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)