Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001347, allocations: 193.8 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007433/0.0007433, allocations: 99.67 kB / 299.8 MB, free: 5.363 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002241/0.0002242, allocations: 8 kB / 360.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2261, allocations: 51.4 MB / 412 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003152/0.2293, allocations: 2.427 MB / 414.5 MB, free: 23.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00244/0.2318, allocations: 1.565 MB / 416 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000344/0.2322, allocations: 4 kB / 416 MB, free: 21.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003883/0.2326, allocations: 79.53 kB / 416.1 MB, free: 21.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006752/0.2333, allocations: 189.4 kB / 416.3 MB, free: 21.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006761/0.234, allocations: 207.6 kB / 416.5 MB, free: 21.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000853/0.2348, allocations: 0.6743 MB / 417.2 MB, free: 20.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002939/0.2351, allocations: 104 kB / 417.3 MB, free: 20.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006129/0.2358, allocations: 287 kB / 417.6 MB, free: 20.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005623/0.2363, allocations: 346.8 kB / 417.9 MB, free: 19.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001842/0.2365, allocations: 35.94 kB / 417.9 MB, free: 19.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004083/0.237, allocations: 111.9 kB / 418 MB, free: 19.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002395/0.2372, allocations: 131.5 kB / 418.2 MB, free: 19.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000355/0.2376, allocations: 264.5 kB / 418.4 MB, free: 19.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008362/0.2384, allocations: 0.6633 MB / 419.1 MB, free: 18.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2384, allocations: 4 kB / 419.1 MB, free: 18.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2385, allocations: 0 / 419.1 MB, free: 18.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.832e-05/0.2385, allocations: 0 / 419.1 MB, free: 18.75 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.00171/0.2402, allocations: 0.7603 MB / 419.9 MB, free: 17.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.2403, allocations: 16.03 kB / 419.9 MB, free: 17.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000509/0.2408, allocations: 76.34 kB / 419.9 MB, free: 17.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005802/0.2414, allocations: 358.4 kB / 420.3 MB, free: 17.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001369/0.2415, allocations: 96.95 kB / 420.4 MB, free: 17.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.2416, allocations: 40.38 kB / 420.4 MB, free: 17.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.2429, allocations: 0.5644 MB / 421 MB, free: 16.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.785e-05/0.243, allocations: 0 / 421 MB, free: 16.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.419e-05/0.243, allocations: 19.98 kB / 421 MB, free: 16.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.2431, allocations: 12 kB / 421 MB, free: 16.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.2446, allocations: 0.6206 MB / 421.6 MB, free: 16.08 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002792/0.2474, allocations: 1.333 MB / 423 MB, free: 14.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.2487, allocations: 0.522 MB / 423.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007093/0.2494, allocations: 310.4 kB / 423.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.908e-05/0.2495, allocations: 16.48 kB / 423.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.2495, allocations: 43.25 kB / 423.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 3.006e-06/0.2496, allocations: 0 / 423.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=70): time 0.007876/0.2574, allocations: 2.824 MB / 426.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.2575, allocations: 93.61 kB / 426.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005002/0.258, allocations: 342.9 kB / 427.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.01e-05/0.2581, allocations: 41.7 kB / 427.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.842e-05/0.2582, allocations: 165.6 kB / 427.3 MB, free: 10.17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.2584, allocations: 236.7 kB / 427.5 MB, free: 9.938 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-05/0.2585, allocations: 8 kB / 427.6 MB, free: 9.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.866e-05/0.2585, allocations: 358.8 kB / 427.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007066/0.2593, allocations: 265.2 kB / 428.2 MB, free: 9.312 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007451/0.26, allocations: 330.5 kB / 428.5 MB, free: 8.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/0.2613, allocations: 0.4953 MB / 429 MB, free: 8.473 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2613, allocations: 0 / 429 MB, free: 8.473 MB / 298.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002064/0.2633, allocations: 0.8335 MB / 429.8 MB, free: 7.629 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.2634, allocations: 8 kB / 429.8 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.006e-06/0.2634, allocations: 3.938 kB / 429.8 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/0.2646, allocations: 425.2 kB / 430.2 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004639/0.2651, allocations: 91.88 kB / 430.3 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.2664, allocations: 1.01 MB / 431.3 MB, free: 6.074 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005925/0.267, allocations: 83.98 kB / 431.4 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.5e-05/0.2671, allocations: 27.98 kB / 431.5 MB, free: 5.965 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002436/0.2674, allocations: 177.7 kB / 431.6 MB, free: 5.781 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.2675, allocations: 39.53 kB / 431.7 MB, free: 5.742 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001542/0.2676, allocations: 71.86 kB / 431.7 MB, free: 5.672 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.2677, allocations: 7.938 kB / 431.7 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.2677, allocations: 0 / 431.7 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.2677, allocations: 7.922 kB / 431.7 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003513/0.2712, allocations: 1.707 MB / 433.5 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.2712, allocations: 0 / 433.5 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004576/0.2717, allocations: 99.95 kB / 433.6 MB, free: 3.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001035/0.2727, allocations: 384.6 kB / 433.9 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.715e-05/0.2728, allocations: 23.98 kB / 434 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.274, allocations: 0.9775 MB / 434.9 MB, free: 2.387 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.274, allocations: 0 / 434.9 MB, free: 2.387 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002601/0.2766, allocations: 1.204 MB / 436.1 MB, free: 1.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002721/0.2769, allocations: 204.4 kB / 436.3 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.2771, allocations: 24.06 kB / 436.4 MB, free: 0.918 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005486/0.2776, allocations: 63.94 kB / 436.4 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002665/0.2779, allocations: 96.41 kB / 436.5 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-05/0.278, allocations: 27.92 kB / 436.5 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003233/0.2783, allocations: 249.9 kB / 436.8 MB, free: 500 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2783, allocations: 0 / 436.8 MB, free: 500 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006346/0.279, allocations: 144 kB / 436.9 MB, free: 356 kB / 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001011/0.28, allocations: 446.1 kB / 437.4 MB, free: 12 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002029/0.282, allocations: 0.6729 MB / 438 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.282, allocations: 0 / 438 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.2831, allocations: 376.2 kB / 438.4 MB, free: 14.97 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007165/0.2839, allocations: 68.55 kB / 438.5 MB, free: 14.9 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003489/0.2874, allocations: 1.43 MB / 439.9 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004764/0.2879, allocations: 0.8367 MB / 440.7 MB, free: 12.59 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004194/0.2883, allocations: 83.36 kB / 440.8 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.2885, allocations: 51.34 kB / 440.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2885, allocations: 0 / 440.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of Templates: time 0.02062/0.3092, allocations: 9.53 MB / 450.4 MB, free: 2.949 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.smoothness,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.smoothness,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