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.001743/0.001743, allocations: 81.58 kB / 20.68 MB, free: 1.027 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.00218/0.00218, allocations: 145.7 kB / 23.94 MB, free: 4.168 MB / 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.409/1.409, allocations: 173.3 MB / 200.4 MB, free: 12.86 MB / 190.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 1.172e-06/1.172e-06, allocations: 0 / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.029e-05/2.146e-05, allocations: 2.281 kB / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003065/0.003087, allocations: 2.551 MB / 321.5 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001683/0.00477, allocations: 1.067 MB / 322.5 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001508/0.004921, allocations: 8.625 kB / 322.5 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002195/0.00514, allocations: 70.73 kB / 322.6 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005358/0.005676, allocations: 206.1 kB / 322.8 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004191/0.006095, allocations: 243.5 kB / 323 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005619/0.006657, allocations: 0.6629 MB / 323.7 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.006822, allocations: 75.16 kB / 323.8 MB, free: 500 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004759/0.007298, allocations: 402.4 kB / 324.2 MB, free: 332 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003784/0.007677, allocations: 304.9 kB / 324.5 MB, free: 240 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.819e-05/0.007765, allocations: 50.88 kB / 324.5 MB, free: 240 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002374/0.008002, allocations: 139.3 kB / 324.7 MB, free: 212 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.008161, allocations: 146.9 kB / 324.8 MB, free: 124 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002027/0.008363, allocations: 180.8 kB / 325 MB, free: 36 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009122/0.009276, allocations: 0.6998 MB / 325.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.009279, allocations: 3.938 kB / 325.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.009281, allocations: 1.125 kB / 325.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.009294, allocations: 0 / 325.7 MB, free: 15.76 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.001738/0.01103, allocations: 0.7312 MB / 326.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.01106, allocations: 14.75 kB / 326.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003726/0.01144, allocations: 63.2 kB / 326.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005957/0.01203, allocations: 312.3 kB / 326.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001814/0.01221, allocations: 146.1 kB / 326.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.01232, allocations: 46.89 kB / 327 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.0135, allocations: 0.5794 MB / 327.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.525e-05/0.01353, allocations: 5.828 kB / 327.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.584e-05/0.01359, allocations: 24.02 kB / 327.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.01361, allocations: 17.75 kB / 327.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.015, allocations: 0.6288 MB / 328.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.01746, allocations: 1.045 MB / 329.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.01865, allocations: 0.5057 MB / 329.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006578/0.01931, allocations: 296.3 kB / 330.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.332e-05/0.01936, allocations: 6.938 kB / 330.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.01941, allocations: 39.12 kB / 330.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.725e-06/0.01941, allocations: 3.938 kB / 330.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=69): time 0.007228/0.02664, allocations: 2.557 MB / 332.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.522e-05/0.02671, allocations: 86.02 kB / 332.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00043/0.02714, allocations: 308.1 kB / 333.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.676e-05/0.02722, allocations: 43.2 kB / 333.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.02736, allocations: 171.4 kB / 333.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.02758, allocations: 241.5 kB / 333.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002307/0.02781, allocations: 114.4 kB / 333.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.02799, allocations: 352.4 kB / 334 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006381/0.02863, allocations: 286.5 kB / 334.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000721/0.02935, allocations: 377.7 kB / 334.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.03049, allocations: 0.5282 MB / 335.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.0305, allocations: 0 / 335.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001869/0.03236, allocations: 0.8625 MB / 336 MB, free: 10.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.03238, allocations: 6.219 kB / 336 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.03239, allocations: 5.281 kB / 336 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.03352, allocations: 476.6 kB / 336.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004019/0.03392, allocations: 86.5 kB / 336.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/0.03544, allocations: 1.083 MB / 337.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005098/0.03595, allocations: 64.02 kB / 337.7 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.425e-05/0.03602, allocations: 23.94 kB / 337.7 MB, free: 8.547 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.0002877/0.0363, allocations: 177.8 kB / 337.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.03642, allocations: 39.7 kB / 337.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/0.03659, allocations: 63.73 kB / 338 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.0366, allocations: 8.062 kB / 338 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.03661, allocations: 4 kB / 338 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.03661, allocations: 3.984 kB / 338 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003538/0.04015, allocations: 1.583 MB / 339.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.04015, allocations: 0 / 339.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004152/0.04057, allocations: 75.89 kB / 339.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.04161, allocations: 440.5 kB / 340.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.717e-05/0.04167, allocations: 27.91 kB / 340.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001422/0.04309, allocations: 1.044 MB / 341.2 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.04309, allocations: 0 / 341.2 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002755/0.04585, allocations: 1.286 MB / 342.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000265/0.04611, allocations: 107.8 kB / 342.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.04622, allocations: 23.94 kB / 342.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004766/0.0467, allocations: 47.94 kB / 342.6 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/0.04692, allocations: 88.48 kB / 342.7 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.164e-05/0.04699, allocations: 23.98 kB / 342.8 MB, free: 3.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003042/0.04729, allocations: 221.2 kB / 343 MB, free: 3.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.04729, allocations: 0 / 343 MB, free: 3.195 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005759/0.04787, allocations: 151.9 kB / 343.1 MB, free: 3.047 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.0003097/0.04818, allocations: 163.5 kB / 343.3 MB, free: 2.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.04988, allocations: 0.6702 MB / 343.9 MB, free: 2.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.04988, allocations: 0 / 343.9 MB, free: 2.203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009391/0.05082, allocations: 364.7 kB / 344.3 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005218/0.05134, allocations: 48.47 kB / 344.4 MB, free: 1.801 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002743/0.05408, allocations: 1.064 MB / 345.4 MB, free: 0.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.05432, allocations: 218 kB / 345.6 MB, free: 488 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002164/0.05453, allocations: 63.25 kB / 345.7 MB, free: 424 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001694/0.0547, allocations: 40.48 kB / 345.7 MB, free: 384 kB / 302.1 MB Notification: Performance of SimCode: time 8.11e-07/0.0547, allocations: 4 kB / 345.7 MB, free: 380 kB / 302.1 MB Notification: Performance of Templates: time 0.01637/0.07108, allocations: 8.386 MB / 354.1 MB, free: 8.055 MB / 318.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.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: 4.5030846782028675]