Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 84.66 kB / 20.95 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 149.1 kB / 24.25 MB, free: 160 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 173.3 MB / 200.8 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.542e-05/2.707e-05, allocations: 2.312 kB / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004419/0.004446, allocations: 2.558 MB / 269.9 MB, free: 4.137 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00234/0.006786, allocations: 1.053 MB / 270.9 MB, free: 3.078 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002325/0.007019, allocations: 7.938 kB / 270.9 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003155/0.007334, allocations: 71.36 kB / 271 MB, free: 3 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007537/0.008088, allocations: 210.6 kB / 271.2 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006636/0.008751, allocations: 255.4 kB / 271.5 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009243/0.009676, allocations: 0.6585 MB / 272.1 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.009926, allocations: 80.86 kB / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007744/0.0107, allocations: 403.2 kB / 272.6 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005215/0.01122, allocations: 299.3 kB / 272.9 MB, free: 1.109 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001137/0.01134, allocations: 52 kB / 272.9 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002925/0.01163, allocations: 131.9 kB / 273.1 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002109/0.01184, allocations: 143.6 kB / 273.2 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003658/0.0122, allocations: 187.5 kB / 273.4 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.01321, allocations: 0.7088 MB / 274.1 MB, free: 15.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.01321, allocations: 0 / 274.1 MB, free: 15.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.01321, allocations: 3.938 kB / 274.1 MB, free: 15.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.01323, allocations: 0 / 274.1 MB, free: 15.89 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002053/0.01528, allocations: 0.7311 MB / 274.8 MB, free: 15.13 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.01532, allocations: 12.02 kB / 274.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000444/0.01576, allocations: 96.64 kB / 274.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000673/0.01643, allocations: 308.5 kB / 275.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002004/0.01664, allocations: 152.4 kB / 275.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.01674, allocations: 44.38 kB / 275.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.01798, allocations: 0.5822 MB / 276 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.558e-05/0.01801, allocations: 8.125 kB / 276 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.555e-05/0.01808, allocations: 20.12 kB / 276 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.01809, allocations: 8 kB / 276 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001471/0.01956, allocations: 0.6246 MB / 276.7 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.02217, allocations: 1.056 MB / 277.7 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.02345, allocations: 0.5094 MB / 278.2 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006868/0.02413, allocations: 294.2 kB / 278.5 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.294e-05/0.02419, allocations: 12.5 kB / 278.5 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.02423, allocations: 39.19 kB / 278.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=61): time 1.913e-06/0.02423, allocations: 4 kB / 278.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=69): time 0.007612/0.03184, allocations: 2.579 MB / 281.2 MB, free: 8.621 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.286e-05/0.03192, allocations: 85.7 kB / 281.2 MB, free: 8.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006636/0.03259, allocations: 305.8 kB / 281.5 MB, free: 8.215 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.302e-05/0.03266, allocations: 45.69 kB / 281.6 MB, free: 8.164 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.03281, allocations: 161.7 kB / 281.7 MB, free: 8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000258/0.03307, allocations: 242 kB / 282 MB, free: 7.762 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002429/0.03331, allocations: 122.3 kB / 282.1 MB, free: 7.637 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002179/0.03353, allocations: 354.7 kB / 282.4 MB, free: 7.281 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006938/0.03422, allocations: 289.2 kB / 282.7 MB, free: 6.996 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007655/0.03499, allocations: 376.2 kB / 283.1 MB, free: 6.613 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001242/0.03623, allocations: 0.5229 MB / 283.6 MB, free: 6.078 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.03623, allocations: 0 / 283.6 MB, free: 6.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00206/0.03829, allocations: 0.8931 MB / 284.5 MB, free: 5.176 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.03831, allocations: 8 kB / 284.5 MB, free: 5.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.03832, allocations: 0 / 284.5 MB, free: 5.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/0.03955, allocations: 475.3 kB / 285 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004133/0.03996, allocations: 83.89 kB / 285.1 MB, free: 4.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001628/0.04159, allocations: 1.103 MB / 286.2 MB, free: 3.492 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004962/0.04208, allocations: 55.92 kB / 286.2 MB, free: 3.438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.379e-05/0.04216, allocations: 27.98 kB / 286.2 MB, free: 3.41 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002823/0.04244, allocations: 177.8 kB / 286.4 MB, free: 3.227 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.0426, allocations: 63.7 kB / 286.5 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001781/0.04278, allocations: 67.73 kB / 286.5 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.04279, allocations: 8 kB / 286.6 MB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.0428, allocations: 0 / 286.6 MB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.0428, allocations: 0 / 286.6 MB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003667/0.04647, allocations: 1.567 MB / 288.1 MB, free: 1.473 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.04648, allocations: 4 kB / 288.1 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004096/0.04689, allocations: 83.81 kB / 288.2 MB, free: 1.387 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/0.04822, allocations: 452.4 kB / 288.6 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-05/0.04828, allocations: 19.98 kB / 288.7 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1108/0.1591, allocations: 1.043 MB / 289.7 MB, free: 32.76 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.1591, allocations: 0 / 289.7 MB, free: 32.76 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002991/0.1621, allocations: 1.305 MB / 291 MB, free: 32.61 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002704/0.1623, allocations: 110.4 kB / 291.1 MB, free: 32.6 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.1624, allocations: 19.92 kB / 291.1 MB, free: 32.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004749/0.1629, allocations: 51.34 kB / 291.2 MB, free: 32.58 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/0.1632, allocations: 89.2 kB / 291.3 MB, free: 32.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.704e-05/0.1632, allocations: 27.34 kB / 291.3 MB, free: 32.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002741/0.1635, allocations: 222.9 kB / 291.5 MB, free: 32.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1635, allocations: 0 / 291.5 MB, free: 32.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005399/0.164, allocations: 149.6 kB / 291.7 MB, free: 32.43 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002849/0.1643, allocations: 150.6 kB / 291.8 MB, free: 32.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.1659, allocations: 0.6662 MB / 292.5 MB, free: 32.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1659, allocations: 5.25 kB / 292.5 MB, free: 32.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008228/0.1667, allocations: 359.9 kB / 292.8 MB, free: 32.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005108/0.1672, allocations: 82.03 kB / 292.9 MB, free: 32.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.1698, allocations: 1.07 MB / 294 MB, free: 31.55 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.17, allocations: 221.3 kB / 294.2 MB, free: 31.47 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.1702, allocations: 64.47 kB / 294.3 MB, free: 31.46 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.1704, allocations: 42.66 kB / 294.3 MB, free: 31.45 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.1704, allocations: 0 / 294.3 MB, free: 31.45 MB / 266.7 MB Notification: Performance of Templates: time 0.01332/0.1837, allocations: 8.445 MB / 302.8 MB, free: 28.18 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.ratio,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time [Calling sys.exit(0), Time elapsed: 4.660766656044871]