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.001347/0.001347, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001468/0.001468, allocations: 205.6 kB / 23.72 MB, free: 4.391 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.487/1.487, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.002038/0.002038, allocations: 63.91 kB / 378.2 MB, free: 2.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2957, allocations: 53.42 MB / 431.6 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.005054/0.3007, allocations: 2.68 MB / 434.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002545/0.3033, allocations: 1.225 MB / 435.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.3034, allocations: 11.94 kB / 435.5 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003563/0.3038, allocations: 83.28 kB / 435.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006165/0.3044, allocations: 230.3 kB / 435.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005658/0.305, allocations: 251.5 kB / 436.1 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007688/0.3057, allocations: 0.7094 MB / 436.8 MB, free: 1.332 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.3059, allocations: 83.91 kB / 436.9 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000471/0.3064, allocations: 331.1 kB / 437.2 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004771/0.3069, allocations: 362.7 kB / 437.6 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.307, allocations: 56 kB / 437.6 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002917/0.3073, allocations: 151.9 kB / 437.8 MB, free: 368 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000214/0.3075, allocations: 167.5 kB / 437.9 MB, free: 200 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002524/0.3077, allocations: 231.1 kB / 438.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008325/0.3086, allocations: 0.73 MB / 438.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3086, allocations: 0 / 438.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3086, allocations: 0 / 438.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.3086, allocations: 0 / 438.9 MB, free: 15.24 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.001706/0.3103, allocations: 0.7777 MB / 439.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3103, allocations: 12.03 kB / 439.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004354/0.3108, allocations: 76.56 kB / 439.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007121/0.3115, allocations: 320.7 kB / 440.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.3117, allocations: 152.4 kB / 440.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.712e-05/0.3118, allocations: 44.27 kB / 440.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.3129, allocations: 0.5818 MB / 440.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.3129, allocations: 3.984 kB / 440.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.574e-05/0.313, allocations: 16 kB / 440.9 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.313, allocations: 12 kB / 440.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.3144, allocations: 0.6011 MB / 441.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.3169, allocations: 1.06 MB / 442.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.3182, allocations: 498.3 kB / 443 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006239/0.3188, allocations: 281.7 kB / 443.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.3188, allocations: 8.5 kB / 443.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.3189, allocations: 47 kB / 443.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.214e-06/0.3189, allocations: 0 / 443.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007041/0.3259, allocations: 2.422 MB / 445.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.008e-05/0.326, allocations: 89.7 kB / 445.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004576/0.3264, allocations: 329.8 kB / 446.2 MB, free: 7.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.374e-05/0.3265, allocations: 41.7 kB / 446.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.3266, allocations: 173.6 kB / 446.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/0.3268, allocations: 246 kB / 446.6 MB, free: 7.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002176/0.3271, allocations: 130.2 kB / 446.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.3272, allocations: 350.8 kB / 447.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006207/0.3279, allocations: 265.2 kB / 447.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006872/0.3285, allocations: 352.2 kB / 447.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.3297, allocations: 499.5 kB / 448.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3297, allocations: 4.031 kB / 448.2 MB, free: 5.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001867/0.3315, allocations: 0.8141 MB / 449 MB, free: 4.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3315, allocations: 11.94 kB / 449 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.3316, allocations: 0 / 449 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/0.3327, allocations: 444.4 kB / 449.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004064/0.3331, allocations: 95.8 kB / 449.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001389/0.3345, allocations: 1.018 MB / 450.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005025/0.335, allocations: 68.02 kB / 450.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.436e-05/0.3351, allocations: 23.98 kB / 450.7 MB, free: 3.156 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.0002677/0.3353, allocations: 181.7 kB / 450.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.3354, allocations: 43.75 kB / 450.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001581/0.3356, allocations: 59.75 kB / 450.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3356, allocations: 8 kB / 450.9 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3356, allocations: 3.984 kB / 450.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3356, allocations: 0 / 450.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003327/0.339, allocations: 1.509 MB / 452.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.339, allocations: 64 / 452.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003945/0.3394, allocations: 91.91 kB / 452.5 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009932/0.3403, allocations: 404.5 kB / 452.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.846e-05/0.3404, allocations: 27.97 kB / 453 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.3417, allocations: 0.9744 MB / 453.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3417, allocations: 4.062 kB / 453.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002619/0.3443, allocations: 1.204 MB / 455.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002763/0.3446, allocations: 103.7 kB / 455.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.3447, allocations: 23.94 kB / 455.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004638/0.3452, allocations: 59.97 kB / 455.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002178/0.3454, allocations: 88.48 kB / 455.4 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.802e-05/0.3454, allocations: 31.97 kB / 455.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003127/0.3458, allocations: 233.2 kB / 455.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3458, allocations: 0 / 455.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005314/0.3463, allocations: 151.9 kB / 455.8 MB, free: 13.88 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.001536/0.3478, allocations: 417.9 kB / 456.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.3494, allocations: 0.639 MB / 456.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.3494, allocations: 4 kB / 456.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008663/0.3503, allocations: 344.6 kB / 457.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005448/0.3509, allocations: 63.72 kB / 457.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.3536, allocations: 1.146 MB / 458.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/0.3538, allocations: 225.9 kB / 458.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002808/0.3541, allocations: 79.3 kB / 458.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.3543, allocations: 55.38 kB / 458.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3543, allocations: 0 / 458.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of Templates: time 0.01686/0.3711, allocations: 9.281 MB / 468.1 MB, free: 1.738 MB / 366.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.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: 4.887127257883549]