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.001586/0.001586, allocations: 109.7 kB / 16.63 MB, free: 6.332 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.001785/0.001785, allocations: 189.9 kB / 17.55 MB, free: 5.801 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.389/1.389, allocations: 222.9 MB / 241.2 MB, free: 15.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.001061, allocations: 49.8 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08921/0.09029, allocations: 49.45 MB / 349.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004326/0.09466, allocations: 2.761 MB / 352.3 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.09686, allocations: 1.092 MB / 353.4 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003105/0.09719, allocations: 7.938 kB / 353.4 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000288/0.09749, allocations: 51.69 kB / 353.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006339/0.09818, allocations: 167.1 kB / 353.6 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/0.09866, allocations: 223.7 kB / 353.9 MB, free: 436 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007112/0.09939, allocations: 0.643 MB / 354.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.09963, allocations: 119.4 kB / 354.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000432/0.1001, allocations: 299 kB / 354.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004552/0.1005, allocations: 338.9 kB / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.1007, allocations: 52 kB / 355.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002365/0.1009, allocations: 131.9 kB / 355.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001635/0.1011, allocations: 147.6 kB / 355.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002338/0.1013, allocations: 246.8 kB / 355.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006301/0.102, allocations: 0.6466 MB / 356.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.102, allocations: 0 / 356.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.102, allocations: 4 kB / 356.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.102, allocations: 0 / 356.5 MB, free: 13.82 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.001502/0.1035, allocations: 0.7993 MB / 357.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.1035, allocations: 11.89 kB / 357.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003446/0.1039, allocations: 68.36 kB / 357.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000451/0.1043, allocations: 350.5 kB / 357.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/0.1045, allocations: 96.89 kB / 357.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.433e-05/0.1046, allocations: 44.38 kB / 357.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.1056, allocations: 0.5606 MB / 358.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.1057, allocations: 7.906 kB / 358.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.246e-05/0.1058, allocations: 15.98 kB / 358.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1058, allocations: 12 kB / 358.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.1071, allocations: 0.6363 MB / 359 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002355/0.1095, allocations: 1.287 MB / 360.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.1106, allocations: 0.5443 MB / 360.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006214/0.1112, allocations: 330 kB / 361.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.257e-05/0.1113, allocations: 8.5 kB / 361.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.1113, allocations: 39.12 kB / 361.2 MB, free: 8.836 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 1.633e-06/0.1114, allocations: 3.938 kB / 361.3 MB, free: 8.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.006916/0.1183, allocations: 2.875 MB / 364.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.1184, allocations: 89.61 kB / 364.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004085/0.1188, allocations: 338.9 kB / 364.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.095e-05/0.1189, allocations: 45.64 kB / 364.6 MB, free: 5.336 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.119, allocations: 153.6 kB / 364.7 MB, free: 5.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.1192, allocations: 228.8 kB / 365 MB, free: 4.957 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.1194, allocations: 122.2 kB / 365.1 MB, free: 4.832 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1195, allocations: 350.8 kB / 365.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006107/0.1201, allocations: 289.2 kB / 365.7 MB, free: 4.199 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006387/0.1208, allocations: 354.5 kB / 366.1 MB, free: 3.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.1219, allocations: 0.5226 MB / 366.6 MB, free: 3.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1219, allocations: 8.031 kB / 366.6 MB, free: 3.301 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001744/0.1237, allocations: 0.8733 MB / 367.5 MB, free: 2.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1237, allocations: 11.94 kB / 367.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1237, allocations: 0 / 367.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.1248, allocations: 475.3 kB / 367.9 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000384/0.1252, allocations: 83.88 kB / 368 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.1266, allocations: 1.075 MB / 369.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004797/0.1271, allocations: 59.98 kB / 369.1 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.456e-05/0.1272, allocations: 23.98 kB / 369.2 MB, free: 0.6758 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.0002515/0.1274, allocations: 189.6 kB / 369.4 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.1275, allocations: 39.53 kB / 369.4 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001594/0.1277, allocations: 67.77 kB / 369.5 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.1277, allocations: 8 kB / 369.5 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1277, allocations: 0 / 369.5 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.1277, allocations: 3.984 kB / 369.5 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1411/0.2689, allocations: 1.757 MB / 371.2 MB, free: 26.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.2689, allocations: 1.812 kB / 371.2 MB, free: 26.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003707/0.2693, allocations: 78.66 kB / 371.3 MB, free: 26.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009426/0.2702, allocations: 447.6 kB / 371.7 MB, free: 26.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.328e-05/0.2703, allocations: 23.67 kB / 371.8 MB, free: 26.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001248/0.2715, allocations: 1.038 MB / 372.8 MB, free: 25.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/0.2716, allocations: 9.406 kB / 372.8 MB, free: 25.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002585/0.2741, allocations: 1.294 MB / 374.1 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002119/0.2744, allocations: 184.4 kB / 374.3 MB, free: 24.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.248e-05/0.2745, allocations: 19.44 kB / 374.3 MB, free: 24.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004343/0.2749, allocations: 57.67 kB / 374.4 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002012/0.2751, allocations: 84.58 kB / 374.4 MB, free: 24.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.084e-05/0.2752, allocations: 24.03 kB / 374.5 MB, free: 24.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002777/0.2755, allocations: 245.8 kB / 374.7 MB, free: 24.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2755, allocations: 3.938 kB / 374.7 MB, free: 24.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004841/0.276, allocations: 145 kB / 374.9 MB, free: 24.57 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.000218/0.2762, allocations: 155.6 kB / 375 MB, free: 24.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001601/0.2778, allocations: 0.7449 MB / 375.8 MB, free: 24.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2778, allocations: 1.031 kB / 375.8 MB, free: 24.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008068/0.2786, allocations: 389.8 kB / 376.1 MB, free: 24.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004847/0.2791, allocations: 63.05 kB / 376.2 MB, free: 24.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.2814, allocations: 1.278 MB / 377.5 MB, free: 23.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.2817, allocations: 0.8198 MB / 378.3 MB, free: 22.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000235/0.2819, allocations: 58.2 kB / 378.4 MB, free: 22.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.2821, allocations: 44.88 kB / 378.4 MB, free: 22.71 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2821, allocations: 4 kB / 378.4 MB, free: 22.7 MB / 302.1 MB Notification: Performance of Templates: time 0.01428/0.2963, allocations: 9.876 MB / 388.3 MB, free: 19.18 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