Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 80.31 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 170.4 kB / 25.61 MB, free: 8.914 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9251/0.9251, allocations: 177.1 MB / 206 MB, free: 4.5 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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_Modelica.Mechanics.Rotational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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_Modelica.Mechanics.Rotational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 274.2 MB, free: 4.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.554e-05/2.748e-05, allocations: 7.438 kB / 274.2 MB, free: 4.512 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006955/0.006982, allocations: 5.026 MB / 279.2 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004095/0.01108, allocations: 1.996 MB / 281.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003256/0.0114, allocations: 23.81 kB / 281.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003896/0.01179, allocations: 198.2 kB / 281.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007242/0.01252, allocations: 495.5 kB / 281.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008166/0.01333, allocations: 0.5496 MB / 282.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00136/0.01469, allocations: 1.767 MB / 284.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003535/0.01505, allocations: 216 kB / 284.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001273/0.01632, allocations: 1.037 MB / 285.5 MB, free: 9.191 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000796/0.01712, allocations: 0.7132 MB / 286.2 MB, free: 8.477 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000224/0.01734, allocations: 139.9 kB / 286.3 MB, free: 8.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003692/0.01771, allocations: 231.8 kB / 286.6 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002749/0.01798, allocations: 382.8 kB / 286.9 MB, free: 7.738 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004319/0.01842, allocations: 494.8 kB / 287.4 MB, free: 7.254 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001242/0.01966, allocations: 1.242 MB / 288.7 MB, free: 6.008 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.01966, allocations: 0 / 288.7 MB, free: 6.008 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.01966, allocations: 0 / 288.7 MB, free: 6.008 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.104e-05/0.01969, allocations: 8 kB / 288.7 MB, free: 6 MB / 266.7 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.002227/0.02192, allocations: 1.613 MB / 290.3 MB, free: 4.344 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.02196, allocations: 8.031 kB / 290.3 MB, free: 4.336 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005579/0.02251, allocations: 248 kB / 290.5 MB, free: 4.094 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007175/0.02323, allocations: 0.5784 MB / 291.1 MB, free: 3.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001754/0.02341, allocations: 256.8 kB / 291.4 MB, free: 3.195 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.02355, allocations: 108.3 kB / 291.5 MB, free: 3.09 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.02468, allocations: 0.929 MB / 292.4 MB, free: 2.133 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.448e-05/0.02471, allocations: 11.94 kB / 292.4 MB, free: 2.121 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.071e-05/0.02479, allocations: 40 kB / 292.4 MB, free: 2.082 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.02481, allocations: 24 kB / 292.5 MB, free: 2.059 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008713/0.02568, allocations: 0.6067 MB / 293.1 MB, free: 1.453 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003471/0.02915, allocations: 2.704 MB / 295.8 MB, free: 14.67 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008967/0.03005, allocations: 0.6548 MB / 296.4 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003803/0.03043, allocations: 327.2 kB / 296.7 MB, free: 13.68 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.816e-05/0.03049, allocations: 29.31 kB / 296.8 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/0.03052, allocations: 46.7 kB / 296.8 MB, free: 13.6 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 2.525e-06/0.03053, allocations: 0 / 296.8 MB, free: 13.6 MB / 282.7 MB Notification: Performance of matching and sorting (n=148): time 0.005444/0.03597, allocations: 3.32 MB / 300.1 MB, free: 10.24 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.03601, allocations: 90.42 kB / 300.2 MB, free: 10.14 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000389/0.0364, allocations: 0.5529 MB / 300.8 MB, free: 9.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.346e-05/0.03648, allocations: 69.69 kB / 300.9 MB, free: 9.496 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.03668, allocations: 404.7 kB / 301.2 MB, free: 9.094 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002889/0.03697, allocations: 0.5152 MB / 301.8 MB, free: 8.574 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003068/0.03727, allocations: 269 kB / 302 MB, free: 8.305 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.0374, allocations: 0.5199 MB / 302.5 MB, free: 7.777 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004057/0.03781, allocations: 259.8 kB / 302.8 MB, free: 7.523 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004306/0.03824, allocations: 444.8 kB / 303.2 MB, free: 7.051 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006745/0.03891, allocations: 0.6042 MB / 303.8 MB, free: 6.422 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.03892, allocations: 0 / 303.8 MB, free: 6.422 MB / 282.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.001473/0.04039, allocations: 1.122 MB / 305 MB, free: 5.285 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.04041, allocations: 4 kB / 305 MB, free: 5.281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.04041, allocations: 4.188 kB / 305 MB, free: 5.277 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00092/0.04133, allocations: 0.6159 MB / 305.6 MB, free: 4.648 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005198/0.04185, allocations: 243.7 kB / 305.8 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001409/0.04326, allocations: 2.057 MB / 307.9 MB, free: 2.285 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005139/0.04378, allocations: 111.9 kB / 308 MB, free: 2.176 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.914e-05/0.04385, allocations: 43.97 kB / 308 MB, free: 2.133 MB / 282.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 (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.000267/0.04411, allocations: 240.3 kB / 308.3 MB, free: 1.887 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002005/0.04431, allocations: 155.3 kB / 308.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001428/0.04446, allocations: 133.8 kB / 308.5 MB, free: 1.598 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.04446, allocations: 12 kB / 308.6 MB, free: 1.586 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.04447, allocations: 4 kB / 308.6 MB, free: 1.582 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.04448, allocations: 7.969 kB / 308.6 MB, free: 1.574 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003011/0.04749, allocations: 2.159 MB / 310.7 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.0475, allocations: 12.06 kB / 310.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005449/0.04804, allocations: 227.6 kB / 311 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008536/0.04889, allocations: 0.6039 MB / 311.6 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.131e-05/0.04899, allocations: 51.94 kB / 311.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001537/0.05052, allocations: 2.06 MB / 313.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.05052, allocations: 4.031 kB / 313.7 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/0.05244, allocations: 1.524 MB / 315.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003418/0.05278, allocations: 227.8 kB / 315.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.05291, allocations: 40 kB / 315.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004441/0.05335, allocations: 111.9 kB / 315.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002837/0.05364, allocations: 216.9 kB / 315.8 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.091e-05/0.05371, allocations: 59.94 kB / 315.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002392/0.05395, allocations: 350.6 kB / 316.2 MB, free: 9.785 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05395, allocations: 3.938 kB / 316.2 MB, free: 9.781 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007006/0.05465, allocations: 327.9 kB / 316.5 MB, free: 9.461 MB / 298.7 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.000837/0.05548, allocations: 409.2 kB / 316.9 MB, free: 9.168 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.05672, allocations: 0.8785 MB / 317.8 MB, free: 8.297 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.05672, allocations: 0 / 317.8 MB, free: 8.297 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006918/0.05741, allocations: 0.5546 MB / 318.3 MB, free: 7.734 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007038/0.05812, allocations: 291.7 kB / 318.6 MB, free: 7.457 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004505/0.06262, allocations: 2.635 MB / 321.3 MB, free: 4.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001336/0.06275, allocations: 210.7 kB / 321.5 MB, free: 4.543 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003637/0.06312, allocations: 147.5 kB / 321.6 MB, free: 4.395 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004541/0.06357, allocations: 282 kB / 321.9 MB, free: 4.117 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.06357, allocations: 0 / 321.9 MB, free: 4.117 MB / 298.7 MB Notification: Performance of Templates: time 0.1276/0.1912, allocations: 22.11 MB / 344 MB, free: 70.82 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.HeatLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 3.7282011532224715]