Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001864/0.001864, allocations: 107 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002253/0.002253, allocations: 218 kB / 23 MB, free: 5.57 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 230.2 MB / 256.2 MB, free: 8.547 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 63.88 kB / 376.5 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2826, allocations: 53.33 MB / 429.8 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004607/0.2872, allocations: 2.886 MB / 432.7 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.2898, allocations: 1.283 MB / 434 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001783/0.29, allocations: 11.94 kB / 434 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003463/0.2904, allocations: 87.28 kB / 434.1 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005811/0.291, allocations: 215.6 kB / 434.3 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006126/0.2916, allocations: 255.5 kB / 434.5 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008642/0.2924, allocations: 0.7133 MB / 435.2 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002191/0.2926, allocations: 87.44 kB / 435.3 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005645/0.2932, allocations: 327 kB / 435.6 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004997/0.2937, allocations: 390.8 kB / 436 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.2939, allocations: 60 kB / 436.1 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000291/0.2942, allocations: 147.9 kB / 436.2 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.2944, allocations: 159.6 kB / 436.4 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002888/0.2947, allocations: 278.6 kB / 436.6 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008514/0.2955, allocations: 0.7136 MB / 437.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2955, allocations: 0 / 437.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2955, allocations: 3.938 kB / 437.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.2956, allocations: 4 kB / 437.4 MB, free: 15.93 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.001767/0.2973, allocations: 0.8568 MB / 438.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.2974, allocations: 19.97 kB / 438.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004752/0.2978, allocations: 76.62 kB / 438.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006841/0.2985, allocations: 370.6 kB / 438.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002205/0.2988, allocations: 96.95 kB / 438.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.107e-05/0.2988, allocations: 40.38 kB / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.3, allocations: 0.5606 MB / 439.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.3, allocations: 7.922 kB / 439.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.986e-05/0.3001, allocations: 16 kB / 439.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.3001, allocations: 8 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.3015, allocations: 0.6089 MB / 440 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.304, allocations: 1.307 MB / 441.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.3051, allocations: 0.4962 MB / 441.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006444/0.3058, allocations: 278.4 kB / 442.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.061e-05/0.3058, allocations: 12.48 kB / 442.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.3059, allocations: 43.12 kB / 442.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 1.793e-06/0.3059, allocations: 0 / 442.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007214/0.3131, allocations: 2.731 MB / 444.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.139e-05/0.3132, allocations: 93.66 kB / 445 MB, free: 8.012 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000524/0.3137, allocations: 351.3 kB / 445.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.426e-05/0.3137, allocations: 45.7 kB / 445.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.3139, allocations: 161.8 kB / 445.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/0.3141, allocations: 246 kB / 445.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002504/0.3144, allocations: 134.2 kB / 445.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.3146, allocations: 346.8 kB / 446.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006278/0.3152, allocations: 269.2 kB / 446.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007916/0.316, allocations: 338.5 kB / 446.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.3171, allocations: 487.2 kB / 447.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3171, allocations: 4.031 kB / 447.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001869/0.3189, allocations: 0.8219 MB / 448.1 MB, free: 4.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.319, allocations: 4 kB / 448.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.319, allocations: 0 / 448.1 MB, free: 4.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/0.3201, allocations: 449.3 kB / 448.6 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003726/0.3204, allocations: 83.88 kB / 448.6 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/0.3219, allocations: 1.033 MB / 449.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004828/0.3224, allocations: 51.94 kB / 449.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.72e-05/0.3224, allocations: 23.98 kB / 449.7 MB, free: 3.133 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.00038/0.3228, allocations: 181.7 kB / 449.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.3229, allocations: 47.72 kB / 450 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.3231, allocations: 75.86 kB / 450 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.3231, allocations: 8 kB / 450.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.3231, allocations: 0 / 450.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.3231, allocations: 3.984 kB / 450.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003484/0.3266, allocations: 1.702 MB / 451.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3266, allocations: 0 / 451.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003721/0.327, allocations: 83.88 kB / 451.8 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001002/0.328, allocations: 420.5 kB / 452.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.553e-05/0.3281, allocations: 15.98 kB / 452.3 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001344/0.3294, allocations: 0.9745 MB / 453.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3294, allocations: 4.031 kB / 453.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002559/0.332, allocations: 1.201 MB / 454.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002775/0.3322, allocations: 188.7 kB / 454.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.3324, allocations: 28 kB / 454.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004444/0.3328, allocations: 51.94 kB / 454.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002242/0.333, allocations: 88.41 kB / 454.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.928e-05/0.3331, allocations: 27.97 kB / 454.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003399/0.3334, allocations: 253.9 kB / 455.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3334, allocations: 0 / 455.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005201/0.3339, allocations: 151.9 kB / 455.2 MB, free: 13.52 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.001341/0.3353, allocations: 397.2 kB / 455.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001626/0.3369, allocations: 0.6299 MB / 456.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3369, allocations: 3.938 kB / 456.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008496/0.3378, allocations: 348 kB / 456.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005272/0.3383, allocations: 68.47 kB / 456.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.3409, allocations: 1.155 MB / 457.8 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005/0.3414, allocations: 0.829 MB / 458.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002765/0.3417, allocations: 83.36 kB / 458.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.3419, allocations: 47.41 kB / 458.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3419, allocations: 0 / 458.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of Templates: time 0.01855/0.3604, allocations: 10.84 MB / 469.6 MB, free: 15.2 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.phi_support,bearingFriction.smoothness,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.smoothness,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.700794419273734]