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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001114/0.001114, allocations: 178.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.166/1.166, allocations: 194.5 MB / 211.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001542/0.001542, allocations: 115.6 kB / 256.9 MB, free: 4.371 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003091/0.0003092, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07392/0.07424, allocations: 44.5 MB / 355.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2128/0.2871, allocations: 83 MB / 438.1 MB, free: 6.664 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00018/0.2873, allocations: 68.84 kB / 438.1 MB, free: 6.629 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05844/0.3457, allocations: 22.94 MB / 461.1 MB, free: 2.215 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.928e-06/0.3458, allocations: 0 / 461.1 MB, free: 2.215 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.906e-05/0.3458, allocations: 20.59 kB / 461.1 MB, free: 2.195 MB / 330.7 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.002739/0.3486, allocations: 1.363 MB / 462.4 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.3486, allocations: 8.031 kB / 462.5 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004503/0.3491, allocations: 142.5 kB / 462.6 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008703/0.3499, allocations: 0.5373 MB / 463.1 MB, free: 52 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003074/0.3503, allocations: 199.1 kB / 463.3 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001772/0.3504, allocations: 103.9 kB / 463.4 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002163/0.3526, allocations: 1.221 MB / 464.6 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.695e-05/0.3527, allocations: 11.89 kB / 464.7 MB, free: 14.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.3528, allocations: 40 kB / 464.7 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.3528, allocations: 20 kB / 464.7 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002574/0.3554, allocations: 1.292 MB / 466 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006205/0.3616, allocations: 3.693 MB / 469.7 MB, free: 9.289 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001832/0.3635, allocations: 1.018 MB / 470.7 MB, free: 8.254 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.094e-05/0.3636, allocations: 33.23 kB / 470.8 MB, free: 8.223 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.3636, allocations: 44.5 kB / 470.8 MB, free: 8.172 MB / 346.7 MB Notification: Performance of pre-optimization done (n=135): time 3.637e-06/0.3636, allocations: 1.031 kB / 470.8 MB, free: 8.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=147): time 0.0129/0.3765, allocations: 5.779 MB / 476.6 MB, free: 2.238 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.3766, allocations: 98.42 kB / 476.7 MB, free: 2.121 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005725/0.3772, allocations: 453.9 kB / 477.1 MB, free: 1.672 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001334/0.3774, allocations: 61.7 kB / 477.2 MB, free: 1.605 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.3776, allocations: 317.5 kB / 477.5 MB, free: 1.289 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003676/0.378, allocations: 493.1 kB / 478 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.232e-05/0.3781, allocations: 31.98 kB / 478 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.3782, allocations: 390.8 kB / 478.4 MB, free: 388 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.3793, allocations: 0.5389 MB / 478.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.3805, allocations: 0.6762 MB / 479.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009762/0.3815, allocations: 495.5 kB / 480.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3815, allocations: 0 / 480.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003268/0.3848, allocations: 1.701 MB / 481.8 MB, free: 12.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.3848, allocations: 8 kB / 481.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/0.3848, allocations: 11.92 kB / 481.8 MB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001711/0.3865, allocations: 0.8073 MB / 482.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009826/0.3875, allocations: 251.7 kB / 482.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002121/0.3897, allocations: 1.882 MB / 484.7 MB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001137/0.3908, allocations: 207.9 kB / 484.9 MB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/0.391, allocations: 63.97 kB / 485 MB, free: 9.664 MB / 362.7 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 ($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,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0005205/0.3915, allocations: 265.7 kB / 485.3 MB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/0.3917, allocations: 90.88 kB / 485.4 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003677/0.3954, allocations: 1.935 MB / 487.3 MB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.395e-05/0.3954, allocations: 16 kB / 487.3 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3954, allocations: 0 / 487.3 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.015e-05/0.3954, allocations: 9.375 kB / 487.3 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005933/0.4014, allocations: 3.182 MB / 490.5 MB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.4014, allocations: 0 / 490.5 MB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/0.4025, allocations: 267.7 kB / 490.8 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/0.4041, allocations: 0.7625 MB / 491.5 MB, free: 3.039 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/0.4042, allocations: 51.94 kB / 491.6 MB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002074/0.4063, allocations: 1.823 MB / 493.4 MB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.4063, allocations: 0 / 493.4 MB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004649/0.411, allocations: 2.481 MB / 495.9 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005564/0.4115, allocations: 299.8 kB / 496.2 MB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.4117, allocations: 39.98 kB / 496.2 MB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.4128, allocations: 215.9 kB / 496.4 MB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004045/0.4132, allocations: 232.8 kB / 496.6 MB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/0.4134, allocations: 63.91 kB / 496.7 MB, free: 13.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004491/0.4139, allocations: 358.8 kB / 497.1 MB, free: 13.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4139, allocations: 2.156 kB / 497.1 MB, free: 13.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008947/0.4148, allocations: 328 kB / 497.4 MB, free: 13.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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.00034/0.4151, allocations: 193.9 kB / 497.6 MB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003/0.4181, allocations: 1.538 MB / 499.1 MB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4181, allocations: 0 / 499.1 MB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00172/0.4199, allocations: 0.8521 MB / 500 MB, free: 10.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008054/0.4207, allocations: 138.9 kB / 0.4884 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007945/0.4286, allocations: 3.787 MB / 0.4921 GB, free: 6.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006372/0.4293, allocations: 1.051 MB / 0.4931 GB, free: 5.402 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006069/0.4299, allocations: 135.2 kB / 0.4932 GB, free: 5.266 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002893/0.4302, allocations: 79.39 kB / 0.4933 GB, free: 5.188 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4302, allocations: 0 / 0.4933 GB, free: 5.188 MB / 378.7 MB Notification: Performance of Templates: time 0.02835/0.4586, allocations: 19.13 MB / 0.512 GB, free: 2.082 MB / 394.7 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)