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.001217/0.001217, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001617/0.001617, allocations: 190.8 kB / 16.25 MB, free: 6.625 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.559/1.559, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.001186/0.001186, allocations: 51.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3001, allocations: 46.62 MB / 324.8 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.007429/0.3076, allocations: 5.002 MB / 329.8 MB, free: 14 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004466/0.3121, allocations: 1.758 MB / 331.6 MB, free: 12.55 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008996/0.313, allocations: 14.34 kB / 331.6 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005261/0.3137, allocations: 131.4 kB / 331.7 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001509/0.3152, allocations: 345 kB / 332.1 MB, free: 12.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001531/0.3167, allocations: 469.2 kB / 332.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001982/0.3187, allocations: 1.617 MB / 334.2 MB, free: 10.78 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006032/0.3193, allocations: 315.3 kB / 334.5 MB, free: 10.46 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001106/0.3204, allocations: 0.7009 MB / 335.2 MB, free: 9.754 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008381/0.3213, allocations: 0.7825 MB / 335.9 MB, free: 8.969 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001861/0.3215, allocations: 128 kB / 336.1 MB, free: 8.844 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004097/0.3219, allocations: 207.9 kB / 336.3 MB, free: 8.641 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003325/0.3222, allocations: 331 kB / 336.6 MB, free: 8.316 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006003/0.3229, allocations: 0.6183 MB / 337.2 MB, free: 7.695 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001553/0.3244, allocations: 1.5 MB / 338.7 MB, free: 6.191 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.3244, allocations: 0 / 338.7 MB, free: 6.191 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3244, allocations: 0 / 338.7 MB, free: 6.191 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.022e-05/0.3245, allocations: 4 kB / 338.7 MB, free: 6.188 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.003449/0.3279, allocations: 1.52 MB / 340.2 MB, free: 4.617 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.328, allocations: 8.031 kB / 340.3 MB, free: 4.609 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005142/0.3285, allocations: 139.5 kB / 340.4 MB, free: 4.473 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009018/0.3294, allocations: 0.6045 MB / 341 MB, free: 3.824 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003956/0.3298, allocations: 191.4 kB / 341.2 MB, free: 3.617 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002613/0.3301, allocations: 103.9 kB / 341.3 MB, free: 3.516 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/0.3325, allocations: 1.251 MB / 342.5 MB, free: 2.25 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.741e-05/0.3326, allocations: 15.89 kB / 342.5 MB, free: 2.234 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.3327, allocations: 36 kB / 342.6 MB, free: 2.199 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.51e-05/0.3327, allocations: 27.98 kB / 342.6 MB, free: 2.172 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00284/0.3356, allocations: 1.335 MB / 343.9 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006348/0.3419, allocations: 3.668 MB / 347.6 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00208/0.3441, allocations: 1.043 MB / 348.7 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001265/0.3453, allocations: 0.6606 MB / 349.3 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.908e-05/0.3454, allocations: 17.31 kB / 349.3 MB, free: 11.28 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.697e-05/0.3455, allocations: 51.88 kB / 349.4 MB, free: 11.21 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 3.387e-06/0.3455, allocations: 0 / 349.4 MB, free: 11.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01333/0.3589, allocations: 5.639 MB / 355 MB, free: 5.422 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.906e-05/0.359, allocations: 94.42 kB / 355.1 MB, free: 5.309 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008121/0.3598, allocations: 0.5887 MB / 355.7 MB, free: 4.715 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001228/0.3599, allocations: 61.69 kB / 355.8 MB, free: 4.648 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002701/0.3602, allocations: 333.3 kB / 356.1 MB, free: 4.316 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000406/0.3606, allocations: 481.2 kB / 356.6 MB, free: 3.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004532/0.3611, allocations: 263.4 kB / 356.8 MB, free: 3.574 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.3613, allocations: 390.7 kB / 357.2 MB, free: 3.184 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/0.3624, allocations: 0.5818 MB / 357.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/0.3637, allocations: 0.7231 MB / 358.5 MB, free: 1.855 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001955/0.3656, allocations: 1.061 MB / 359.6 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.3657, allocations: 4 kB / 359.6 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.0037/0.3694, allocations: 1.791 MB / 361.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.3694, allocations: 8.125 kB / 361.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.3694, allocations: 8 kB / 361.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001962/0.3714, allocations: 0.9657 MB / 362.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.3725, allocations: 247.6 kB / 362.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002449/0.3749, allocations: 2.001 MB / 364.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.3761, allocations: 155.9 kB / 364.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.3762, allocations: 51.98 kB / 364.8 MB, free: 11.48 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.0005806/0.3768, allocations: 265.6 kB / 365 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002227/0.3771, allocations: 90.97 kB / 365.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002878/0.3774, allocations: 129.2 kB / 365.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.3774, allocations: 15.94 kB / 365.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/0.3774, allocations: 0 / 365.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.3774, allocations: 11.97 kB / 365.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006038/0.3835, allocations: 3.292 MB / 368.6 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.3835, allocations: 0 / 368.6 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.3846, allocations: 235.7 kB / 368.8 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001899/0.3865, allocations: 0.9186 MB / 369.7 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000152/0.3867, allocations: 47.94 kB / 369.8 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002443/0.3891, allocations: 1.944 MB / 371.7 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3891, allocations: 0 / 371.7 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004979/0.3941, allocations: 2.575 MB / 374.3 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000522/0.3947, allocations: 291.8 kB / 374.6 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/0.3949, allocations: 40.09 kB / 374.6 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.3959, allocations: 159.8 kB / 374.8 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004212/0.3963, allocations: 197 kB / 375 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.3965, allocations: 59.88 kB / 375 MB, free: 1.035 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005309/0.397, allocations: 422.8 kB / 375.4 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.397, allocations: 0 / 375.4 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009376/0.3979, allocations: 324 kB / 375.8 MB, free: 312 kB / 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 (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.0003419/0.3983, allocations: 181.3 kB / 375.9 MB, free: 120 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.004119/0.4024, allocations: 1.597 MB / 377.5 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4024, allocations: 0 / 377.5 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/0.4043, allocations: 0.8483 MB / 378.4 MB, free: 13.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.4055, allocations: 174.3 kB / 378.5 MB, free: 13.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007973/0.4135, allocations: 3.501 MB / 382 MB, free: 9.973 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005846/0.4141, allocations: 1.027 MB / 383.1 MB, free: 8.914 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006463/0.4148, allocations: 131.2 kB / 383.2 MB, free: 8.781 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002584/0.415, allocations: 83.39 kB / 383.3 MB, free: 8.703 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4151, allocations: 0 / 383.3 MB, free: 8.703 MB / 318.1 MB Notification: Performance of Templates: time 0.03245/0.4475, allocations: 21.91 MB / 405.2 MB, free: 2.758 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)