Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.001835/0.001835, allocations: 84.34 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.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.002165/0.002165, allocations: 165.7 kB / 24.27 MB, free: 144 kB / 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 1.5/1.5, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.824e-05/2.97e-05, allocations: 6.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004619/0.004649, allocations: 2.689 MB / 275 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002875/0.007524, allocations: 1.224 MB / 276.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002167/0.007741, allocations: 7.938 kB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003682/0.008109, allocations: 99.2 kB / 276.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006427/0.008752, allocations: 211.6 kB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007485/0.0095, allocations: 259.4 kB / 276.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.01051, allocations: 0.7364 MB / 277.5 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002396/0.01075, allocations: 79.97 kB / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000802/0.01156, allocations: 447.1 kB / 278 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005185/0.01207, allocations: 315.3 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001117/0.01219, allocations: 64 kB / 278.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003619/0.01255, allocations: 147.9 kB / 278.5 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000254/0.0128, allocations: 167.5 kB / 278.7 MB, free: 11.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002904/0.01309, allocations: 199.5 kB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001087/0.01418, allocations: 0.7789 MB / 279.7 MB, free: 10.42 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.01418, allocations: 0 / 279.7 MB, free: 10.42 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.01419, allocations: 0 / 279.7 MB, free: 10.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.01419, allocations: 0 / 279.7 MB, free: 10.42 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002/0.01619, allocations: 0.7738 MB / 280.5 MB, free: 9.617 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.01624, allocations: 8.031 kB / 280.5 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005917/0.01683, allocations: 116.6 kB / 280.6 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007817/0.01762, allocations: 312.4 kB / 280.9 MB, free: 9.164 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002246/0.01784, allocations: 156.3 kB / 281 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.01795, allocations: 44.33 kB / 281.1 MB, free: 8.941 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.01923, allocations: 0.5744 MB / 281.7 MB, free: 8.352 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.01925, allocations: 8.188 kB / 281.7 MB, free: 8.344 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.619e-05/0.01932, allocations: 16.12 kB / 281.7 MB, free: 8.328 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.01933, allocations: 16 kB / 281.7 MB, free: 8.312 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001492/0.02082, allocations: 0.601 MB / 282.3 MB, free: 7.711 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002934/0.02376, allocations: 1.072 MB / 283.4 MB, free: 6.605 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.02505, allocations: 497.6 kB / 283.9 MB, free: 6.105 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006945/0.02575, allocations: 282.2 kB / 284.1 MB, free: 5.828 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.037e-05/0.0258, allocations: 12.5 kB / 284.1 MB, free: 5.816 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.02584, allocations: 39.06 kB / 284.2 MB, free: 5.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 1.964e-06/0.02584, allocations: 0 / 284.2 MB, free: 5.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=70): time 0.007799/0.03364, allocations: 2.446 MB / 286.6 MB, free: 3.277 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.763e-05/0.03372, allocations: 85.7 kB / 286.7 MB, free: 3.176 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005036/0.03422, allocations: 325.8 kB / 287 MB, free: 2.844 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.252e-05/0.03429, allocations: 41.7 kB / 287.1 MB, free: 2.797 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/0.03446, allocations: 181.6 kB / 287.2 MB, free: 2.613 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002492/0.03471, allocations: 242 kB / 287.5 MB, free: 2.375 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000252/0.03496, allocations: 130.2 kB / 287.6 MB, free: 2.242 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002222/0.03518, allocations: 350.7 kB / 287.9 MB, free: 1.891 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006733/0.03586, allocations: 269.2 kB / 288.2 MB, free: 1.629 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000764/0.03662, allocations: 352.2 kB / 288.6 MB, free: 1.266 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.03789, allocations: 499.5 kB / 289 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.03789, allocations: 0 / 289 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.1071/0.145, allocations: 0.839 MB / 289.9 MB, free: 28.22 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.145, allocations: 4.969 kB / 289.9 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.145, allocations: 0.5625 kB / 289.9 MB, free: 28.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/0.1463, allocations: 447.2 kB / 290.3 MB, free: 28.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004838/0.1468, allocations: 88.16 kB / 290.4 MB, free: 28.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.1481, allocations: 1.027 MB / 291.4 MB, free: 27.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005796/0.1487, allocations: 61.44 kB / 291.5 MB, free: 27.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.504e-05/0.1487, allocations: 25.16 kB / 291.5 MB, free: 27.68 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002539/0.149, allocations: 185.2 kB / 291.7 MB, free: 27.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.1492, allocations: 66.48 kB / 291.8 MB, free: 27.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001539/0.1493, allocations: 66.53 kB / 291.8 MB, free: 27.52 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.1493, allocations: 11.22 kB / 291.8 MB, free: 27.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.1493, allocations: 0.6875 kB / 291.8 MB, free: 27.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.1493, allocations: 5.172 kB / 291.8 MB, free: 27.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.1524, allocations: 1.503 MB / 293.4 MB, free: 26.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.1524, allocations: 1.734 kB / 293.4 MB, free: 26.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000399/0.1528, allocations: 81.23 kB / 293.4 MB, free: 26.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009937/0.1538, allocations: 413.2 kB / 293.8 MB, free: 26.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-05/0.1539, allocations: 25.23 kB / 293.9 MB, free: 26.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/0.155, allocations: 0.9835 MB / 294.8 MB, free: 25.99 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.155, allocations: 1.531 kB / 294.8 MB, free: 25.99 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.1575, allocations: 1.239 MB / 296.1 MB, free: 25.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/0.1578, allocations: 119.3 kB / 296.2 MB, free: 25.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.646e-05/0.1579, allocations: 18.25 kB / 296.2 MB, free: 25.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004699/0.1584, allocations: 58.48 kB / 296.3 MB, free: 25.39 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002278/0.1586, allocations: 93.73 kB / 296.4 MB, free: 25.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.628e-05/0.1587, allocations: 30.61 kB / 296.4 MB, free: 25.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002917/0.159, allocations: 234.3 kB / 296.6 MB, free: 25.24 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.159, allocations: 0 / 296.6 MB, free: 25.24 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005299/0.1595, allocations: 141.6 kB / 296.8 MB, free: 25.22 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001703/0.1612, allocations: 413.3 kB / 297.2 MB, free: 25.1 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.1628, allocations: 0.6325 MB / 297.8 MB, free: 24.9 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1628, allocations: 3.828 kB / 297.8 MB, free: 24.9 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008284/0.1636, allocations: 347.4 kB / 298.1 MB, free: 24.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000594/0.1642, allocations: 112.2 kB / 298.3 MB, free: 24.76 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002445/0.1666, allocations: 1.101 MB / 299.4 MB, free: 24.22 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.1668, allocations: 219.5 kB / 299.6 MB, free: 24.13 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.00026/0.1671, allocations: 78.19 kB / 299.6 MB, free: 24.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.1673, allocations: 56.77 kB / 299.7 MB, free: 24.09 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1673, allocations: 0 / 299.7 MB, free: 24.09 MB / 266.7 MB Notification: Performance of Templates: time 0.01276/0.18, allocations: 8.916 MB / 308.6 MB, free: 18.3 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.continuous,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.smoothness,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.smoothness,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.750476281973533]