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.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.001965/0.001965, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.002065/0.002065, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] 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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 55.88 kB / 347.7 MB, free: 9.387 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3531, allocations: 49.16 MB / 396.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004517/0.3576, allocations: 2.553 MB / 399.4 MB, free: 7.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002708/0.3603, allocations: 1.09 MB / 400.5 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000246/0.3605, allocations: 8.594 kB / 400.5 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002811/0.3608, allocations: 75.31 kB / 400.6 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007371/0.3616, allocations: 198.6 kB / 400.8 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006511/0.3622, allocations: 242.5 kB / 401 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000812/0.363, allocations: 0.6489 MB / 401.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002261/0.3633, allocations: 89.5 kB / 401.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005378/0.3638, allocations: 300.3 kB / 402 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004792/0.3643, allocations: 322 kB / 402.3 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.3644, allocations: 52.16 kB / 402.4 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002939/0.3647, allocations: 132.7 kB / 402.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001858/0.3649, allocations: 152.4 kB / 402.7 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002254/0.3651, allocations: 207.8 kB / 402.9 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008913/0.366, allocations: 0.6521 MB / 403.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.366, allocations: 0 / 403.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.366, allocations: 0 / 403.5 MB, free: 5.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.366, allocations: 4 kB / 403.5 MB, free: 5.625 MB / 318.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.001802/0.3678, allocations: 0.7311 MB / 404.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/0.3678, allocations: 10.7 kB / 404.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004905/0.3683, allocations: 67.69 kB / 404.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000792/0.3691, allocations: 312.6 kB / 404.6 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001521/0.3693, allocations: 150.8 kB / 404.8 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.951e-05/0.3694, allocations: 43.84 kB / 404.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.3708, allocations: 0.5894 MB / 405.4 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.846e-05/0.3708, allocations: 6.406 kB / 405.4 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.722e-05/0.3708, allocations: 16.16 kB / 405.4 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.836e-05/0.3709, allocations: 9.406 kB / 405.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.3724, allocations: 0.6235 MB / 406.1 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00267/0.3751, allocations: 1.061 MB / 407.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.3763, allocations: 0.5066 MB / 407.6 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006353/0.3769, allocations: 305.1 kB / 407.9 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.624e-05/0.377, allocations: 11.72 kB / 408 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.377, allocations: 41.56 kB / 408 MB, free: 3.371 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.034e-06/0.377, allocations: 0 / 408 MB, free: 3.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.007208/0.3842, allocations: 2.554 MB / 410.5 MB, free: 2.016 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.3842, allocations: 88.34 kB / 410.6 MB, free: 1.918 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004384/0.3847, allocations: 309 kB / 410.9 MB, free: 1.723 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.094e-05/0.3847, allocations: 47.16 kB / 411 MB, free: 1.676 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.3849, allocations: 164.1 kB / 411.1 MB, free: 1.523 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.385, allocations: 236.5 kB / 411.4 MB, free: 1.316 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/0.3852, allocations: 124.3 kB / 411.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.599e-05/0.3853, allocations: 347.2 kB / 411.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005743/0.3859, allocations: 287.5 kB / 412.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006681/0.3866, allocations: 380.5 kB / 412.5 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.3877, allocations: 0.5238 MB / 413 MB, free: 312 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3877, allocations: 1.5 kB / 413 MB, free: 312 kB / 318.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001832/0.3895, allocations: 0.8666 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.3895, allocations: 4.719 kB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.3895, allocations: 1.156 kB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.3908, allocations: 479.9 kB / 414.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003965/0.3912, allocations: 80.81 kB / 414.4 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001544/0.3928, allocations: 1.076 MB / 415.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005032/0.3933, allocations: 64.83 kB / 415.6 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.355e-05/0.3933, allocations: 21 kB / 415.6 MB, free: 14.82 MB / 334.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.0003416/0.3937, allocations: 177.2 kB / 415.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.3938, allocations: 38.7 kB / 415.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001732/0.394, allocations: 70.52 kB / 415.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.896e-06/0.394, allocations: 6.844 kB / 415.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.394, allocations: 5.375 kB / 415.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.515e-06/0.394, allocations: 7.922 kB / 415.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003614/0.3976, allocations: 1.571 MB / 417.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3976, allocations: 1.5 kB / 417.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00038/0.398, allocations: 72.23 kB / 417.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001081/0.3991, allocations: 446.4 kB / 418 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.888e-05/0.3991, allocations: 28.66 kB / 418 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001437/0.4006, allocations: 1.049 MB / 419 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4006, allocations: 0 / 419 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00266/0.4032, allocations: 1.295 MB / 420.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002936/0.4035, allocations: 95.7 kB / 420.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.4036, allocations: 20 kB / 420.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004351/0.4041, allocations: 47.94 kB / 420.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/0.4043, allocations: 92.42 kB / 420.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.173e-05/0.4043, allocations: 27.97 kB / 420.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002978/0.4046, allocations: 225.2 kB / 420.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4046, allocations: 4 kB / 420.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006922/0.4053, allocations: 147.9 kB / 421 MB, free: 10.62 MB / 334.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.0002969/0.4056, allocations: 143.1 kB / 421.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001672/0.4073, allocations: 0.6702 MB / 421.8 MB, free: 9.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4073, allocations: 4.062 kB / 421.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008508/0.4081, allocations: 364.6 kB / 422.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005213/0.4087, allocations: 52.41 kB / 422.2 MB, free: 9.398 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002888/0.4116, allocations: 1.115 MB / 423.3 MB, free: 8.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.4118, allocations: 221.8 kB / 423.5 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002426/0.4121, allocations: 67.25 kB / 423.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.4122, allocations: 43.41 kB / 423.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4122, allocations: 0 / 423.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of Templates: time 0.01721/0.4294, allocations: 8.824 MB / 432.5 MB, free: 15.06 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.peak,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.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: 5.166033711284399]