Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000893/0.0008931, allocations: 183.7 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.202/1.202, allocations: 225.7 MB / 243.2 MB, free: 8.496 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007819/0.0007819, allocations: 94.31 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000233/0.000233, allocations: 11.94 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1744/0.1747, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.001986/0.1767, allocations: 2.312 MB / 406.9 MB, free: 29.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.178, allocations: 1.282 MB / 408.2 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.1781, allocations: 7.531 kB / 408.2 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.1783, allocations: 55.62 kB / 408.2 MB, free: 27.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003722/0.1787, allocations: 155.2 kB / 408.4 MB, free: 27.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002896/0.179, allocations: 222.2 kB / 408.6 MB, free: 27.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000344/0.1793, allocations: 0.6118 MB / 409.2 MB, free: 26.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.1795, allocations: 108 kB / 409.3 MB, free: 26.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.1797, allocations: 263 kB / 409.6 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002544/0.18, allocations: 318.9 kB / 409.9 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.715e-05/0.18, allocations: 28 kB / 409.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001716/0.1802, allocations: 91.94 kB / 410 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.1803, allocations: 123.5 kB / 410.1 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001587/0.1805, allocations: 248.5 kB / 410.4 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003804/0.1809, allocations: 0.601 MB / 411 MB, free: 24.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1809, allocations: 0 / 411 MB, free: 24.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1809, allocations: 0 / 411 MB, free: 24.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1809, allocations: 4 kB / 411 MB, free: 24.86 MB / 298.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.001079/0.182, allocations: 0.7253 MB / 411.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.768e-05/0.1821, allocations: 12.03 kB / 411.7 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002657/0.1823, allocations: 68.34 kB / 411.8 MB, free: 24.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003525/0.1827, allocations: 366.4 kB / 412.1 MB, free: 23.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.073e-05/0.1828, allocations: 100.9 kB / 412.2 MB, free: 23.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.628e-05/0.1829, allocations: 40.36 kB / 412.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008062/0.1837, allocations: 0.5723 MB / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1837, allocations: 0 / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.1838, allocations: 20 kB / 412.9 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1838, allocations: 8 kB / 412.9 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.1848, allocations: 0.648 MB / 413.5 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.1866, allocations: 1.314 MB / 414.8 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000873/0.1875, allocations: 0.5557 MB / 415.4 MB, free: 20.26 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004829/0.188, allocations: 326.4 kB / 415.7 MB, free: 19.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.75e-05/0.188, allocations: 20.48 kB / 415.7 MB, free: 19.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.1881, allocations: 39.12 kB / 415.8 MB, free: 19.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 1.643e-06/0.1881, allocations: 192 / 415.8 MB, free: 19.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.005362/0.1934, allocations: 2.953 MB / 418.7 MB, free: 16.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.1935, allocations: 89.61 kB / 418.8 MB, free: 16.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.1938, allocations: 338.8 kB / 419.1 MB, free: 16.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.023e-05/0.1938, allocations: 41.7 kB / 419.2 MB, free: 16.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.064e-05/0.1939, allocations: 157.6 kB / 419.3 MB, free: 16.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.194, allocations: 232.8 kB / 419.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.544e-05/0.1941, allocations: 15.98 kB / 419.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.432e-05/0.1941, allocations: 346.8 kB / 419.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004822/0.1946, allocations: 293.2 kB / 420.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004915/0.1951, allocations: 366.4 kB / 420.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008155/0.196, allocations: 0.5344 MB / 421.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.196, allocations: 0 / 421.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001393/0.1974, allocations: 0.9162 MB / 422 MB, free: 13.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.1974, allocations: 4 kB / 422 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1974, allocations: 4 kB / 422 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008561/0.1983, allocations: 474.4 kB / 422.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003242/0.1986, allocations: 87.83 kB / 422.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009253/0.1995, allocations: 1.073 MB / 423.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003944/0.1999, allocations: 79.98 kB / 423.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/0.2, allocations: 27.98 kB / 423.7 MB, free: 11.67 MB / 298.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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * 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.0001585/0.2002, allocations: 177.7 kB / 423.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.797e-05/0.2002, allocations: 43.52 kB / 424 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.2003, allocations: 71.77 kB / 424 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.2004, allocations: 8 kB / 424 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2004, allocations: 4 kB / 424 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2004, allocations: 0 / 424 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002493/0.2029, allocations: 1.785 MB / 425.8 MB, free: 9.504 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.237e-06/0.2029, allocations: 0 / 425.8 MB, free: 9.504 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003246/0.2032, allocations: 79.89 kB / 425.9 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007507/0.204, allocations: 448.5 kB / 426.3 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.363e-05/0.204, allocations: 27.97 kB / 426.4 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000865/0.2049, allocations: 1.038 MB / 427.4 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2049, allocations: 0 / 427.4 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.2068, allocations: 1.317 MB / 428.7 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.207, allocations: 184.5 kB / 428.9 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.852e-05/0.2071, allocations: 19.94 kB / 428.9 MB, free: 6.336 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000387/0.2075, allocations: 76 kB / 429 MB, free: 6.262 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.2077, allocations: 80.42 kB / 429.1 MB, free: 6.184 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.094e-05/0.2077, allocations: 23.97 kB / 429.1 MB, free: 6.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001911/0.2079, allocations: 241.9 kB / 429.3 MB, free: 5.926 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2079, allocations: 0 / 429.3 MB, free: 5.926 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003729/0.2083, allocations: 148 kB / 429.5 MB, free: 5.781 MB / 298.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.0001876/0.2085, allocations: 156.3 kB / 429.6 MB, free: 5.617 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.2097, allocations: 0.7197 MB / 430.3 MB, free: 4.891 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2097, allocations: 0 / 430.3 MB, free: 4.891 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006687/0.2104, allocations: 396.1 kB / 430.7 MB, free: 4.504 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004/0.2108, allocations: 49 kB / 430.8 MB, free: 4.453 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.2128, allocations: 1.412 MB / 432.2 MB, free: 3.012 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001747/0.213, allocations: 0.8173 MB / 433 MB, free: 2.168 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002037/0.2132, allocations: 63.34 kB / 433.1 MB, free: 2.102 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.2133, allocations: 43.41 kB / 433.1 MB, free: 2.059 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2133, allocations: 0 / 433.1 MB, free: 2.059 MB / 298.7 MB Notification: Performance of Templates: time 0.01263/0.2259, allocations: 9.213 MB / 442.3 MB, free: 8.871 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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.phi_support,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.support.phi,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,fixed.flange.phi,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.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi