Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 109.4 kB / 18.34 MB, free: 4.676 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.001117/0.001117, allocations: 188.1 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.1 MB / 225.1 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 55.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0877/0.08891, allocations: 46.63 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004069/0.09301, allocations: 2.731 MB / 331.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002/0.09503, allocations: 1.124 MB / 332.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.09518, allocations: 7.938 kB / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.09543, allocations: 75.42 kB / 332.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005004/0.09594, allocations: 186.8 kB / 332.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004037/0.09635, allocations: 239.6 kB / 333.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000571/0.09693, allocations: 0.6545 MB / 333.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002453/0.09719, allocations: 123.4 kB / 333.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003409/0.09754, allocations: 291.1 kB / 334.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000409/0.09796, allocations: 338.9 kB / 334.5 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.827e-05/0.09804, allocations: 52 kB / 334.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000235/0.09828, allocations: 147.8 kB / 334.7 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.09848, allocations: 143.6 kB / 334.8 MB, free: 13.64 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000246/0.09873, allocations: 254.7 kB / 335 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00064/0.09938, allocations: 0.6386 MB / 335.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.09939, allocations: 4 kB / 335.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.0994, allocations: 4 kB / 335.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.09941, allocations: 0 / 335.7 MB, free: 12.74 MB / 286.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.001535/0.101, allocations: 0.7915 MB / 336.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.101, allocations: 15.89 kB / 336.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003328/0.1014, allocations: 64.36 kB / 336.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006025/0.102, allocations: 370.4 kB / 336.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.1021, allocations: 92.95 kB / 337 MB, free: 11.31 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.491e-05/0.1022, allocations: 40.38 kB / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.1032, allocations: 0.5606 MB / 337.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.1032, allocations: 7.969 kB / 337.6 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.803e-05/0.1033, allocations: 16 kB / 337.6 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.1033, allocations: 8 kB / 337.6 MB, free: 10.67 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.1046, allocations: 0.6401 MB / 338.3 MB, free: 10.03 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002277/0.1069, allocations: 1.287 MB / 339.6 MB, free: 8.684 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.1079, allocations: 0.5405 MB / 340.1 MB, free: 8.137 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005848/0.1085, allocations: 326.4 kB / 340.4 MB, free: 7.816 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.309e-05/0.1086, allocations: 12.48 kB / 340.4 MB, free: 7.805 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.1086, allocations: 43.12 kB / 340.5 MB, free: 7.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 1.993e-06/0.1086, allocations: 0 / 340.5 MB, free: 7.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.00655/0.1152, allocations: 2.863 MB / 343.3 MB, free: 4.766 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.335e-05/0.1153, allocations: 89.61 kB / 343.4 MB, free: 4.66 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003809/0.1156, allocations: 338.9 kB / 343.8 MB, free: 4.316 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.669e-05/0.1157, allocations: 41.7 kB / 343.8 MB, free: 4.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.1158, allocations: 157.6 kB / 344 MB, free: 4.113 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.116, allocations: 232.7 kB / 344.2 MB, free: 3.883 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.1162, allocations: 122.2 kB / 344.3 MB, free: 3.758 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1163, allocations: 354.8 kB / 344.7 MB, free: 3.402 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005703/0.1169, allocations: 289.2 kB / 344.9 MB, free: 3.121 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000642/0.1176, allocations: 350.5 kB / 345.3 MB, free: 2.766 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.1186, allocations: 0.5265 MB / 345.8 MB, free: 2.23 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1186, allocations: 0 / 345.8 MB, free: 2.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001665/0.1203, allocations: 0.8811 MB / 346.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.1203, allocations: 11.97 kB / 346.7 MB, free: 1.328 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1204, allocations: 4 kB / 346.7 MB, free: 1.324 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/0.1214, allocations: 469.6 kB / 347.2 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003673/0.1218, allocations: 91.81 kB / 347.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/0.1231, allocations: 1.075 MB / 348.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004239/0.1235, allocations: 55.94 kB / 348.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.933e-05/0.1236, allocations: 23.98 kB / 348.4 MB, free: 15.59 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.0002324/0.1238, allocations: 181.5 kB / 348.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.135e-05/0.1239, allocations: 39.53 kB / 348.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.1241, allocations: 71.83 kB / 348.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.1241, allocations: 8 kB / 348.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1241, allocations: 0 / 348.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.1241, allocations: 3.984 kB / 348.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003126/0.1273, allocations: 1.745 MB / 350.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.1273, allocations: 0 / 350.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000359/0.1277, allocations: 87.91 kB / 350.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009158/0.1286, allocations: 452.4 kB / 351 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.817e-05/0.1286, allocations: 23.98 kB / 351 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.1298, allocations: 1.04 MB / 352 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.1299, allocations: 3.984 kB / 352 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002352/0.1322, allocations: 1.31 MB / 353.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002426/0.1325, allocations: 180.6 kB / 353.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.786e-05/0.1326, allocations: 16 kB / 353.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004181/0.133, allocations: 51.94 kB / 353.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.1332, allocations: 84.42 kB / 353.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-05/0.1333, allocations: 23.98 kB / 353.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002728/0.1335, allocations: 250 kB / 353.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1335, allocations: 0 / 353.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004686/0.134, allocations: 140 kB / 354.1 MB, free: 9.766 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.0002545/0.1343, allocations: 163 kB / 354.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.1358, allocations: 0.7079 MB / 354.9 MB, free: 8.891 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1358, allocations: 0 / 354.9 MB, free: 8.891 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008027/0.1366, allocations: 396.1 kB / 355.3 MB, free: 8.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004695/0.1371, allocations: 46 kB / 355.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.1394, allocations: 1.111 MB / 356.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003684/0.1398, allocations: 0.8134 MB / 357.3 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001982/0.14, allocations: 75.27 kB / 357.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.1401, allocations: 43.41 kB / 357.4 MB, free: 6.355 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1401, allocations: 0 / 357.4 MB, free: 6.355 MB / 302.1 MB Notification: Performance of Templates: time 0.01507/0.1552, allocations: 9.939 MB / 367.4 MB, free: 12.41 MB / 318.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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