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.001744/0.001744, allocations: 107 kB / 21.18 MB, free: 0.6445 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.002274/0.002274, allocations: 209.2 kB / 24.48 MB, free: 3.938 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 2.29/2.29, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 177] 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.002436/0.002436, allocations: 47.92 kB / 379 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3361, allocations: 53.36 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.007454/0.3435, allocations: 2.692 MB / 435 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004125/0.3477, allocations: 1.221 MB / 436.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003433/0.348, allocations: 7.938 kB / 436.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005413/0.3485, allocations: 91.27 kB / 436.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001045/0.3496, allocations: 222.4 kB / 436.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009956/0.3506, allocations: 259.5 kB / 436.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001316/0.3519, allocations: 0.7055 MB / 437.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003187/0.3522, allocations: 98.84 kB / 437.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008078/0.353, allocations: 339 kB / 437.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008154/0.3538, allocations: 382.8 kB / 438.3 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001637/0.354, allocations: 60 kB / 438.4 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005034/0.3545, allocations: 151.9 kB / 438.5 MB, free: 500 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003522/0.3549, allocations: 167.5 kB / 438.7 MB, free: 332 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003826/0.3552, allocations: 235 kB / 438.9 MB, free: 96 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001415/0.3567, allocations: 0.7236 MB / 439.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.317e-06/0.3567, allocations: 4 kB / 439.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3567, allocations: 0 / 439.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.3567, allocations: 0 / 439.6 MB, free: 15.37 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.002577/0.3593, allocations: 0.7816 MB / 440.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/0.3593, allocations: 8.031 kB / 440.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000691/0.36, allocations: 76.62 kB / 440.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009124/0.3609, allocations: 312.7 kB / 440.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/0.3612, allocations: 152.4 kB / 440.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/0.3613, allocations: 52.31 kB / 441 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001581/0.3629, allocations: 0.5818 MB / 441.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.3629, allocations: 3.984 kB / 441.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.018e-05/0.363, allocations: 16 kB / 441.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.363, allocations: 8 kB / 441.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002012/0.365, allocations: 0.605 MB / 442.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003239/0.3683, allocations: 1.06 MB / 443.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.3696, allocations: 493.8 kB / 443.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006479/0.3703, allocations: 278.2 kB / 444 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.574e-05/0.3703, allocations: 4.5 kB / 444 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.3704, allocations: 47 kB / 444.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.605e-06/0.3704, allocations: 0 / 444.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007099/0.3775, allocations: 2.43 MB / 446.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.698e-05/0.3775, allocations: 89.7 kB / 446.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005798/0.3781, allocations: 325.8 kB / 446.9 MB, free: 7.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.023e-05/0.3782, allocations: 49.69 kB / 447 MB, free: 7.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.3784, allocations: 169.6 kB / 447.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002673/0.3786, allocations: 242 kB / 447.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002918/0.3789, allocations: 130.2 kB / 447.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.3791, allocations: 346.8 kB / 447.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008299/0.38, allocations: 269.1 kB / 448.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009095/0.3809, allocations: 360.2 kB / 448.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.3823, allocations: 499.5 kB / 448.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.3823, allocations: 0 / 448.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002951/0.3853, allocations: 0.8181 MB / 449.8 MB, free: 4.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.185e-05/0.3853, allocations: 7.938 kB / 449.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.3853, allocations: 4 kB / 449.8 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001743/0.3871, allocations: 444.4 kB / 450.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006283/0.3877, allocations: 83.81 kB / 450.3 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.3898, allocations: 1.023 MB / 451.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007747/0.3906, allocations: 59.98 kB / 451.4 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.3907, allocations: 31.98 kB / 451.4 MB, free: 3.285 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.0004333/0.3911, allocations: 177.7 kB / 451.6 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/0.3913, allocations: 43.75 kB / 451.6 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002055/0.3915, allocations: 67.73 kB / 451.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.3915, allocations: 4 kB / 451.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.3915, allocations: 0 / 451.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.3916, allocations: 11.98 kB / 451.7 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005124/0.3967, allocations: 1.497 MB / 453.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.3967, allocations: 4 kB / 453.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005963/0.3973, allocations: 83.91 kB / 453.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001588/0.3989, allocations: 416.5 kB / 453.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.399, allocations: 15.98 kB / 453.7 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.401, allocations: 0.9798 MB / 454.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.401, allocations: 8 kB / 454.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00405/0.405, allocations: 1.208 MB / 455.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00044/0.4054, allocations: 107.6 kB / 456 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.4056, allocations: 16 kB / 456 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007822/0.4064, allocations: 56 kB / 456.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003641/0.4068, allocations: 96.47 kB / 456.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.895e-05/0.4069, allocations: 23.98 kB / 456.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005163/0.4074, allocations: 237.2 kB / 456.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4074, allocations: 0 / 456.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009525/0.4083, allocations: 143.9 kB / 456.6 MB, free: 14.01 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.002285/0.4106, allocations: 427.8 kB / 457 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003126/0.4137, allocations: 0.6389 MB / 457.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.4137, allocations: 0 / 457.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.4153, allocations: 348.6 kB / 458 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009801/0.4163, allocations: 65.95 kB / 458 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004923/0.4212, allocations: 1.146 MB / 459.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.4216, allocations: 221.9 kB / 459.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005499/0.4222, allocations: 79.3 kB / 459.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.4225, allocations: 47.41 kB / 459.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4225, allocations: 0 / 459.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of Templates: time 0.03002/0.4525, allocations: 9.455 MB / 469 MB, free: 1.738 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/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: 7.6828551329963375]