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.001445/0.001445, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.001513/0.001513, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.603/1.603, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001637/0.001637, allocations: 51.92 kB / 373.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1061, allocations: 53.33 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.005112/0.1112, allocations: 2.875 MB / 429.7 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002818/0.114, allocations: 1.283 MB / 430.9 MB, free: 124 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003138/0.1143, allocations: 8 kB / 431 MB, free: 116 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004181/0.1147, allocations: 87.22 kB / 431 MB, free: 28 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1947/0.3095, allocations: 206.9 kB / 431.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006361/0.3101, allocations: 249.6 kB / 431.5 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006921/0.3108, allocations: 0.7176 MB / 432.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.311, allocations: 79.66 kB / 432.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004386/0.3114, allocations: 333.1 kB / 432.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003787/0.3118, allocations: 394.9 kB / 433 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.631e-05/0.3119, allocations: 58.34 kB / 433 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000308/0.3122, allocations: 149.1 kB / 433.2 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.3124, allocations: 166.4 kB / 433.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002127/0.3126, allocations: 262 kB / 433.6 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007338/0.3133, allocations: 0.7283 MB / 434.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3133, allocations: 1.031 kB / 434.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3133, allocations: 0 / 434.3 MB, free: 7.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.868e-06/0.3133, allocations: 3.047 kB / 434.3 MB, free: 7.82 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.001687/0.315, allocations: 0.8507 MB / 435.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.315, allocations: 12.75 kB / 435.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004532/0.3155, allocations: 74.78 kB / 435.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005246/0.316, allocations: 371.2 kB / 435.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.3161, allocations: 97.3 kB / 435.7 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.499e-05/0.3162, allocations: 46.38 kB / 435.8 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.3174, allocations: 0.5628 MB / 436.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.3174, allocations: 0.9688 kB / 436.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.825e-05/0.3175, allocations: 20.08 kB / 436.4 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.3175, allocations: 9.344 kB / 436.4 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001441/0.3189, allocations: 0.6102 MB / 437 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.3214, allocations: 1.307 MB / 438.3 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.3227, allocations: 497.1 kB / 438.8 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007048/0.3234, allocations: 277.6 kB / 439.1 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.784e-05/0.3235, allocations: 12.77 kB / 439.1 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.3235, allocations: 43.16 kB / 439.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.334e-06/0.3235, allocations: 0 / 439.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007212/0.3307, allocations: 2.742 MB / 441.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.3308, allocations: 84.36 kB / 441.9 MB, free: 4.391 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004699/0.3313, allocations: 353.2 kB / 442.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.188e-05/0.3313, allocations: 47.33 kB / 442.3 MB, free: 4.168 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.476e-05/0.3314, allocations: 166.5 kB / 442.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.3315, allocations: 241.6 kB / 442.7 MB, free: 3.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002243/0.3318, allocations: 122.9 kB / 442.8 MB, free: 3.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.03e-05/0.3318, allocations: 358 kB / 443.2 MB, free: 3.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006281/0.3325, allocations: 266.5 kB / 443.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006647/0.3331, allocations: 327.5 kB / 443.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.3342, allocations: 498.1 kB / 444.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3342, allocations: 1.125 kB / 444.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.00185/0.3361, allocations: 0.8208 MB / 445.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.3361, allocations: 12.39 kB / 445.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.3361, allocations: 2.969 kB / 445.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.3372, allocations: 437.7 kB / 445.5 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004116/0.3377, allocations: 87.27 kB / 445.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.3388, allocations: 1.026 MB / 446.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000548/0.3394, allocations: 57.98 kB / 446.7 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.839e-05/0.3395, allocations: 25.28 kB / 446.7 MB, free: 1.773 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.0002371/0.3397, allocations: 188.6 kB / 446.9 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.3398, allocations: 46.16 kB / 446.9 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00017/0.34, allocations: 64.22 kB / 447 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.34, allocations: 7.188 kB / 447 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.34, allocations: 0 / 447 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.34, allocations: 4.547 kB / 447 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003314/0.3433, allocations: 1.697 MB / 448.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.3433, allocations: 1.938 kB / 448.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004064/0.3437, allocations: 81.3 kB / 448.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001042/0.3448, allocations: 413 kB / 449.2 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.954e-05/0.3448, allocations: 25.67 kB / 449.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.3461, allocations: 0.9854 MB / 450.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3461, allocations: 0 / 450.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00295/0.349, allocations: 1.211 MB / 451.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003326/0.3493, allocations: 189.2 kB / 451.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.3495, allocations: 19.77 kB / 451.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005196/0.35, allocations: 52.64 kB / 451.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002679/0.3502, allocations: 91.41 kB / 451.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.53e-05/0.3503, allocations: 25.86 kB / 451.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00046/0.3508, allocations: 263.5 kB / 452 MB, free: 14.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3508, allocations: 1.375 kB / 452 MB, free: 14.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006723/0.3515, allocations: 148 kB / 452.2 MB, free: 14.91 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.001486/0.3529, allocations: 409.1 kB / 452.6 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00224/0.3552, allocations: 0.6315 MB / 453.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.3552, allocations: 1.25 kB / 453.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.3562, allocations: 343.1 kB / 453.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007023/0.3569, allocations: 64.09 kB / 453.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.3599, allocations: 1.145 MB / 454.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004806/0.3604, allocations: 0.8309 MB / 455.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002916/0.3607, allocations: 81.7 kB / 455.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/0.3609, allocations: 53.75 kB / 455.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of SimCode: time 1.302e-06/0.3609, allocations: 1.469 kB / 455.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of Templates: time 0.01949/0.3804, allocations: 10.5 MB / 466.2 MB, free: 7.98 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.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: 5.045640166848898]