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.001311/0.001311, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001529/0.001529, allocations: 192.8 kB / 16.14 MB, free: 6.66 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.594/1.594, allocations: 205.1 MB / 222 MB, free: 4.75 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.001213/0.001213, allocations: 47.92 kB / 278 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3048, allocations: 46.63 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.00702/0.3119, allocations: 4.997 MB / 329.7 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005584/0.3176, allocations: 1.774 MB / 331.4 MB, free: 12.52 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00088/0.3185, allocations: 14.69 kB / 331.5 MB, free: 12.52 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004805/0.3191, allocations: 131 kB / 331.6 MB, free: 12.42 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001133/0.3202, allocations: 350 kB / 331.9 MB, free: 12.14 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.3216, allocations: 454.1 kB / 332.4 MB, free: 11.78 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001974/0.3235, allocations: 1.537 MB / 333.9 MB, free: 10.88 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005087/0.3241, allocations: 293 kB / 334.2 MB, free: 10.59 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00115/0.3252, allocations: 0.6228 MB / 334.8 MB, free: 9.961 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008162/0.3261, allocations: 0.7434 MB / 335.6 MB, free: 9.215 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001706/0.3262, allocations: 76 kB / 335.6 MB, free: 9.141 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004294/0.3267, allocations: 163.9 kB / 335.8 MB, free: 8.98 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003205/0.327, allocations: 275 kB / 336.1 MB, free: 8.711 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005334/0.3275, allocations: 0.5752 MB / 336.6 MB, free: 8.133 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001271/0.3288, allocations: 1.426 MB / 338.1 MB, free: 6.703 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.3288, allocations: 0 / 338.1 MB, free: 6.703 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3288, allocations: 0 / 338.1 MB, free: 6.703 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.571e-05/0.3289, allocations: 0 / 338.1 MB, free: 6.703 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.003508/0.3324, allocations: 1.528 MB / 339.6 MB, free: 5.121 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.3324, allocations: 12.03 kB / 339.6 MB, free: 5.109 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005323/0.333, allocations: 135.5 kB / 339.7 MB, free: 4.977 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009555/0.3339, allocations: 0.6045 MB / 340.3 MB, free: 4.328 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003567/0.3343, allocations: 195.4 kB / 340.5 MB, free: 4.121 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002192/0.3346, allocations: 107.9 kB / 340.6 MB, free: 4.016 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002505/0.3371, allocations: 1.251 MB / 341.9 MB, free: 2.746 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.587e-05/0.3371, allocations: 15.89 kB / 341.9 MB, free: 2.73 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001152/0.3373, allocations: 36 kB / 341.9 MB, free: 2.695 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.825e-05/0.3373, allocations: 28 kB / 342 MB, free: 2.668 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002776/0.3401, allocations: 1.327 MB / 343.3 MB, free: 1.344 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006377/0.3465, allocations: 3.656 MB / 346.9 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/0.3486, allocations: 1.038 MB / 348 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.3498, allocations: 0.6723 MB / 348.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.352e-05/0.3499, allocations: 17.3 kB / 348.7 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.35, allocations: 47.88 kB / 348.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 2.916e-06/0.35, allocations: 0 / 348.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01387/0.3638, allocations: 5.635 MB / 354.4 MB, free: 5.934 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/0.364, allocations: 90.42 kB / 354.4 MB, free: 5.824 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008151/0.3648, allocations: 0.5887 MB / 355 MB, free: 5.23 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001077/0.3649, allocations: 69.62 kB / 355.1 MB, free: 5.156 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002679/0.3652, allocations: 329.3 kB / 355.4 MB, free: 4.828 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004222/0.3656, allocations: 485.2 kB / 355.9 MB, free: 4.348 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004726/0.3661, allocations: 259.5 kB / 356.2 MB, free: 4.09 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002088/0.3663, allocations: 398.7 kB / 356.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001199/0.3675, allocations: 0.5856 MB / 357.1 MB, free: 3.105 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.3689, allocations: 0.7154 MB / 357.8 MB, free: 2.363 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002058/0.371, allocations: 1.065 MB / 358.9 MB, free: 1.281 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.371, allocations: 0 / 358.9 MB, free: 1.281 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003646/0.3746, allocations: 1.787 MB / 360.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.358e-05/0.3747, allocations: 15.92 kB / 360.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.3747, allocations: 0 / 360.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00205/0.3768, allocations: 0.9657 MB / 361.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.3779, allocations: 243.6 kB / 361.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002621/0.3806, allocations: 2.005 MB / 363.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.3818, allocations: 155.9 kB / 364.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.382, allocations: 47.98 kB / 364.1 MB, free: 12 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.0006227/0.3826, allocations: 274.2 kB / 364.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002402/0.3828, allocations: 86.97 kB / 364.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003005/0.3831, allocations: 129.2 kB / 364.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.3832, allocations: 16 kB / 364.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/0.3832, allocations: 0 / 364.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.3832, allocations: 7.969 kB / 364.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006503/0.3897, allocations: 3.295 MB / 367.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.3898, allocations: 0 / 367.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/0.3909, allocations: 247.7 kB / 368.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/0.3927, allocations: 0.9107 MB / 369.1 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.3929, allocations: 43.95 kB / 369.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002417/0.3953, allocations: 1.944 MB / 371.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3953, allocations: 0 / 371.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005598/0.4009, allocations: 2.567 MB / 373.6 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006882/0.4016, allocations: 291.8 kB / 373.9 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000212/0.4019, allocations: 44 kB / 374 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.4029, allocations: 155.8 kB / 374.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004479/0.4034, allocations: 193 kB / 374.3 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.4035, allocations: 56 kB / 374.3 MB, free: 1.566 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005448/0.404, allocations: 422.8 kB / 374.8 MB, free: 1.152 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.404, allocations: 0 / 374.8 MB, free: 1.152 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001036/0.4051, allocations: 324 kB / 375.1 MB, free: 0.8359 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 (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.0003615/0.4055, allocations: 186.1 kB / 375.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003434/0.4089, allocations: 1.511 MB / 376.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4089, allocations: 0 / 376.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001862/0.4108, allocations: 0.8404 MB / 377.6 MB, free: 14.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.412, allocations: 150.4 kB / 377.8 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008109/0.4201, allocations: 3.519 MB / 381.3 MB, free: 10.6 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006474/0.4208, allocations: 1.023 MB / 382.3 MB, free: 9.547 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006583/0.4214, allocations: 135.2 kB / 382.4 MB, free: 9.41 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002525/0.4217, allocations: 75.39 kB / 382.5 MB, free: 9.34 MB / 318.1 MB Notification: Performance of SimCode: time 1.372e-06/0.4217, allocations: 0 / 382.5 MB, free: 9.34 MB / 318.1 MB Notification: Performance of Templates: time 0.03907/0.4608, allocations: 20.71 MB / 403.2 MB, free: 4.598 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)