Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0009586/0.0009586, allocations: 84.09 kB / 16.31 MB, free: 6.449 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.001132/0.001133, allocations: 183.3 kB / 17.21 MB, free: 6.316 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.659/1.659, allocations: 205.4 MB / 223.4 MB, free: 5.512 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.000575/0.0005751, allocations: 12 kB / 280.1 MB, free: 12.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2799, allocations: 47.58 MB / 327.7 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.00555/0.2855, allocations: 4.345 MB / 332.1 MB, free: 14.01 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004165/0.2897, allocations: 1.71 MB / 333.8 MB, free: 12.6 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006719/0.2904, allocations: 15.25 kB / 333.8 MB, free: 12.6 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003776/0.2908, allocations: 133.9 kB / 333.9 MB, free: 12.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001097/0.2919, allocations: 341 kB / 334.3 MB, free: 12.23 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.2931, allocations: 397.5 kB / 334.6 MB, free: 11.92 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001898/0.295, allocations: 1.43 MB / 336.1 MB, free: 11.05 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005013/0.2955, allocations: 242.8 kB / 336.3 MB, free: 10.89 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001108/0.2966, allocations: 0.5918 MB / 336.9 MB, free: 10.3 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008575/0.2975, allocations: 0.689 MB / 337.6 MB, free: 9.605 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.2976, allocations: 72 kB / 337.7 MB, free: 9.535 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004167/0.298, allocations: 135.9 kB / 337.8 MB, free: 9.402 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003288/0.2984, allocations: 267 kB / 338.1 MB, free: 9.141 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002405/0.2986, allocations: 213.1 kB / 338.3 MB, free: 8.926 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.2997, allocations: 1.057 MB / 339.3 MB, free: 7.867 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2997, allocations: 4 kB / 339.3 MB, free: 7.863 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2997, allocations: 0 / 339.3 MB, free: 7.863 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.2998, allocations: 0 / 339.3 MB, free: 7.863 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.003005/0.3028, allocations: 1.387 MB / 340.7 MB, free: 6.422 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.3028, allocations: 12.03 kB / 340.7 MB, free: 6.41 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004855/0.3033, allocations: 138.6 kB / 340.9 MB, free: 6.273 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009139/0.3042, allocations: 0.5726 MB / 341.4 MB, free: 5.656 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003308/0.3046, allocations: 195.1 kB / 341.6 MB, free: 5.449 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001873/0.3048, allocations: 107.9 kB / 341.7 MB, free: 5.344 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002452/0.3072, allocations: 1.263 MB / 343 MB, free: 4.062 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.256e-05/0.3073, allocations: 11.91 kB / 343 MB, free: 4.051 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.3074, allocations: 36 kB / 343 MB, free: 4.016 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.874e-05/0.3075, allocations: 24 kB / 343.1 MB, free: 3.992 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002707/0.3102, allocations: 1.37 MB / 344.4 MB, free: 2.625 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006088/0.3163, allocations: 3.758 MB / 348.2 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001961/0.3183, allocations: 1.074 MB / 349.3 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001208/0.3195, allocations: 0.6841 MB / 349.9 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.475e-05/0.3196, allocations: 17.31 kB / 350 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/0.3196, allocations: 47.88 kB / 350 MB, free: 12.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=129): time 3.937e-06/0.3196, allocations: 0 / 350 MB, free: 12.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=141): time 0.01405/0.3337, allocations: 5.893 MB / 355.9 MB, free: 6.812 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/0.3338, allocations: 98.36 kB / 356 MB, free: 6.695 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.3349, allocations: 0.5847 MB / 356.6 MB, free: 6.105 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001239/0.335, allocations: 65.64 kB / 356.7 MB, free: 6.035 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003621/0.3354, allocations: 337.2 kB / 357 MB, free: 5.699 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005269/0.3359, allocations: 473.4 kB / 357.4 MB, free: 5.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.713e-05/0.336, allocations: 35.98 kB / 357.5 MB, free: 5.195 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.3362, allocations: 390.8 kB / 357.9 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.3374, allocations: 0.5817 MB / 358.4 MB, free: 4.223 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.3389, allocations: 0.7231 MB / 359.2 MB, free: 3.477 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.3401, allocations: 0.5253 MB / 359.7 MB, free: 2.953 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.3402, allocations: 0 / 359.7 MB, free: 2.953 MB / 286.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.004267/0.3444, allocations: 1.853 MB / 361.5 MB, free: 1.086 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/0.3445, allocations: 4 kB / 361.5 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/0.3445, allocations: 7.984 kB / 361.6 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0021/0.3466, allocations: 0.9618 MB / 362.5 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.3477, allocations: 267.5 kB / 362.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002887/0.3506, allocations: 1.994 MB / 364.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00149/0.3522, allocations: 207.9 kB / 365 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002102/0.3524, allocations: 55.97 kB / 365 MB, free: 13.54 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,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007911/0.3532, allocations: 265.5 kB / 365.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003115/0.3535, allocations: 90.88 kB / 365.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003846/0.3539, allocations: 137.2 kB / 365.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.3539, allocations: 12 kB / 365.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.89e-05/0.354, allocations: 3.953 kB / 365.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.354, allocations: 7.969 kB / 365.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006834/0.3608, allocations: 3.323 MB / 368.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.3608, allocations: 3.953 kB / 368.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.3619, allocations: 259.7 kB / 369.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001827/0.3638, allocations: 0.9147 MB / 370 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/0.3639, allocations: 43.95 kB / 370.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002465/0.3664, allocations: 1.933 MB / 372 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.3664, allocations: 3.938 kB / 372 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005139/0.3716, allocations: 2.618 MB / 374.6 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000687/0.3723, allocations: 307.7 kB / 374.9 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002781/0.3726, allocations: 36 kB / 375 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.3737, allocations: 215.7 kB / 375.2 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005006/0.3742, allocations: 224.9 kB / 375.4 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.3744, allocations: 55.94 kB / 375.4 MB, free: 2.918 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005892/0.375, allocations: 418.8 kB / 375.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.375, allocations: 0 / 375.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001245/0.3762, allocations: 323.9 kB / 376.2 MB, free: 2.191 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004191/0.3767, allocations: 189.7 kB / 376.4 MB, free: 2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003359/0.38, allocations: 1.523 MB / 377.9 MB, free: 488 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3801, allocations: 0 / 377.9 MB, free: 488 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001826/0.3819, allocations: 0.8599 MB / 378.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.383, allocations: 154.2 kB / 378.9 MB, free: 15.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008229/0.3912, allocations: 3.788 MB / 382.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006757/0.3919, allocations: 1.027 MB / 383.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006364/0.3925, allocations: 135.2 kB / 383.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002636/0.3928, allocations: 79.33 kB / 383.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3928, allocations: 0 / 383.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of Templates: time 0.03322/0.4261, allocations: 19.88 MB / 403.8 MB, free: 6.465 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)