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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 225.6 MB / 250.8 MB, free: 13.34 MB / 206.1 MB " [Timeout remaining time 178] 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=500,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=500,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 55.92 kB / 368.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2534, allocations: 52.14 MB / 420.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004227/0.2576, allocations: 2.768 MB / 423.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002148/0.2598, allocations: 1.084 MB / 424.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/0.2599, allocations: 8 kB / 424.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002573/0.2602, allocations: 71.36 kB / 424.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006126/0.2608, allocations: 194.8 kB / 425 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004892/0.2613, allocations: 243.6 kB / 425.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007052/0.262, allocations: 0.6586 MB / 425.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.2622, allocations: 79.45 kB / 425.9 MB, free: 9.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004495/0.2627, allocations: 295.1 kB / 426.2 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004367/0.2631, allocations: 354.8 kB / 426.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.353e-05/0.2632, allocations: 52 kB / 426.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002448/0.2634, allocations: 143.8 kB / 426.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.2636, allocations: 143.6 kB / 426.9 MB, free: 9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002442/0.2638, allocations: 254.8 kB / 427.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007562/0.2646, allocations: 0.6433 MB / 427.8 MB, free: 8.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.2646, allocations: 3.984 kB / 427.8 MB, free: 8.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2646, allocations: 4 kB / 427.8 MB, free: 8.102 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.2646, allocations: 0 / 427.8 MB, free: 8.102 MB / 334.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.001742/0.2664, allocations: 0.8104 MB / 428.6 MB, free: 7.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.2664, allocations: 11.89 kB / 428.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003413/0.2667, allocations: 72.58 kB / 428.7 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006212/0.2674, allocations: 366.5 kB / 429.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001328/0.2675, allocations: 96.95 kB / 429.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.199e-05/0.2676, allocations: 40.38 kB / 429.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.2688, allocations: 0.5645 MB / 429.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.2688, allocations: 0 / 429.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.277e-05/0.2688, allocations: 16 kB / 429.8 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.2688, allocations: 15.88 kB / 429.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.2702, allocations: 0.6402 MB / 430.4 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002593/0.2728, allocations: 1.279 MB / 431.7 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.274, allocations: 0.5146 MB / 432.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006318/0.2746, allocations: 294.4 kB / 432.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.649e-05/0.2747, allocations: 12.5 kB / 432.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.416e-05/0.2747, allocations: 43.12 kB / 432.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 1.993e-06/0.2747, allocations: 0 / 432.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.007205/0.2819, allocations: 2.868 MB / 435.4 MB, free: 172 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.301e-05/0.282, allocations: 89.61 kB / 435.5 MB, free: 64 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004701/0.2825, allocations: 327 kB / 435.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.541e-05/0.2825, allocations: 45.69 kB / 435.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.2827, allocations: 161.8 kB / 436 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/0.2829, allocations: 238.1 kB / 436.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002313/0.2831, allocations: 122.3 kB / 436.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.2833, allocations: 346.8 kB / 436.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006658/0.284, allocations: 289.2 kB / 437 MB, free: 14.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006972/0.2847, allocations: 354.5 kB / 437.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.2858, allocations: 0.5265 MB / 437.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2858, allocations: 0 / 437.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001827/0.2876, allocations: 0.8657 MB / 438.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.2876, allocations: 15.97 kB / 438.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.2876, allocations: 0 / 438.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/0.2888, allocations: 471.3 kB / 439.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003913/0.2892, allocations: 83.88 kB / 439.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.2907, allocations: 1.079 MB / 440.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004626/0.2911, allocations: 59.92 kB / 440.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.55e-05/0.2912, allocations: 27.98 kB / 440.5 MB, free: 11.01 MB / 350.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.0002675/0.2915, allocations: 173.7 kB / 440.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.2916, allocations: 43.72 kB / 440.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000172/0.2918, allocations: 71.83 kB / 440.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.2918, allocations: 8 kB / 440.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.711e-05/0.2918, allocations: 0 / 440.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.2918, allocations: 3.984 kB / 440.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003528/0.2953, allocations: 1.753 MB / 442.5 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/0.2953, allocations: 4 kB / 442.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000383/0.2957, allocations: 75.92 kB / 442.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001035/0.2968, allocations: 456.9 kB / 443.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.469e-05/0.2968, allocations: 19.97 kB / 443.1 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001361/0.2982, allocations: 1.036 MB / 444.1 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.2982, allocations: 4.062 kB / 444.1 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002683/0.3009, allocations: 1.295 MB / 445.4 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003354/0.3012, allocations: 180.8 kB / 445.6 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.939e-05/0.3013, allocations: 20 kB / 445.6 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004229/0.3017, allocations: 47.94 kB / 445.7 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002397/0.302, allocations: 84.42 kB / 445.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.689e-05/0.302, allocations: 31.97 kB / 445.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003231/0.3023, allocations: 242 kB / 446 MB, free: 5.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3023, allocations: 0 / 446 MB, free: 5.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005633/0.3029, allocations: 151.9 kB / 446.2 MB, free: 5.191 MB / 350.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.0003237/0.3032, allocations: 154.4 kB / 446.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.305, allocations: 0.6689 MB / 447 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.305, allocations: 3.938 kB / 447 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000887/0.3059, allocations: 356 kB / 447.3 MB, free: 4.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000544/0.3064, allocations: 52.86 kB / 447.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/0.3093, allocations: 1.125 MB / 448.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/0.3098, allocations: 0.8212 MB / 449.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002569/0.3101, allocations: 67.33 kB / 449.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.3102, allocations: 47.41 kB / 449.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3102, allocations: 0 / 449.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of Templates: time 0.01843/0.3286, allocations: 10.48 MB / 459.9 MB, free: 7.387 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] "" 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 [Calling sys.exit(0), Time elapsed: 4.690844422206283]