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.001034/0.001034, allocations: 98.27 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.01049/0.01049, allocations: 171.5 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.763/1.763, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0004138/0.0004139, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2894, allocations: 47.59 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004992/0.2944, allocations: 4.577 MB / 331.6 MB, free: 13.78 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0038/0.2982, allocations: 1.749 MB / 333.4 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004215/0.2987, allocations: 14.12 kB / 333.4 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003361/0.299, allocations: 134.7 kB / 333.5 MB, free: 12.24 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009219/0.3, allocations: 354.8 kB / 333.8 MB, free: 11.96 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009413/0.3009, allocations: 457.1 kB / 334.3 MB, free: 11.59 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001607/0.3025, allocations: 1.542 MB / 335.8 MB, free: 10.55 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000398/0.3029, allocations: 281 kB / 336.1 MB, free: 10.26 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007459/0.3037, allocations: 0.5955 MB / 336.7 MB, free: 9.664 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007579/0.3045, allocations: 0.72 MB / 337.4 MB, free: 8.941 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.3046, allocations: 64 kB / 337.5 MB, free: 8.879 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003118/0.3049, allocations: 151.9 kB / 337.6 MB, free: 8.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002576/0.3052, allocations: 267 kB / 337.9 MB, free: 8.469 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005779/0.3058, allocations: 0.573 MB / 338.5 MB, free: 7.887 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.307, allocations: 1.403 MB / 339.9 MB, free: 6.48 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.307, allocations: 0 / 339.9 MB, free: 6.48 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.307, allocations: 0 / 339.9 MB, free: 6.48 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.307, allocations: 0 / 339.9 MB, free: 6.48 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.003266/0.3103, allocations: 1.384 MB / 341.3 MB, free: 5.043 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.3104, allocations: 8.031 kB / 341.3 MB, free: 5.035 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000509/0.3109, allocations: 139.5 kB / 341.4 MB, free: 4.898 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008792/0.3118, allocations: 0.5968 MB / 342 MB, free: 4.258 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003391/0.3121, allocations: 203.3 kB / 342.2 MB, free: 4.043 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002537/0.3124, allocations: 107.8 kB / 342.3 MB, free: 3.938 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002465/0.3148, allocations: 1.275 MB / 343.6 MB, free: 2.645 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.349e-05/0.3149, allocations: 11.91 kB / 343.6 MB, free: 2.633 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/0.315, allocations: 36 kB / 343.6 MB, free: 2.598 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.196e-05/0.3151, allocations: 24 kB / 343.6 MB, free: 2.574 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003101/0.3182, allocations: 1.378 MB / 345 MB, free: 1.199 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007096/0.3253, allocations: 3.735 MB / 348.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002218/0.3275, allocations: 1.078 MB / 349.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.329, allocations: 0.6918 MB / 350.5 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.373e-05/0.3291, allocations: 17.25 kB / 350.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.838e-05/0.3291, allocations: 51.88 kB / 350.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 3.706e-06/0.3291, allocations: 0 / 350.6 MB, free: 11.44 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01495/0.3441, allocations: 5.916 MB / 356.5 MB, free: 5.367 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002676/0.3444, allocations: 90.42 kB / 356.6 MB, free: 5.258 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008324/0.3452, allocations: 0.5925 MB / 357.2 MB, free: 4.66 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001261/0.3454, allocations: 65.69 kB / 357.3 MB, free: 4.59 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003353/0.3457, allocations: 345.2 kB / 357.6 MB, free: 4.246 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000465/0.3462, allocations: 469.4 kB / 358.1 MB, free: 3.781 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001924/0.3464, allocations: 121.6 kB / 358.2 MB, free: 3.656 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002561/0.3466, allocations: 394.7 kB / 358.6 MB, free: 3.262 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.3479, allocations: 0.5896 MB / 359.1 MB, free: 2.672 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/0.3494, allocations: 0.7232 MB / 359.9 MB, free: 1.926 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002548/0.3519, allocations: 1.077 MB / 360.9 MB, free: 0.832 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.3519, allocations: 0 / 360.9 MB, free: 0.832 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003964/0.3559, allocations: 1.806 MB / 362.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.356, allocations: 12.09 kB / 362.8 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.356, allocations: 0 / 362.8 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002357/0.3584, allocations: 0.9656 MB / 363.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.3594, allocations: 259.6 kB / 364 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002601/0.362, allocations: 2.009 MB / 366 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.3634, allocations: 211.9 kB / 366.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002099/0.3636, allocations: 47.98 kB / 366.2 MB, free: 11.46 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.000559/0.3642, allocations: 265.7 kB / 366.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/0.3644, allocations: 90.91 kB / 366.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003038/0.3647, allocations: 133.2 kB / 366.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.3647, allocations: 20 kB / 366.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.3647, allocations: 0 / 366.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/0.3647, allocations: 7.969 kB / 366.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006437/0.3712, allocations: 3.339 MB / 370.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3712, allocations: 0 / 370.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.3723, allocations: 255.8 kB / 370.3 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001894/0.3742, allocations: 0.9146 MB / 371.3 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.3744, allocations: 55.94 kB / 371.3 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00247/0.3768, allocations: 1.94 MB / 373.2 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3769, allocations: 4.062 kB / 373.3 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005931/0.3828, allocations: 2.63 MB / 375.9 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006873/0.3835, allocations: 299.8 kB / 376.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.3837, allocations: 36 kB / 376.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.3848, allocations: 215.8 kB / 376.4 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004404/0.3853, allocations: 197 kB / 376.6 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.957e-05/0.3854, allocations: 59.88 kB / 376.7 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005615/0.386, allocations: 418.8 kB / 377.1 MB, free: 420 kB / 302.1 MB Notification: Performance of sort global known variables: time 3.206e-06/0.386, allocations: 112 / 377.1 MB, free: 420 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009796/0.387, allocations: 327.9 kB / 377.4 MB, free: 88 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.0004562/0.3874, allocations: 189.4 kB / 377.6 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003323/0.3908, allocations: 1.539 MB / 379.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3908, allocations: 0 / 379.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001889/0.3927, allocations: 0.8599 MB / 380 MB, free: 13.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001283/0.394, allocations: 154.2 kB / 380.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008924/0.4029, allocations: 3.897 MB / 384 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006206/0.4036, allocations: 1.035 MB / 385.1 MB, free: 8.359 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006631/0.4042, allocations: 123.2 kB / 385.2 MB, free: 8.234 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002489/0.4045, allocations: 71.39 kB / 385.3 MB, free: 8.168 MB / 318.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4045, allocations: 4 kB / 385.3 MB, free: 8.164 MB / 318.1 MB Notification: Performance of Templates: time 0.032/0.4365, allocations: 20.5 MB / 405.8 MB, free: 3.633 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)