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.001302/0.001307, allocations: 112.8 kB / 17.68 MB, free: 5.355 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.001488/0.001488, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.352/1.352, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 54.88 kB / 302 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09651/0.09754, allocations: 49.44 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003888/0.1015, allocations: 2.726 MB / 354.2 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001855/0.1033, allocations: 1.1 MB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001853/0.1035, allocations: 4 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.1038, allocations: 67.38 kB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005066/0.1043, allocations: 190.9 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004503/0.1048, allocations: 243.5 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006305/0.1054, allocations: 0.6469 MB / 356.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.1056, allocations: 127.4 kB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003442/0.106, allocations: 287.1 kB / 356.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003969/0.1064, allocations: 342.9 kB / 357.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.935e-05/0.1065, allocations: 56 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002452/0.1068, allocations: 139.9 kB / 357.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001971/0.107, allocations: 155.5 kB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002519/0.1072, allocations: 246.8 kB / 357.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006494/0.1079, allocations: 0.6425 MB / 358.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1079, allocations: 0 / 358.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1079, allocations: 0 / 358.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.1079, allocations: 0 / 358.4 MB, free: 12.74 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.001626/0.1095, allocations: 0.7992 MB / 359.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1096, allocations: 15.89 kB / 359.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003196/0.1099, allocations: 64.36 kB / 359.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005779/0.1105, allocations: 362.5 kB / 359.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.1106, allocations: 92.95 kB / 359.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.882e-05/0.1107, allocations: 40.38 kB / 359.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009924/0.1117, allocations: 0.5645 MB / 360.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.1118, allocations: 7.906 kB / 360.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.02e-05/0.1118, allocations: 16 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.1118, allocations: 8 kB / 360.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001284/0.1131, allocations: 0.6441 MB / 361 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002441/0.1156, allocations: 1.279 MB / 362.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.1167, allocations: 0.5459 MB / 362.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006377/0.1174, allocations: 322.4 kB / 363.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.573e-05/0.1175, allocations: 12.5 kB / 363.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.1175, allocations: 39.12 kB / 363.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.605e-06/0.1175, allocations: 4 kB / 363.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.006434/0.1239, allocations: 2.864 MB / 366.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.124, allocations: 93.55 kB / 366.2 MB, free: 4.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003859/0.1244, allocations: 335 kB / 366.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.617e-05/0.1245, allocations: 49.69 kB / 366.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.1246, allocations: 153.6 kB / 366.7 MB, free: 4.105 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001623/0.1248, allocations: 228.8 kB / 366.9 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002098/0.125, allocations: 118.2 kB / 367 MB, free: 3.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1251, allocations: 350.8 kB / 367.4 MB, free: 3.406 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005499/0.1257, allocations: 289.2 kB / 367.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005913/0.1263, allocations: 354.4 kB / 368 MB, free: 2.766 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000963/0.1273, allocations: 0.5226 MB / 368.5 MB, free: 2.234 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1273, allocations: 32 / 368.5 MB, free: 2.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001648/0.1289, allocations: 0.8928 MB / 369.4 MB, free: 1.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.129, allocations: 7.938 kB / 369.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.129, allocations: 4 kB / 369.4 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.13, allocations: 471.3 kB / 369.9 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003659/0.1304, allocations: 87.88 kB / 370 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1573/0.2877, allocations: 1.067 MB / 371 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005707/0.2883, allocations: 57.91 kB / 371.1 MB, free: 25.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-05/0.2884, allocations: 26.19 kB / 371.1 MB, free: 25.47 MB / 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.0002329/0.2886, allocations: 190.2 kB / 371.3 MB, free: 25.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.2887, allocations: 41.64 kB / 371.4 MB, free: 25.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001675/0.2889, allocations: 65.8 kB / 371.4 MB, free: 25.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.457e-06/0.2889, allocations: 7.875 kB / 371.4 MB, free: 25.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.2889, allocations: 0.8125 kB / 371.4 MB, free: 25.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.289, allocations: 4.234 kB / 371.4 MB, free: 25.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003178/0.2921, allocations: 1.757 MB / 373.2 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.2922, allocations: 1.734 kB / 373.2 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003749/0.2925, allocations: 79.11 kB / 373.3 MB, free: 24.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.2936, allocations: 453.8 kB / 373.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.498e-05/0.2936, allocations: 19.88 kB / 373.7 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/0.2947, allocations: 1.044 MB / 374.8 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.2947, allocations: 1.094 kB / 374.8 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002261/0.297, allocations: 1.299 MB / 376.1 MB, free: 23.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002335/0.2972, allocations: 182.1 kB / 376.3 MB, free: 23.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.86e-05/0.2973, allocations: 19.58 kB / 376.3 MB, free: 23.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004197/0.2977, allocations: 54.7 kB / 376.3 MB, free: 23.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.2979, allocations: 84.67 kB / 376.4 MB, free: 23.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.266e-05/0.298, allocations: 24.08 kB / 376.4 MB, free: 23.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002524/0.2982, allocations: 246.7 kB / 376.7 MB, free: 23.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2983, allocations: 0 / 376.7 MB, free: 23.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004928/0.2988, allocations: 143.6 kB / 376.8 MB, free: 23.29 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.0002388/0.299, allocations: 152.2 kB / 377 MB, free: 23.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.3004, allocations: 0.7107 MB / 377.7 MB, free: 22.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3005, allocations: 3.625 kB / 377.7 MB, free: 22.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008608/0.3013, allocations: 394.3 kB / 378.1 MB, free: 22.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.3018, allocations: 56.22 kB / 378.1 MB, free: 22.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.3043, allocations: 1.11 MB / 379.2 MB, free: 22.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.3047, allocations: 0.8157 MB / 380 MB, free: 21.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002383/0.3049, allocations: 68.81 kB / 380.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.3051, allocations: 43.22 kB / 380.2 MB, free: 21.61 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3051, allocations: 0 / 380.2 MB, free: 21.61 MB / 302.1 MB Notification: Performance of Templates: time 0.01592/0.321, allocations: 9.925 MB / 390.1 MB, free: 17.95 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/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