Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008533/0.0008533, allocations: 179.8 kB / 17.36 MB, free: 4.168 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000846/0.0008461, allocations: 102.3 kB / 272.1 MB, free: 8.109 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002644/0.0002643, allocations: 4 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2436, allocations: 47.58 MB / 376.6 MB, free: 45.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.0024/0.2461, allocations: 2.307 MB / 378.9 MB, free: 43.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.2479, allocations: 1.336 MB / 380.2 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.248, allocations: 3.781 kB / 380.2 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001978/0.2482, allocations: 59.52 kB / 380.3 MB, free: 42.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004249/0.2487, allocations: 155.1 kB / 380.5 MB, free: 42.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003287/0.249, allocations: 217.8 kB / 380.7 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005112/0.2495, allocations: 0.607 MB / 381.3 MB, free: 41.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.2497, allocations: 112.8 kB / 381.4 MB, free: 41.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002898/0.25, allocations: 262.4 kB / 381.6 MB, free: 41.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000311/0.2503, allocations: 320.8 kB / 382 MB, free: 41.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.828e-05/0.2504, allocations: 26.66 kB / 382 MB, free: 41.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002035/0.2506, allocations: 90.97 kB / 382.1 MB, free: 41.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.2508, allocations: 120.8 kB / 382.2 MB, free: 41.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.251, allocations: 256.9 kB / 382.4 MB, free: 41.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005073/0.2515, allocations: 0.598 MB / 383 MB, free: 40.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2515, allocations: 0 / 383 MB, free: 40.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2515, allocations: 0 / 383 MB, free: 40.76 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.2515, allocations: 0 / 383 MB, free: 40.76 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.001229/0.2528, allocations: 0.729 MB / 383.8 MB, free: 40.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.2528, allocations: 9.656 kB / 383.8 MB, free: 40.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002799/0.2531, allocations: 62.52 kB / 383.8 MB, free: 40.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/0.2535, allocations: 365 kB / 384.2 MB, free: 39.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.2536, allocations: 97.36 kB / 384.3 MB, free: 39.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.283e-05/0.2537, allocations: 41.53 kB / 384.3 MB, free: 39.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.2547, allocations: 0.5737 MB / 384.9 MB, free: 39.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.2548, allocations: 2.219 kB / 384.9 MB, free: 39.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.037e-05/0.2548, allocations: 15.28 kB / 384.9 MB, free: 39.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.2548, allocations: 8.625 kB / 384.9 MB, free: 39.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.2561, allocations: 0.6494 MB / 385.6 MB, free: 39.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002043/0.2581, allocations: 1.314 MB / 386.9 MB, free: 37.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009818/0.2591, allocations: 0.5564 MB / 387.4 MB, free: 37.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005031/0.2596, allocations: 322.4 kB / 387.8 MB, free: 37.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.311e-05/0.2597, allocations: 20.48 kB / 387.8 MB, free: 37.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.2597, allocations: 35.12 kB / 387.8 MB, free: 36.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 1.663e-06/0.2597, allocations: 8 kB / 387.8 MB, free: 36.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.00587/0.2656, allocations: 2.961 MB / 390.8 MB, free: 33.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.2657, allocations: 85.61 kB / 390.9 MB, free: 33.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003128/0.266, allocations: 331 kB / 391.2 MB, free: 33.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.33e-05/0.266, allocations: 41.7 kB / 391.2 MB, free: 33.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.475e-05/0.2661, allocations: 161.5 kB / 391.4 MB, free: 33.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.2663, allocations: 232.8 kB / 391.6 MB, free: 33.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.434e-05/0.2663, allocations: 8 kB / 391.6 MB, free: 33.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.164e-05/0.2664, allocations: 350.8 kB / 392 MB, free: 32.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004907/0.2669, allocations: 293.2 kB / 392.3 MB, free: 32.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005741/0.2675, allocations: 362.4 kB / 392.6 MB, free: 32.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009227/0.2684, allocations: 0.5344 MB / 393.1 MB, free: 31.47 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2684, allocations: 4 kB / 393.1 MB, free: 31.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001492/0.2699, allocations: 0.9084 MB / 394.1 MB, free: 30.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.2699, allocations: 8 kB / 394.1 MB, free: 30.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-06/0.2699, allocations: 4 kB / 394.1 MB, free: 30.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009257/0.2709, allocations: 473.6 kB / 394.5 MB, free: 30.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003498/0.2712, allocations: 87.88 kB / 394.6 MB, free: 29.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.2723, allocations: 1.083 MB / 395.7 MB, free: 28.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004262/0.2727, allocations: 80.02 kB / 395.8 MB, free: 28.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.494e-05/0.2728, allocations: 24 kB / 395.8 MB, free: 28.78 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.0002153/0.273, allocations: 173.8 kB / 396 MB, free: 28.6 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-05/0.2731, allocations: 39.53 kB / 396 MB, free: 28.56 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001494/0.2732, allocations: 71.7 kB / 396.1 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.2732, allocations: 11.94 kB / 396.1 MB, free: 28.47 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.2733, allocations: 0 / 396.1 MB, free: 28.47 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.2733, allocations: 7.922 kB / 396.1 MB, free: 28.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002789/0.2761, allocations: 1.773 MB / 397.9 MB, free: 26.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.2761, allocations: 4 kB / 397.9 MB, free: 26.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000332/0.2764, allocations: 87.91 kB / 398 MB, free: 26.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007592/0.2772, allocations: 445 kB / 398.4 MB, free: 26.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.49e-05/0.2772, allocations: 23.98 kB / 398.4 MB, free: 26.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009369/0.2782, allocations: 1.052 MB / 399.5 MB, free: 24.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.2782, allocations: 0 / 399.5 MB, free: 24.99 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002034/0.2802, allocations: 1.309 MB / 400.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.2804, allocations: 184.6 kB / 401 MB, free: 23.46 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.784e-05/0.2805, allocations: 19.94 kB / 401 MB, free: 23.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003945/0.2809, allocations: 75.94 kB / 401.1 MB, free: 23.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/0.2811, allocations: 84.41 kB / 401.1 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.691e-05/0.2812, allocations: 23.98 kB / 401.2 MB, free: 23.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002199/0.2814, allocations: 245.9 kB / 401.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2814, allocations: 0 / 401.4 MB, free: 23.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004489/0.2819, allocations: 140 kB / 401.5 MB, free: 22.88 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.0002486/0.2821, allocations: 161 kB / 401.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.2835, allocations: 0.7197 MB / 402.4 MB, free: 22 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2835, allocations: 64 / 402.4 MB, free: 22 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006959/0.2842, allocations: 400.1 kB / 402.8 MB, free: 21.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004926/0.2847, allocations: 48.86 kB / 402.9 MB, free: 21.56 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.287, allocations: 1.415 MB / 404.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.2872, allocations: 0.8134 MB / 405.1 MB, free: 19.27 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000219/0.2874, allocations: 63.34 kB / 405.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.2875, allocations: 35.42 kB / 405.2 MB, free: 19.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2876, allocations: 0 / 405.2 MB, free: 19.18 MB / 298.7 MB Notification: Performance of Templates: time 0.01207/0.2996, allocations: 9.215 MB / 414.4 MB, free: 9.965 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_3.2.3_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.freqHz,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