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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007571/0.0007571, allocations: 89.67 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009094/0.0009094, allocations: 182.5 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.3 MB / 241.6 MB, free: 108 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.0002659, allocations: 8.688 kB / 301.4 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09337/0.09365, allocations: 50.41 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002544/0.09623, allocations: 2.398 MB / 354.2 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.0979, allocations: 1.084 MB / 355.3 MB, free: 204 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.09803, allocations: 7.938 kB / 355.3 MB, free: 196 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001915/0.09824, allocations: 55.67 kB / 355.4 MB, free: 140 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000452/0.0987, allocations: 159.2 kB / 355.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.09908, allocations: 214.9 kB / 355.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004951/0.09959, allocations: 0.6157 MB / 356.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.09979, allocations: 108 kB / 356.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003017/0.1001, allocations: 271 kB / 356.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003524/0.1005, allocations: 307 kB / 357 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.058e-05/0.1005, allocations: 28 kB / 357 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002041/0.1007, allocations: 111.9 kB / 357.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.1009, allocations: 119.6 kB / 357.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.1011, allocations: 244.5 kB / 357.5 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000568/0.1017, allocations: 0.6036 MB / 358.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1017, allocations: 3.984 kB / 358.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1017, allocations: 4 kB / 358.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1017, allocations: 4 kB / 358.1 MB, free: 13.36 MB / 302.1 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.001392/0.1031, allocations: 0.7176 MB / 358.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.1032, allocations: 12.03 kB / 358.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003156/0.1035, allocations: 64.36 kB / 358.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004767/0.104, allocations: 362.5 kB / 359.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.1041, allocations: 92.95 kB / 359.4 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.832e-05/0.1042, allocations: 44.38 kB / 359.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.1053, allocations: 0.5645 MB / 360 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.1053, allocations: 3.906 kB / 360 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.706e-05/0.1054, allocations: 16 kB / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.1054, allocations: 8 kB / 360 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.1068, allocations: 0.6558 MB / 360.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002444/0.1092, allocations: 1.322 MB / 362 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.1103, allocations: 0.5532 MB / 362.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006229/0.111, allocations: 334.3 kB / 362.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.328e-05/0.111, allocations: 12.48 kB / 362.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.1111, allocations: 39.12 kB / 362.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.364e-06/0.1111, allocations: 3.938 kB / 362.9 MB, free: 8.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.006912/0.118, allocations: 2.973 MB / 365.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.1181, allocations: 93.55 kB / 366 MB, free: 5.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003958/0.1185, allocations: 334.9 kB / 366.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.096e-05/0.1186, allocations: 41.7 kB / 366.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.1187, allocations: 161.6 kB / 366.5 MB, free: 4.637 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.1189, allocations: 228.7 kB / 366.7 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.398e-05/0.119, allocations: 61.69 kB / 366.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1191, allocations: 350.8 kB / 367.1 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005988/0.1197, allocations: 301.2 kB / 367.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006417/0.1204, allocations: 350.5 kB / 367.8 MB, free: 3.344 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.1214, allocations: 0.5421 MB / 368.3 MB, free: 2.793 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1215, allocations: 0 / 368.3 MB, free: 2.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001786/0.1233, allocations: 0.8968 MB / 369.2 MB, free: 1.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.1233, allocations: 7.938 kB / 369.2 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.1233, allocations: 4 kB / 369.2 MB, free: 1.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.1244, allocations: 479.3 kB / 369.7 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000374/0.1248, allocations: 87.88 kB / 369.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.1261, allocations: 1.083 MB / 370.9 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005221/0.1266, allocations: 80 kB / 370.9 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.632e-05/0.1267, allocations: 23.98 kB / 371 MB, free: 112 kB / 302.1 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.1625/0.2892, allocations: 184.7 kB / 371.1 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.2893, allocations: 41.69 kB / 371.2 MB, free: 25.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002293/0.2895, allocations: 63.22 kB / 371.2 MB, free: 25.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.2896, allocations: 7.094 kB / 371.2 MB, free: 25.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.2896, allocations: 0.5625 kB / 371.2 MB, free: 25.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.2896, allocations: 4.438 kB / 371.2 MB, free: 25.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003497/0.2931, allocations: 1.787 MB / 373 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-06/0.2931, allocations: 2 kB / 373 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.2935, allocations: 80.73 kB / 373.1 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/0.2945, allocations: 450.9 kB / 373.6 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.602e-05/0.2946, allocations: 21.27 kB / 373.6 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001262/0.2959, allocations: 1.036 MB / 374.6 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.2959, allocations: 9.219 kB / 374.6 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002395/0.2983, allocations: 1.317 MB / 375.9 MB, free: 23.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002292/0.2985, allocations: 182.3 kB / 376.1 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.453e-05/0.2986, allocations: 23.2 kB / 376.1 MB, free: 23.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004807/0.2991, allocations: 75.12 kB / 376.2 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.2993, allocations: 83.3 kB / 376.3 MB, free: 23.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.154e-05/0.2994, allocations: 27.14 kB / 376.3 MB, free: 23.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000288/0.2997, allocations: 242.8 kB / 376.6 MB, free: 23.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2997, allocations: 0 / 376.6 MB, free: 23.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005248/0.3002, allocations: 148.8 kB / 376.7 MB, free: 23.52 MB / 302.1 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.0002485/0.3005, allocations: 154.4 kB / 376.9 MB, free: 23.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.3021, allocations: 0.7278 MB / 377.6 MB, free: 23.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3021, allocations: 0 / 377.6 MB, free: 23.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008567/0.303, allocations: 390.9 kB / 378 MB, free: 23.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005025/0.3035, allocations: 62.98 kB / 378 MB, free: 23.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/0.3062, allocations: 1.41 MB / 379.4 MB, free: 22.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.3065, allocations: 0.817 MB / 380.3 MB, free: 21.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.3068, allocations: 62.83 kB / 380.3 MB, free: 21.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.3069, allocations: 39.91 kB / 380.4 MB, free: 21.6 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3069, allocations: 5.406 kB / 380.4 MB, free: 21.59 MB / 302.1 MB Notification: Performance of Templates: time 0.01523/0.3221, allocations: 9.202 MB / 389.6 MB, free: 18.24 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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