Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001266/0.001266, allocations: 119.5 kB / 18.46 MB, free: 4.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 214.8 kB / 19.41 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.436/1.436, allocations: 227.7 MB / 247.9 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 63.89 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2534, allocations: 50.53 MB / 410.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006873/0.2603, allocations: 5.197 MB / 415.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004003/0.2643, allocations: 2.024 MB / 417.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004612/0.2648, allocations: 15.94 kB / 417.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005874/0.2654, allocations: 198.3 kB / 417.6 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001166/0.2665, allocations: 479 kB / 418.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.2677, allocations: 0.5148 MB / 418.6 MB, free: 9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001716/0.2694, allocations: 1.733 MB / 420.3 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004195/0.2698, allocations: 227.6 kB / 420.6 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001056/0.2709, allocations: 0.7478 MB / 421.3 MB, free: 6.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001028/0.2719, allocations: 0.837 MB / 422.1 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002098/0.2721, allocations: 136 kB / 422.3 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004809/0.2726, allocations: 247.9 kB / 422.5 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003896/0.273, allocations: 370.9 kB / 422.9 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006305/0.2736, allocations: 0.6532 MB / 423.5 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.2755, allocations: 1.63 MB / 425.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2755, allocations: 0 / 425.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.938e-06/0.2755, allocations: 3.984 kB / 425.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.982e-05/0.2755, allocations: 0 / 425.2 MB, free: 2.41 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003644/0.2791, allocations: 1.635 MB / 426.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.2792, allocations: 12.03 kB / 426.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006997/0.2799, allocations: 164.1 kB / 427 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.281, allocations: 0.6399 MB / 427.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002198/0.2812, allocations: 179.4 kB / 427.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002254/0.2814, allocations: 111.9 kB / 427.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0025/0.2839, allocations: 1.239 MB / 429.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.201e-05/0.284, allocations: 11.95 kB / 429.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001244/0.2841, allocations: 40 kB / 429.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.474e-05/0.2841, allocations: 24 kB / 429.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003052/0.2872, allocations: 1.292 MB / 430.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007262/0.2944, allocations: 3.676 MB / 434.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002428/0.2968, allocations: 1.002 MB / 435.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00136/0.2982, allocations: 0.5903 MB / 435.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.87e-05/0.2983, allocations: 25.3 kB / 435.8 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.2983, allocations: 48.44 kB / 435.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=136): time 2.895e-06/0.2983, allocations: 0 / 435.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=148): time 0.01451/0.3128, allocations: 5.478 MB / 441.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.3129, allocations: 94.42 kB / 441.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008801/0.3138, allocations: 0.6318 MB / 442.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000132/0.3139, allocations: 73.62 kB / 442.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003005/0.3142, allocations: 350.1 kB / 442.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004591/0.3147, allocations: 0.5114 MB / 443 MB, free: 88 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004697/0.3152, allocations: 263.5 kB / 443.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.3153, allocations: 345.9 kB / 443.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/0.3166, allocations: 0.5427 MB / 444.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.3179, allocations: 0.6763 MB / 444.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002169/0.3201, allocations: 0.9912 MB / 445.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.3201, allocations: 11.88 kB / 445.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003755/0.3238, allocations: 1.702 MB / 447.5 MB, free: 11.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.3239, allocations: 8 kB / 447.5 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.3239, allocations: 3.984 kB / 447.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002025/0.3259, allocations: 0.8435 MB / 448.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.327, allocations: 251.5 kB / 448.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002684/0.3296, allocations: 1.955 MB / 450.6 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.3309, allocations: 148 kB / 450.7 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.331, allocations: 59.86 kB / 450.8 MB, free: 8.176 MB / 366.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 (126): * Single equations (assignments): 124 * 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,45), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0005624/0.3316, allocations: 277.6 kB / 451 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002471/0.3318, allocations: 107.3 kB / 451.1 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003251/0.3321, allocations: 133.8 kB / 451.3 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/0.3322, allocations: 16 kB / 451.3 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.3322, allocations: 4 kB / 451.3 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.3322, allocations: 7.969 kB / 451.3 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006592/0.3388, allocations: 3.252 MB / 454.5 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.3388, allocations: 4 kB / 454.5 MB, free: 4.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001167/0.34, allocations: 239.8 kB / 454.8 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001837/0.3418, allocations: 0.8082 MB / 455.6 MB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001252/0.3419, allocations: 51.94 kB / 455.6 MB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002525/0.3444, allocations: 1.883 MB / 457.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.697e-06/0.3444, allocations: 11.91 kB / 457.5 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005349/0.3498, allocations: 2.419 MB / 460 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005641/0.3504, allocations: 316.2 kB / 460.3 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/0.3506, allocations: 47.94 kB / 460.3 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.3517, allocations: 155.8 kB / 460.5 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004537/0.3522, allocations: 200.9 kB / 460.7 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.3523, allocations: 63.94 kB / 460.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006154/0.3529, allocations: 438.8 kB / 461.1 MB, free: 13.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3529, allocations: 0 / 461.1 MB, free: 13.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009127/0.3538, allocations: 327.9 kB / 461.5 MB, free: 13.26 MB / 382.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,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,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 (95): * Single equations (assignments): 93 * 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,7), (4,43)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001442/0.3552, allocations: 436.3 kB / 461.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003279/0.3585, allocations: 1.353 MB / 463.2 MB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3585, allocations: 0 / 463.2 MB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001887/0.3604, allocations: 0.7713 MB / 464 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.3616, allocations: 202.2 kB / 464.2 MB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008776/0.3704, allocations: 3.217 MB / 467.4 MB, free: 7.398 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007187/0.3711, allocations: 1.043 MB / 468.5 MB, free: 6.328 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006697/0.3718, allocations: 163.5 kB / 468.6 MB, free: 6.164 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/0.3721, allocations: 95.38 kB / 468.7 MB, free: 6.07 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3721, allocations: 0 / 468.7 MB, free: 6.07 MB / 382.1 MB Notification: Performance of Templates: time 0.03829/0.4104, allocations: 22.6 MB / 491.3 MB, free: 15.57 MB / 414.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1)