Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002473/0.002473, allocations: 209.9 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 48.03 kB / 378.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.233, allocations: 53.37 MB / 431.6 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004488/0.2375, allocations: 2.677 MB / 434.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002272/0.2398, allocations: 1.225 MB / 435.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.2399, allocations: 11.94 kB / 435.5 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003136/0.2402, allocations: 87.27 kB / 435.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000543/0.2408, allocations: 222.8 kB / 435.8 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000531/0.2413, allocations: 259.5 kB / 436 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007456/0.242, allocations: 0.7133 MB / 436.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.2422, allocations: 83.92 kB / 436.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004782/0.2427, allocations: 335 kB / 437.2 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005601/0.2433, allocations: 354.8 kB / 437.5 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.2434, allocations: 56 kB / 437.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002987/0.2437, allocations: 147.9 kB / 437.7 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001953/0.2439, allocations: 167.5 kB / 437.9 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002348/0.2441, allocations: 231 kB / 438.1 MB, free: 312 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008441/0.245, allocations: 0.7293 MB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.245, allocations: 0 / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.245, allocations: 0 / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.245, allocations: 4 kB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001729/0.2467, allocations: 0.7739 MB / 439.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.2467, allocations: 12.03 kB / 439.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004463/0.2472, allocations: 72.62 kB / 439.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007134/0.2479, allocations: 320.7 kB / 440 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001945/0.2481, allocations: 152.4 kB / 440.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.424e-05/0.2482, allocations: 40.33 kB / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.2494, allocations: 0.5896 MB / 440.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.2494, allocations: 0 / 440.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.14e-05/0.2494, allocations: 20 kB / 440.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.2495, allocations: 12 kB / 440.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.2509, allocations: 0.5972 MB / 441.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002543/0.2534, allocations: 1.068 MB / 442.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.2546, allocations: 0.49 MB / 443 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006412/0.2553, allocations: 270.2 kB / 443.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.812e-05/0.2553, allocations: 12.5 kB / 443.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.2554, allocations: 39 kB / 443.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.144e-06/0.2554, allocations: 4 kB / 443.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007117/0.2625, allocations: 2.43 MB / 445.7 MB, free: 8.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.082e-05/0.2625, allocations: 89.7 kB / 445.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004327/0.263, allocations: 329.8 kB / 446.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.939e-05/0.263, allocations: 45.69 kB / 446.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.2632, allocations: 169.6 kB / 446.3 MB, free: 7.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002253/0.2634, allocations: 249.9 kB / 446.6 MB, free: 7.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002293/0.2636, allocations: 126.2 kB / 446.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.2638, allocations: 350.8 kB / 447 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006332/0.2644, allocations: 265.2 kB / 447.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006967/0.2651, allocations: 360.2 kB / 447.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/0.2663, allocations: 491.5 kB / 448.1 MB, free: 5.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.2663, allocations: 0 / 448.1 MB, free: 5.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001848/0.2681, allocations: 0.8181 MB / 449 MB, free: 5.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.2681, allocations: 11.94 kB / 449 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.2681, allocations: 3.984 kB / 449 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.2693, allocations: 440.3 kB / 449.4 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004141/0.2697, allocations: 95.86 kB / 449.5 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.2711, allocations: 1.015 MB / 450.5 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004829/0.2716, allocations: 63.92 kB / 450.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.118e-05/0.2717, allocations: 23.98 kB / 450.6 MB, free: 3.484 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002676/0.2719, allocations: 187.6 kB / 450.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.272, allocations: 39.77 kB / 450.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001596/0.2722, allocations: 63.73 kB / 450.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.2722, allocations: 11.94 kB / 450.9 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.2722, allocations: 0 / 450.9 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.2722, allocations: 3.984 kB / 450.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003287/0.2755, allocations: 1.501 MB / 452.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2755, allocations: 0 / 452.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003939/0.2759, allocations: 83.88 kB / 452.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009888/0.2769, allocations: 412.6 kB / 452.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.678e-05/0.277, allocations: 23.97 kB / 452.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00132/0.2783, allocations: 0.9789 MB / 453.9 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.2783, allocations: 4.062 kB / 453.9 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002649/0.2809, allocations: 1.212 MB / 455.1 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003071/0.2813, allocations: 103.7 kB / 455.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.2814, allocations: 23.98 kB / 455.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004564/0.2818, allocations: 47.94 kB / 455.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.282, allocations: 88.48 kB / 455.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.197e-05/0.2821, allocations: 27.97 kB / 455.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003264/0.2824, allocations: 241.2 kB / 455.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2824, allocations: 0 / 455.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005765/0.283, allocations: 147.9 kB / 455.8 MB, free: 14.21 MB / 366.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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001525/0.2845, allocations: 428.8 kB / 456.2 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.2862, allocations: 0.6312 MB / 456.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.2862, allocations: 0 / 456.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008852/0.2871, allocations: 348.6 kB / 457.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005467/0.2876, allocations: 74.28 kB / 457.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002863/0.2905, allocations: 1.139 MB / 458.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.2907, allocations: 222 kB / 458.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002876/0.291, allocations: 71.31 kB / 458.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001794/0.2912, allocations: 59.39 kB / 458.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2912, allocations: 0 / 458.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of Templates: time 0.01751/0.3087, allocations: 9.302 MB / 468 MB, free: 2.098 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.continuous,DriveSine.f,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,bearingFriction.smoothness,bearingFriction.startBackward,bearingFriction.startForward,bearingFriction.tau_pos[1,1],bearingFriction.tau_pos[1,2],bearingFriction.tau_pos[2,1],bearingFriction.tau_pos[2,2],bearingFriction.w_small,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.ratio,gear.smoothness,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time [Calling sys.exit(0), Time elapsed: 4.8613903522491455]