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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 186.5 kB / 17.27 MB, free: 4.48 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009653/0.0009653, allocations: 101.6 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008997/0.0009005, allocations: 43.94 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2671, allocations: 49.43 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003204/0.2704, allocations: 2.773 MB / 402.2 MB, free: 30.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.2719, allocations: 1.087 MB / 403.3 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.2721, allocations: 4 kB / 403.3 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002219/0.2723, allocations: 63.61 kB / 403.4 MB, free: 29.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004204/0.2728, allocations: 159.7 kB / 403.5 MB, free: 29.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003235/0.2731, allocations: 212.3 kB / 403.8 MB, free: 29.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003604/0.2735, allocations: 0.6157 MB / 404.4 MB, free: 28.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.2737, allocations: 112 kB / 404.5 MB, free: 28.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002406/0.2739, allocations: 275 kB / 404.7 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002567/0.2742, allocations: 326.9 kB / 405.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.374e-05/0.2742, allocations: 32 kB / 405.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001828/0.2744, allocations: 111.9 kB / 405.2 MB, free: 27.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.2746, allocations: 123.6 kB / 405.3 MB, free: 27.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.2747, allocations: 230.8 kB / 405.5 MB, free: 27.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004278/0.2751, allocations: 0.6089 MB / 406.2 MB, free: 26.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.2752, allocations: 0 / 406.2 MB, free: 26.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.2752, allocations: 4 kB / 406.2 MB, free: 26.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.2752, allocations: 0 / 406.2 MB, free: 26.65 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.001374/0.2766, allocations: 0.8008 MB / 407 MB, free: 25.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.2766, allocations: 8.031 kB / 407 MB, free: 25.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003086/0.2769, allocations: 64.34 kB / 407 MB, free: 25.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004465/0.2774, allocations: 362.4 kB / 407.4 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.2775, allocations: 96.95 kB / 407.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.08e-05/0.2776, allocations: 40.38 kB / 407.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000862/0.2785, allocations: 0.5645 MB / 408.1 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.2785, allocations: 0 / 408.1 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.804e-05/0.2785, allocations: 19.98 kB / 408.1 MB, free: 24.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.2786, allocations: 12 kB / 408.1 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.2797, allocations: 0.6285 MB / 408.7 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/0.2818, allocations: 1.299 MB / 410 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009088/0.2827, allocations: 0.5342 MB / 410.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004992/0.2833, allocations: 331 kB / 410.9 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.053e-05/0.2833, allocations: 12.67 kB / 410.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.2833, allocations: 47 kB / 411 MB, free: 21.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 3.096e-06/0.2834, allocations: 0 / 411 MB, free: 21.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.005656/0.289, allocations: 2.856 MB / 413.8 MB, free: 18.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.2891, allocations: 89.61 kB / 413.9 MB, free: 18.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003083/0.2894, allocations: 342.8 kB / 414.2 MB, free: 18.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.404e-05/0.2895, allocations: 41.7 kB / 414.3 MB, free: 18.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.999e-05/0.2895, allocations: 161.6 kB / 414.4 MB, free: 18.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.2897, allocations: 228.7 kB / 414.7 MB, free: 17.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.2898, allocations: 122.2 kB / 414.8 MB, free: 17.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.789e-05/0.2899, allocations: 354.8 kB / 415.1 MB, free: 17.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004927/0.2904, allocations: 293.1 kB / 415.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005188/0.291, allocations: 350.5 kB / 415.8 MB, free: 16.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008733/0.2918, allocations: 0.5226 MB / 416.3 MB, free: 16.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2919, allocations: 3.938 kB / 416.3 MB, free: 16.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001391/0.2932, allocations: 0.8851 MB / 417.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.2933, allocations: 7.938 kB / 417.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2933, allocations: 4 kB / 417.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009218/0.2942, allocations: 475.3 kB / 417.6 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.2946, allocations: 87.88 kB / 417.7 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001/0.2956, allocations: 1.075 MB / 418.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.296, allocations: 55.94 kB / 418.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.967e-05/0.2961, allocations: 28.05 kB / 418.9 MB, free: 13.5 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.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.0002026/0.2963, allocations: 181.6 kB / 419.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.848e-05/0.2964, allocations: 39.53 kB / 419.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001518/0.2965, allocations: 67.77 kB / 419.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.2966, allocations: 8 kB / 419.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.2966, allocations: 0 / 419.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.2966, allocations: 3.984 kB / 419.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002563/0.2991, allocations: 1.758 MB / 420.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.2992, allocations: 0 / 420.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/0.2995, allocations: 79.88 kB / 421 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000784/0.3003, allocations: 456.5 kB / 421.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.207e-05/0.3003, allocations: 15.98 kB / 421.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008993/0.3012, allocations: 1.045 MB / 422.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3013, allocations: 3.938 kB / 422.5 MB, free: 9.754 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01446/0.3157, allocations: 9.407 MB / 431.9 MB, free: 8 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002744/0.316, allocations: 176.6 kB / 432.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.744e-05/0.3161, allocations: 20 kB / 432.1 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000415/0.3166, allocations: 47.94 kB / 432.2 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.3168, allocations: 84.41 kB / 432.3 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.894e-05/0.3168, allocations: 31.92 kB / 432.3 MB, free: 15.64 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002786/0.3171, allocations: 246 kB / 432.5 MB, free: 15.39 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3171, allocations: 3.938 kB / 432.5 MB, free: 15.39 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007737/0.3179, allocations: 232.1 kB / 432.8 MB, free: 15.16 MB / 314.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.0003134/0.3182, allocations: 177.4 kB / 432.9 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.3197, allocations: 0.704 MB / 433.6 MB, free: 14.28 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3198, allocations: 0 / 433.6 MB, free: 14.28 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008284/0.3206, allocations: 392.1 kB / 434 MB, free: 13.9 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.3211, allocations: 56.84 kB / 434.1 MB, free: 13.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003176/0.3242, allocations: 1.84 MB / 435.9 MB, free: 11.95 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.3246, allocations: 0.8329 MB / 436.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002886/0.3249, allocations: 87.31 kB / 436.8 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.3251, allocations: 51.39 kB / 436.9 MB, free: 10.95 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.3251, allocations: 0 / 436.9 MB, free: 10.95 MB / 314.7 MB Notification: Performance of Templates: time 0.01901/0.3441, allocations: 12.99 MB / 449.9 MB, free: 13.99 MB / 330.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@2/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