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.001446/0.001446, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002014/0.002014, allocations: 198 kB / 16.54 MB, free: 6.672 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.4 MB, free: 4.613 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.001391/0.001391, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2377, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.005676/0.2434, allocations: 4.994 MB / 330.3 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003308/0.2467, allocations: 1.754 MB / 332.1 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003913/0.2472, allocations: 16.06 kB / 332.1 MB, free: 12.44 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003712/0.2476, allocations: 182 kB / 332.2 MB, free: 12.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009197/0.2485, allocations: 404.8 kB / 332.6 MB, free: 11.97 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.2495, allocations: 0.5068 MB / 333.1 MB, free: 11.54 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.2511, allocations: 1.606 MB / 334.8 MB, free: 10.45 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000481/0.2516, allocations: 327.2 kB / 335.1 MB, free: 10.11 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008739/0.2525, allocations: 0.6815 MB / 335.8 MB, free: 9.43 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00079/0.2533, allocations: 0.7748 MB / 336.5 MB, free: 8.652 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001951/0.2535, allocations: 139.9 kB / 336.7 MB, free: 8.516 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000375/0.2539, allocations: 211.9 kB / 336.9 MB, free: 8.309 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003038/0.2542, allocations: 339 kB / 337.2 MB, free: 7.977 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005366/0.2547, allocations: 0.6105 MB / 337.8 MB, free: 7.363 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001551/0.2563, allocations: 1.489 MB / 339.3 MB, free: 5.871 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.2563, allocations: 4 kB / 339.3 MB, free: 5.867 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.2563, allocations: 0 / 339.3 MB, free: 5.867 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.024e-05/0.2563, allocations: 0 / 339.3 MB, free: 5.867 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.003145/0.2595, allocations: 1.524 MB / 340.8 MB, free: 4.293 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2595, allocations: 8.031 kB / 340.8 MB, free: 4.285 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005742/0.2601, allocations: 143.5 kB / 341 MB, free: 4.145 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008183/0.2609, allocations: 0.6045 MB / 341.6 MB, free: 3.5 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003342/0.2613, allocations: 199.4 kB / 341.8 MB, free: 3.285 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001758/0.2615, allocations: 103.9 kB / 341.9 MB, free: 3.184 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002216/0.2637, allocations: 1.251 MB / 343.1 MB, free: 1.918 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.917e-05/0.2637, allocations: 7.906 kB / 343.1 MB, free: 1.91 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.2639, allocations: 40 kB / 343.2 MB, free: 1.871 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.2639, allocations: 24 kB / 343.2 MB, free: 1.848 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002788/0.2667, allocations: 1.339 MB / 344.5 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006045/0.2727, allocations: 3.656 MB / 348.2 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002085/0.2748, allocations: 1.046 MB / 349.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001279/0.2761, allocations: 0.6643 MB / 349.9 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.498e-05/0.2762, allocations: 25.3 kB / 349.9 MB, free: 10.94 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.2763, allocations: 47.88 kB / 350 MB, free: 10.88 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 2.825e-06/0.2763, allocations: 0 / 350 MB, free: 10.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01342/0.2897, allocations: 5.639 MB / 355.6 MB, free: 5.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.2898, allocations: 90.42 kB / 355.7 MB, free: 4.98 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006996/0.2905, allocations: 0.5887 MB / 356.3 MB, free: 4.383 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.2906, allocations: 65.7 kB / 356.4 MB, free: 4.312 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002574/0.2909, allocations: 333.2 kB / 356.7 MB, free: 3.98 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00036/0.2913, allocations: 481.3 kB / 357.2 MB, free: 3.504 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004161/0.2917, allocations: 263.4 kB / 357.4 MB, free: 3.238 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.2919, allocations: 394.8 kB / 357.8 MB, free: 2.844 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.293, allocations: 0.5778 MB / 358.4 MB, free: 2.266 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001297/0.2943, allocations: 0.7232 MB / 359.1 MB, free: 1.52 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002103/0.2964, allocations: 1.061 MB / 360.2 MB, free: 452 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.2965, allocations: 0 / 360.2 MB, free: 452 kB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00359/0.3001, allocations: 1.787 MB / 361.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.3001, allocations: 8 kB / 362 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.3001, allocations: 3.938 kB / 362 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001856/0.302, allocations: 0.9618 MB / 362.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.303, allocations: 251.6 kB / 363.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002361/0.3054, allocations: 2.013 MB / 365.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.3066, allocations: 143.8 kB / 365.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.3068, allocations: 55.97 kB / 365.4 MB, free: 11.16 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.0005014/0.3073, allocations: 265.5 kB / 365.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.3075, allocations: 90.97 kB / 365.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002334/0.3077, allocations: 133.2 kB / 365.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.3078, allocations: 12 kB / 365.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.3078, allocations: 3.938 kB / 365.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.3078, allocations: 7.969 kB / 365.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005802/0.3136, allocations: 3.288 MB / 369.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.3136, allocations: 4.062 kB / 369.2 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.3147, allocations: 235.7 kB / 369.4 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001776/0.3165, allocations: 0.9187 MB / 370.3 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.3166, allocations: 43.95 kB / 370.4 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.319, allocations: 1.944 MB / 372.3 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.319, allocations: 3.984 kB / 372.3 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005258/0.3243, allocations: 2.567 MB / 374.9 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006754/0.3249, allocations: 295.8 kB / 375.2 MB, free: 1.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002023/0.3252, allocations: 40 kB / 375.2 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.3262, allocations: 151.8 kB / 375.4 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004215/0.3266, allocations: 196.9 kB / 375.5 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.3268, allocations: 59.88 kB / 375.6 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005548/0.3273, allocations: 422.8 kB / 376 MB, free: 316 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3273, allocations: 0 / 376 MB, free: 316 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.001014/0.3284, allocations: 320 kB / 376.3 MB, free: 15.99 MB / 318.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.0004418/0.3288, allocations: 189.3 kB / 376.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004197/0.333, allocations: 1.597 MB / 378.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3331, allocations: 0 / 378.1 MB, free: 14.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001883/0.3349, allocations: 0.8483 MB / 379 MB, free: 13.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.3361, allocations: 170.5 kB / 379.1 MB, free: 13.19 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008211/0.3443, allocations: 3.095 MB / 382.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006152/0.345, allocations: 1.027 MB / 383.2 MB, free: 9 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006285/0.3456, allocations: 135.2 kB / 383.4 MB, free: 8.863 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002511/0.3459, allocations: 87.39 kB / 383.5 MB, free: 8.781 MB / 318.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3459, allocations: 0 / 383.5 MB, free: 8.781 MB / 318.1 MB Notification: Performance of Templates: time 0.03252/0.3784, allocations: 22.12 MB / 405.6 MB, free: 2.629 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)