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.0009008/0.000901, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001032/0.001032, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.607/1.607, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.000445/0.0004451, allocations: 14.81 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2843, allocations: 47.58 MB / 326.5 MB, free: 1.602 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004636/0.289, allocations: 4.341 MB / 330.8 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004456/0.2935, allocations: 1.71 MB / 332.5 MB, free: 12.79 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000874/0.2944, allocations: 15.25 kB / 332.5 MB, free: 12.78 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004057/0.2948, allocations: 129.9 kB / 332.7 MB, free: 12.68 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001114/0.296, allocations: 344.5 kB / 333 MB, free: 12.41 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.2971, allocations: 405.4 kB / 333.4 MB, free: 12.09 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001741/0.2988, allocations: 1.423 MB / 334.8 MB, free: 11.23 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004887/0.2993, allocations: 247.8 kB / 335.1 MB, free: 11.01 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001239/0.3006, allocations: 0.5995 MB / 335.7 MB, free: 10.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009693/0.3015, allocations: 0.6852 MB / 336.3 MB, free: 9.723 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001406/0.3017, allocations: 64 kB / 336.4 MB, free: 9.66 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004179/0.3021, allocations: 139.9 kB / 336.5 MB, free: 9.523 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002925/0.3024, allocations: 271.1 kB / 336.8 MB, free: 9.258 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002587/0.3027, allocations: 209.1 kB / 337 MB, free: 9.047 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.3038, allocations: 1.053 MB / 338.1 MB, free: 7.992 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.3038, allocations: 0 / 338.1 MB, free: 7.992 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3038, allocations: 0 / 338.1 MB, free: 7.992 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.3038, allocations: 0 / 338.1 MB, free: 7.992 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.00309/0.3069, allocations: 1.399 MB / 339.5 MB, free: 6.539 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.307, allocations: 8.031 kB / 339.5 MB, free: 6.531 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005229/0.3075, allocations: 138.6 kB / 339.6 MB, free: 6.395 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000886/0.3084, allocations: 0.5726 MB / 340.2 MB, free: 5.777 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003178/0.3087, allocations: 199.1 kB / 340.4 MB, free: 5.566 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001748/0.3089, allocations: 99.91 kB / 340.5 MB, free: 5.469 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002395/0.3113, allocations: 1.267 MB / 341.7 MB, free: 4.184 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.631e-05/0.3114, allocations: 11.89 kB / 341.8 MB, free: 4.172 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.3115, allocations: 40 kB / 341.8 MB, free: 4.133 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.914e-05/0.3116, allocations: 24 kB / 341.8 MB, free: 4.109 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002898/0.3145, allocations: 1.366 MB / 343.2 MB, free: 2.746 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006654/0.3212, allocations: 3.762 MB / 346.9 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00207/0.3233, allocations: 1.07 MB / 348 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001273/0.3246, allocations: 0.6802 MB / 348.7 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.962e-05/0.3247, allocations: 17.3 kB / 348.7 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.198e-05/0.3247, allocations: 47.88 kB / 348.8 MB, free: 12.99 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 4.659e-06/0.3247, allocations: 0 / 348.8 MB, free: 12.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01441/0.3392, allocations: 5.889 MB / 354.6 MB, free: 6.941 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/0.3393, allocations: 90.42 kB / 354.7 MB, free: 6.832 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009072/0.3402, allocations: 0.5925 MB / 355.3 MB, free: 6.234 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001289/0.3403, allocations: 69.62 kB / 355.4 MB, free: 6.16 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003292/0.3407, allocations: 337.2 kB / 355.7 MB, free: 5.824 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004683/0.3412, allocations: 481.3 kB / 356.2 MB, free: 5.348 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.3413, allocations: 28 kB / 356.2 MB, free: 5.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.3415, allocations: 394.7 kB / 356.6 MB, free: 4.926 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.3427, allocations: 0.5857 MB / 357.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/0.3441, allocations: 0.7193 MB / 357.9 MB, free: 3.598 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.3453, allocations: 0.5214 MB / 358.4 MB, free: 3.078 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.3453, allocations: 0 / 358.4 MB, free: 3.078 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004065/0.3494, allocations: 1.857 MB / 360.3 MB, free: 1.207 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.3494, allocations: 4 kB / 360.3 MB, free: 1.203 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.3495, allocations: 4.031 kB / 360.3 MB, free: 1.199 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002027/0.3515, allocations: 0.9618 MB / 361.3 MB, free: 236 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009783/0.3525, allocations: 263.5 kB / 361.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002615/0.3551, allocations: 1.997 MB / 363.5 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.3564, allocations: 207.9 kB / 363.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/0.3566, allocations: 47.98 kB / 363.8 MB, free: 13.67 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,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006611/0.3572, allocations: 269.5 kB / 364 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/0.3575, allocations: 90.88 kB / 364.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003605/0.3579, allocations: 133.2 kB / 364.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/0.3579, allocations: 16 kB / 364.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.675e-05/0.358, allocations: 7.953 kB / 364.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.809e-05/0.358, allocations: 7.969 kB / 364.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006606/0.3646, allocations: 3.319 MB / 367.6 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.3646, allocations: 3.953 kB / 367.6 MB, free: 9.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.3657, allocations: 259.6 kB / 367.9 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001779/0.3675, allocations: 0.907 MB / 368.8 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001504/0.3676, allocations: 55.94 kB / 368.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00243/0.3701, allocations: 1.929 MB / 370.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3701, allocations: 0 / 370.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005336/0.3755, allocations: 2.63 MB / 373.4 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005665/0.3761, allocations: 295.8 kB / 373.7 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002679/0.3763, allocations: 43.98 kB / 373.7 MB, free: 3.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/0.3776, allocations: 211.7 kB / 373.9 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000544/0.3781, allocations: 228.8 kB / 374.1 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001405/0.3783, allocations: 51.95 kB / 374.2 MB, free: 3.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007834/0.3791, allocations: 418.8 kB / 374.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3791, allocations: 0 / 374.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001557/0.3806, allocations: 316 kB / 374.9 MB, free: 2.328 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.000586/0.3813, allocations: 197.7 kB / 375.1 MB, free: 2.129 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003548/0.3848, allocations: 1.527 MB / 376.6 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3848, allocations: 0 / 376.6 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002089/0.3869, allocations: 0.856 MB / 377.5 MB, free: 15.74 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.3882, allocations: 154.3 kB / 377.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008378/0.3966, allocations: 3.788 MB / 381.4 MB, free: 11.78 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006636/0.3973, allocations: 1.023 MB / 382.4 MB, free: 10.73 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007055/0.398, allocations: 131.2 kB / 382.6 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002895/0.3983, allocations: 75.39 kB / 382.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3983, allocations: 3.938 kB / 382.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of Templates: time 0.03506/0.4334, allocations: 19.9 MB / 402.6 MB, free: 6.586 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)