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.002637/0.002637, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.00303/0.00303, allocations: 149.5 kB / 24.26 MB, free: 172 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.541/1.541, allocations: 173.3 MB / 200.8 MB, free: 9.32 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.683e-06/1.683e-06, allocations: 0 / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.281e-05/3.449e-05, allocations: 6.312 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004466/0.0045, allocations: 2.712 MB / 270 MB, free: 4.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.006713, allocations: 1.065 MB / 271.1 MB, free: 2.949 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.006868, allocations: 7.938 kB / 271.1 MB, free: 2.941 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002697/0.007137, allocations: 83.34 kB / 271.2 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007335/0.007871, allocations: 206.6 kB / 271.4 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006462/0.008517, allocations: 251.5 kB / 271.6 MB, free: 2.41 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001311/0.009828, allocations: 0.6584 MB / 272.3 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/0.01005, allocations: 84.86 kB / 272.4 MB, free: 1.66 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005987/0.01065, allocations: 395.2 kB / 272.7 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004828/0.01113, allocations: 307.3 kB / 273 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.01125, allocations: 52 kB / 273.1 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003306/0.01158, allocations: 135.8 kB / 273.2 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002285/0.01181, allocations: 151.5 kB / 273.4 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002535/0.01206, allocations: 187.6 kB / 273.6 MB, free: 468 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.0131, allocations: 0.6972 MB / 274.3 MB, free: 15.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.01311, allocations: 0 / 274.3 MB, free: 15.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.01311, allocations: 0 / 274.3 MB, free: 15.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.707e-06/0.01312, allocations: 4 kB / 274.3 MB, free: 15.75 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.001817/0.01493, allocations: 0.8385 MB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.01497, allocations: 12.03 kB / 275.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004234/0.0154, allocations: 92.64 kB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006404/0.01604, allocations: 311.3 kB / 275.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001979/0.01623, allocations: 148.4 kB / 275.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.173e-05/0.01633, allocations: 48.2 kB / 275.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.01753, allocations: 0.5683 MB / 276.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.01755, allocations: 8.141 kB / 276.3 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.92e-05/0.01761, allocations: 20.12 kB / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.01763, allocations: 8 kB / 276.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001329/0.01895, allocations: 0.5698 MB / 276.9 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/0.02154, allocations: 1.12 MB / 278 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.02275, allocations: 490.2 kB / 278.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006345/0.02339, allocations: 277 kB / 278.7 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.15e-05/0.02345, allocations: 12.5 kB / 278.7 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.021e-05/0.0235, allocations: 45.88 kB / 278.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of pre-optimization done (n=61): time 2.114e-06/0.0235, allocations: 0 / 278.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=69): time 0.007283/0.03078, allocations: 2.438 MB / 281.2 MB, free: 8.543 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.925e-05/0.03086, allocations: 85.77 kB / 281.3 MB, free: 8.441 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005019/0.03137, allocations: 372.2 kB / 281.7 MB, free: 8.062 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.618e-05/0.03143, allocations: 41.7 kB / 281.7 MB, free: 8.016 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.03161, allocations: 216.4 kB / 281.9 MB, free: 7.797 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002546/0.03187, allocations: 254 kB / 282.2 MB, free: 7.547 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002617/0.03213, allocations: 139.9 kB / 282.3 MB, free: 7.402 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003334/0.03246, allocations: 0.5352 MB / 282.9 MB, free: 6.855 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006173/0.03308, allocations: 261.2 kB / 283.1 MB, free: 6.602 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007358/0.03382, allocations: 375.5 kB / 283.5 MB, free: 6.211 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/0.03494, allocations: 0.5078 MB / 284 MB, free: 5.691 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.03495, allocations: 0 / 284 MB, free: 5.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001932/0.03688, allocations: 0.8412 MB / 284.8 MB, free: 4.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.0369, allocations: 7.938 kB / 284.8 MB, free: 4.832 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.03691, allocations: 8.062 kB / 284.8 MB, free: 4.824 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.03813, allocations: 462.1 kB / 285.3 MB, free: 4.371 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003982/0.03853, allocations: 83.95 kB / 285.4 MB, free: 4.289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001972/0.0405, allocations: 1.354 MB / 286.7 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004148/0.04091, allocations: 47.98 kB / 286.8 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.735e-05/0.04098, allocations: 23.98 kB / 286.8 MB, free: 2.832 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.0003005/0.04128, allocations: 220.4 kB / 287 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/0.04144, allocations: 63.7 kB / 287.1 MB, free: 2.543 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001874/0.04162, allocations: 59.73 kB / 287.1 MB, free: 2.484 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.505e-06/0.04163, allocations: 11.94 kB / 287.1 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.04164, allocations: 0 / 287.1 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.04165, allocations: 3.984 kB / 287.1 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003696/0.04534, allocations: 1.627 MB / 288.8 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.04535, allocations: 4.031 kB / 288.8 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003804/0.04573, allocations: 75.89 kB / 288.9 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001081/0.04681, allocations: 447.2 kB / 289.3 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-05/0.04686, allocations: 19.98 kB / 289.3 MB, free: 248 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1235/0.1704, allocations: 1.298 MB / 290.6 MB, free: 31.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.1704, allocations: 2.031 kB / 290.6 MB, free: 31.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002578/0.173, allocations: 1.296 MB / 291.9 MB, free: 31.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002907/0.1733, allocations: 99.23 kB / 292 MB, free: 31.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.1734, allocations: 17.75 kB / 292 MB, free: 31.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003758/0.1737, allocations: 39.55 kB / 292.1 MB, free: 31.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.174, allocations: 96.89 kB / 292.2 MB, free: 31.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.321e-05/0.174, allocations: 24.38 kB / 292.2 MB, free: 31.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002553/0.1743, allocations: 256.4 kB / 292.4 MB, free: 31.63 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1743, allocations: 0 / 292.4 MB, free: 31.63 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005074/0.1748, allocations: 149.6 kB / 292.6 MB, free: 31.63 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.000261/0.1751, allocations: 150.8 kB / 292.7 MB, free: 31.53 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.1765, allocations: 0.6633 MB / 293.4 MB, free: 31.37 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1766, allocations: 0 / 293.4 MB, free: 31.37 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007994/0.1773, allocations: 381.3 kB / 293.8 MB, free: 31.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000522/0.1779, allocations: 80.34 kB / 293.8 MB, free: 31.24 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.1801, allocations: 1.011 MB / 294.8 MB, free: 30.77 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002219/0.1803, allocations: 212.2 kB / 295.1 MB, free: 30.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002133/0.1805, allocations: 54.59 kB / 295.1 MB, free: 30.67 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.1807, allocations: 50.67 kB / 295.2 MB, free: 30.66 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1807, allocations: 0 / 295.2 MB, free: 30.66 MB / 266.7 MB Notification: Performance of Templates: time 0.01443/0.1951, allocations: 8.43 MB / 303.6 MB, free: 27.15 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 240] 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.842506896937266]