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.00129/0.001291, 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.001725/0.001725, allocations: 190.5 kB / 16.25 MB, free: 6.629 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.649/1.649, allocations: 205.1 MB / 222.1 MB, free: 4.723 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.001246/0.001246, allocations: 51.92 kB / 278.2 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3103, allocations: 46.62 MB / 324.8 MB, free: 1.953 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.007384/0.3177, allocations: 4.997 MB / 329.8 MB, free: 14 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005414/0.3232, allocations: 1.765 MB / 331.6 MB, free: 12.55 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.3243, allocations: 15.31 kB / 331.6 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005804/0.325, allocations: 130.8 kB / 331.7 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001243/0.3262, allocations: 353.5 kB / 332.1 MB, free: 12.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.3274, allocations: 461.6 kB / 332.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00236/0.3298, allocations: 1.613 MB / 334.2 MB, free: 10.77 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006043/0.3304, allocations: 319.3 kB / 334.5 MB, free: 10.45 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001294/0.3317, allocations: 0.6931 MB / 335.2 MB, free: 9.754 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009192/0.3326, allocations: 0.7863 MB / 335.9 MB, free: 8.965 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001842/0.3328, allocations: 128 kB / 336.1 MB, free: 8.84 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004598/0.3333, allocations: 203.9 kB / 336.3 MB, free: 8.641 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003175/0.3336, allocations: 335 kB / 336.6 MB, free: 8.312 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005558/0.3342, allocations: 0.6183 MB / 337.2 MB, free: 7.691 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001489/0.3357, allocations: 1.496 MB / 338.7 MB, free: 6.191 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3357, allocations: 0 / 338.7 MB, free: 6.191 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.3357, allocations: 4 kB / 338.7 MB, free: 6.188 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.3357, allocations: 0 / 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.00351/0.3392, allocations: 1.524 MB / 340.2 MB, free: 4.613 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.3393, allocations: 8.031 kB / 340.2 MB, free: 4.605 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005211/0.3398, allocations: 139.5 kB / 340.4 MB, free: 4.469 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000881/0.3407, allocations: 0.6006 MB / 341 MB, free: 3.824 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003313/0.3411, allocations: 191.4 kB / 341.2 MB, free: 3.617 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.3413, allocations: 107.9 kB / 341.3 MB, free: 3.512 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002249/0.3435, allocations: 1.255 MB / 342.5 MB, free: 2.242 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.954e-05/0.3436, allocations: 7.906 kB / 342.5 MB, free: 2.234 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.3437, allocations: 40 kB / 342.6 MB, free: 2.195 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.3437, allocations: 20 kB / 342.6 MB, free: 2.176 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00272/0.3464, allocations: 1.335 MB / 343.9 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006131/0.3526, allocations: 3.672 MB / 347.6 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002151/0.3547, allocations: 1.043 MB / 348.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001298/0.3561, allocations: 0.6684 MB / 349.3 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.287e-05/0.3562, allocations: 13.31 kB / 349.3 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.317e-05/0.3562, allocations: 51.88 kB / 349.4 MB, free: 11.21 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 4.579e-06/0.3562, allocations: 0 / 349.4 MB, free: 11.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01364/0.3699, allocations: 5.635 MB / 355 MB, free: 5.422 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.189e-05/0.37, allocations: 98.41 kB / 355.1 MB, free: 5.305 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009251/0.3709, allocations: 0.5887 MB / 355.7 MB, free: 4.711 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001403/0.3711, allocations: 61.7 kB / 355.8 MB, free: 4.645 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.3714, allocations: 337.2 kB / 356.1 MB, free: 4.309 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004412/0.3719, allocations: 473.3 kB / 356.6 MB, free: 3.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004605/0.3723, allocations: 267.4 kB / 356.8 MB, free: 3.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.3725, allocations: 390.8 kB / 357.2 MB, free: 3.18 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.3737, allocations: 0.5818 MB / 357.8 MB, free: 2.598 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00122/0.3749, allocations: 0.7231 MB / 358.5 MB, free: 1.852 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001932/0.3769, allocations: 1.061 MB / 359.6 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.3769, allocations: 4 kB / 359.6 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003588/0.3805, allocations: 1.795 MB / 361.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.3805, allocations: 4 kB / 361.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.3805, allocations: 4 kB / 361.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001912/0.3825, allocations: 0.9696 MB / 362.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.3835, allocations: 247.6 kB / 362.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003034/0.3866, allocations: 1.997 MB / 364.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.3879, allocations: 155.9 kB / 364.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.388, allocations: 55.97 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.0006304/0.3886, allocations: 269.7 kB / 365 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002214/0.3889, allocations: 90.97 kB / 365.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002794/0.3892, allocations: 129.2 kB / 365.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.3892, allocations: 15.94 kB / 365.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.698e-05/0.3892, allocations: 4 kB / 365.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.3892, allocations: 7.969 kB / 365.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006017/0.3952, allocations: 3.292 MB / 368.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.3953, allocations: 0 / 368.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.3964, allocations: 235.8 kB / 368.8 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001735/0.3981, allocations: 0.9223 MB / 369.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001275/0.3982, allocations: 43.95 kB / 369.8 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002424/0.4007, allocations: 1.94 MB / 371.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.4007, allocations: 0 / 371.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005294/0.406, allocations: 2.567 MB / 374.3 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005754/0.4066, allocations: 295.8 kB / 374.6 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002019/0.4068, allocations: 36 kB / 374.6 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.4078, allocations: 159.8 kB / 374.8 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004398/0.4083, allocations: 197 kB / 375 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.4084, allocations: 51.95 kB / 375 MB, free: 1.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005638/0.409, allocations: 430.8 kB / 375.4 MB, free: 0.625 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.409, allocations: 0 / 375.4 MB, free: 0.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001001/0.41, allocations: 320 kB / 375.7 MB, free: 320 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.0003698/0.4104, allocations: 193.4 kB / 375.9 MB, free: 116 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003976/0.4144, allocations: 1.597 MB / 377.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.762e-06/0.4144, allocations: 384 / 377.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001959/0.4164, allocations: 0.8478 MB / 378.4 MB, free: 13.67 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.4175, 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.008501/0.426, allocations: 3.505 MB / 382 MB, free: 9.965 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006673/0.4267, allocations: 1.027 MB / 383.1 MB, free: 8.906 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008083/0.4275, allocations: 131.2 kB / 383.2 MB, free: 8.773 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002715/0.4278, allocations: 87.33 kB / 383.3 MB, free: 8.691 MB / 318.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4278, allocations: 0 / 383.3 MB, free: 8.691 MB / 318.1 MB Notification: Performance of Templates: time 0.03491/0.4628, allocations: 21.91 MB / 405.2 MB, free: 2.746 MB / 334.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)