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.001135/0.001135, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008363/0.008364, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.703/1.703, allocations: 205.4 MB / 222.4 MB, free: 5.551 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.00048/0.00048, allocations: 8 kB / 279.4 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2933, allocations: 47.59 MB / 327 MB, free: 1.363 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004945/0.2983, allocations: 4.579 MB / 331.6 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003471/0.3018, allocations: 1.752 MB / 333.4 MB, free: 12.3 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004286/0.3023, allocations: 15.12 kB / 333.4 MB, free: 12.3 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003339/0.3026, allocations: 138.9 kB / 333.5 MB, free: 12.19 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009094/0.3035, allocations: 342.2 kB / 333.8 MB, free: 11.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009125/0.3045, allocations: 453.3 kB / 334.3 MB, free: 11.56 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001543/0.306, allocations: 1.541 MB / 335.8 MB, free: 10.52 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004644/0.3065, allocations: 277 kB / 336.1 MB, free: 10.24 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009367/0.3074, allocations: 0.6032 MB / 336.7 MB, free: 9.633 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008036/0.3083, allocations: 0.7239 MB / 337.4 MB, free: 8.906 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001405/0.3084, allocations: 67.94 kB / 337.5 MB, free: 8.84 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003618/0.3088, allocations: 147.9 kB / 337.6 MB, free: 8.695 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002875/0.3091, allocations: 267 kB / 337.9 MB, free: 8.434 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005475/0.3096, allocations: 0.5769 MB / 338.5 MB, free: 7.848 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0013/0.3109, allocations: 1.395 MB / 339.9 MB, free: 6.449 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.311, allocations: 3.984 kB / 339.9 MB, free: 6.445 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.311, allocations: 4 kB / 339.9 MB, free: 6.441 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.311, allocations: 0 / 339.9 MB, free: 6.441 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.003076/0.3141, allocations: 1.376 MB / 341.3 MB, free: 5.012 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.3141, allocations: 8.031 kB / 341.3 MB, free: 5.004 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000478/0.3146, allocations: 135.5 kB / 341.4 MB, free: 4.871 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008472/0.3155, allocations: 0.6046 MB / 342 MB, free: 4.223 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003195/0.3158, allocations: 207.3 kB / 342.2 MB, free: 4.004 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/0.316, allocations: 103.8 kB / 342.3 MB, free: 3.902 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002391/0.3184, allocations: 1.278 MB / 343.6 MB, free: 2.605 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.106e-05/0.3184, allocations: 11.91 kB / 343.6 MB, free: 2.594 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.3186, allocations: 40 kB / 343.6 MB, free: 2.555 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.238e-05/0.3186, allocations: 24 kB / 343.7 MB, free: 2.531 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002773/0.3214, allocations: 1.37 MB / 345 MB, free: 1.164 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00645/0.3278, allocations: 3.742 MB / 348.8 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002161/0.33, allocations: 1.074 MB / 349.8 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/0.3314, allocations: 0.6802 MB / 350.5 MB, free: 11.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.446e-05/0.3314, allocations: 21.3 kB / 350.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/0.3315, allocations: 55.86 kB / 350.6 MB, free: 11.4 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 2.956e-06/0.3315, allocations: 0 / 350.6 MB, free: 11.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01392/0.3454, allocations: 5.92 MB / 356.5 MB, free: 5.324 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.071e-05/0.3455, allocations: 94.42 kB / 356.6 MB, free: 5.211 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007906/0.3463, allocations: 0.5886 MB / 357.2 MB, free: 4.617 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.3465, allocations: 65.69 kB / 357.3 MB, free: 4.547 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002611/0.3467, allocations: 341.2 kB / 357.6 MB, free: 4.207 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004055/0.3471, allocations: 477.3 kB / 358.1 MB, free: 3.734 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/0.3473, allocations: 117.6 kB / 358.2 MB, free: 3.613 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.3475, allocations: 394.7 kB / 358.6 MB, free: 3.219 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/0.3487, allocations: 0.5896 MB / 359.1 MB, free: 2.629 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.35, allocations: 0.727 MB / 359.9 MB, free: 1.879 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002061/0.352, allocations: 1.073 MB / 361 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3521, allocations: 0 / 361 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003561/0.3556, allocations: 1.806 MB / 362.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.3557, allocations: 12 kB / 362.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.3557, allocations: 0 / 362.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001925/0.3576, allocations: 0.9656 MB / 363.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.3587, allocations: 259.6 kB / 364 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002481/0.3612, allocations: 2.013 MB / 366 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.3625, allocations: 211.9 kB / 366.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.3626, allocations: 51.98 kB / 366.3 MB, free: 11.41 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.0005756/0.3632, allocations: 261.7 kB / 366.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000274/0.3635, allocations: 86.97 kB / 366.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003319/0.3638, allocations: 137.2 kB / 366.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.122e-05/0.3638, allocations: 16 kB / 366.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/0.3639, allocations: 0 / 366.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.3639, allocations: 7.969 kB / 366.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006331/0.3702, allocations: 3.342 MB / 370.1 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.3703, allocations: 0 / 370.1 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.3714, allocations: 255.8 kB / 370.3 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001944/0.3733, allocations: 0.9224 MB / 371.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001545/0.3735, allocations: 43.94 kB / 371.3 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002534/0.3761, allocations: 1.94 MB / 373.3 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3761, allocations: 8.094 kB / 373.3 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00563/0.3817, allocations: 2.63 MB / 375.9 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006884/0.3824, allocations: 295.8 kB / 376.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/0.3826, allocations: 36 kB / 376.2 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.3837, allocations: 219.8 kB / 376.4 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004341/0.3842, allocations: 193 kB / 376.6 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/0.3843, allocations: 55.89 kB / 376.7 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006354/0.3849, allocations: 422.8 kB / 377.1 MB, free: 380 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.205e-06/0.385, allocations: 112 / 377.1 MB, free: 380 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.001181/0.3861, allocations: 327.9 kB / 377.4 MB, free: 48 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.0005019/0.3867, allocations: 185.3 kB / 377.6 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003971/0.3906, allocations: 1.535 MB / 379.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3907, allocations: 0 / 379.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001955/0.3926, allocations: 0.8677 MB / 380 MB, free: 13.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.3939, allocations: 150.2 kB / 380.1 MB, free: 13.31 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.4039, allocations: 3.901 MB / 384 MB, free: 9.387 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000707/0.4047, allocations: 1.031 MB / 385.1 MB, free: 8.324 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007322/0.4054, allocations: 127.2 kB / 385.2 MB, free: 8.195 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000253/0.4057, allocations: 75.39 kB / 385.3 MB, free: 8.121 MB / 318.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4057, allocations: 0 / 385.3 MB, free: 8.121 MB / 318.1 MB Notification: Performance of Templates: time 0.03493/0.4406, allocations: 20.5 MB / 405.8 MB, free: 3.59 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)