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.002047/0.002047, allocations: 89.14 kB / 20.68 MB, free: 1.02 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.002205/0.002205, allocations: 158.8 kB / 23.95 MB, free: 4.152 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: 177 MB / 204.1 MB, free: 9.156 MB / 190.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 1.844e-06/1.844e-06, allocations: 0 / 325 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.58e-05/2.764e-05, allocations: 4.812 kB / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004262/0.004289, allocations: 2.689 MB / 327.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00258/0.006869, allocations: 1.235 MB / 328.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001909/0.00706, allocations: 9.469 kB / 328.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003378/0.007398, allocations: 87.64 kB / 329 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006512/0.008049, allocations: 234 kB / 329.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006845/0.008733, allocations: 262.6 kB / 329.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008478/0.009581, allocations: 0.7251 MB / 330.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.009788, allocations: 80.08 kB / 330.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000663/0.01045, allocations: 443.9 kB / 330.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000466/0.01092, allocations: 328.8 kB / 331.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.01103, allocations: 58.91 kB / 331.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003126/0.01134, allocations: 148.4 kB / 331.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002248/0.01157, allocations: 166.4 kB / 331.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002529/0.01182, allocations: 198.1 kB / 331.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009686/0.01279, allocations: 0.7821 MB / 332.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.01279, allocations: 0 / 332.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01279, allocations: 1.094 kB / 332.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.01281, allocations: 0 / 332.4 MB, free: 11.85 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001796/0.0146, allocations: 0.7654 MB / 333.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.01464, allocations: 14.16 kB / 333.2 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004763/0.01511, allocations: 80.78 kB / 333.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006665/0.01578, allocations: 316.4 kB / 333.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000195/0.01597, allocations: 156.1 kB / 333.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.635e-05/0.01607, allocations: 42.7 kB / 333.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.01729, allocations: 0.5802 MB / 334.3 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.01731, allocations: 5.438 kB / 334.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.848e-05/0.01738, allocations: 24.25 kB / 334.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.01739, allocations: 9.188 kB / 334.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.01881, allocations: 0.5967 MB / 335 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00255/0.02136, allocations: 1.057 MB / 336 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001276/0.02263, allocations: 0.4941 MB / 336.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006598/0.02329, allocations: 271.6 kB / 336.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.299e-05/0.02335, allocations: 15.55 kB / 336.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.268e-05/0.0234, allocations: 37.59 kB / 336.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.294e-06/0.0234, allocations: 0 / 336.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.007632/0.03103, allocations: 2.439 MB / 339.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.997e-05/0.0311, allocations: 85.77 kB / 339.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000482/0.03159, allocations: 325.8 kB / 339.7 MB, free: 6.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.756e-05/0.03166, allocations: 45.7 kB / 339.7 MB, free: 6.086 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.03182, allocations: 169.6 kB / 339.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002216/0.03204, allocations: 246 kB / 340.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000244/0.03228, allocations: 130.2 kB / 340.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.03246, allocations: 350.7 kB / 340.6 MB, free: 5.188 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006562/0.03312, allocations: 269.2 kB / 340.9 MB, free: 4.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007272/0.03385, allocations: 360.1 kB / 341.2 MB, free: 4.555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.03502, allocations: 495.6 kB / 341.7 MB, free: 4.066 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.03503, allocations: 4 kB / 341.7 MB, free: 4.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001976/0.03701, allocations: 0.8141 MB / 342.5 MB, free: 3.234 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.03703, allocations: 7.984 kB / 342.5 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.457e-06/0.03704, allocations: 4 kB / 342.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/0.03822, allocations: 441 kB / 343 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004202/0.03864, allocations: 87.88 kB / 343.1 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/0.04009, allocations: 1.019 MB / 344.1 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005374/0.04062, allocations: 59.92 kB / 344.1 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-05/0.0407, allocations: 32.05 kB / 344.2 MB, free: 1.57 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002929/0.04099, allocations: 185.7 kB / 344.3 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.04111, allocations: 43.7 kB / 344.4 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001754/0.04129, allocations: 59.73 kB / 344.4 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.0413, allocations: 8 kB / 344.5 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.0413, allocations: 0 / 344.5 MB, free: 1.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.04131, allocations: 3.984 kB / 344.5 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003513/0.04482, allocations: 1.501 MB / 346 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.04483, allocations: 4 kB / 346 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004095/0.04524, allocations: 79.88 kB / 346 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001052/0.04629, allocations: 416.6 kB / 346.4 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-05/0.04635, allocations: 23.97 kB / 346.5 MB, free: 15.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001377/0.04773, allocations: 0.9751 MB / 347.4 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.04773, allocations: 4.031 kB / 347.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002755/0.05049, allocations: 1.2 MB / 348.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002703/0.05076, allocations: 115.6 kB / 348.8 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.05087, allocations: 16 kB / 348.8 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004936/0.05136, allocations: 56 kB / 348.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002591/0.05162, allocations: 96.47 kB / 348.9 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.894e-05/0.05168, allocations: 19.98 kB / 348.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003426/0.05203, allocations: 241.1 kB / 349.2 MB, free: 12.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.05203, allocations: 0 / 349.2 MB, free: 12.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005747/0.0526, allocations: 143.9 kB / 349.3 MB, free: 12.29 MB / 318.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.001591/0.05419, allocations: 416.6 kB / 349.7 MB, free: 12 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.05594, allocations: 0.6273 MB / 350.4 MB, free: 11.38 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.05594, allocations: 0 / 350.4 MB, free: 11.38 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009148/0.05685, allocations: 348.7 kB / 350.7 MB, free: 11.03 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005616/0.05742, allocations: 68.22 kB / 350.8 MB, free: 10.97 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002828/0.06024, allocations: 1.088 MB / 351.9 MB, free: 9.855 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.06048, allocations: 229.9 kB / 352.1 MB, free: 9.609 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002579/0.06074, allocations: 67.33 kB / 352.1 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001875/0.06093, allocations: 56.45 kB / 352.2 MB, free: 9.48 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.06093, allocations: 0 / 352.2 MB, free: 9.48 MB / 318.1 MB Notification: Performance of Templates: time 0.0167/0.07763, allocations: 8.86 MB / 361.1 MB, free: 0.668 MB / 318.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.713151760399342]