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.001601/0.001601, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00187/0.00187, allocations: 203.3 kB / 23.73 MB, free: 4.379 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.482/1.482, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001705/0.001705, allocations: 47.94 kB / 378.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2768, allocations: 53.36 MB / 431.6 MB, free: 6.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004402/0.2812, allocations: 2.688 MB / 434.3 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.2837, allocations: 1.217 MB / 435.5 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000168/0.2838, allocations: 11.88 kB / 435.5 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003301/0.2842, allocations: 91.27 kB / 435.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005912/0.2848, allocations: 224.2 kB / 435.8 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000558/0.2853, allocations: 255.6 kB / 436 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007793/0.2861, allocations: 0.7094 MB / 436.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002207/0.2863, allocations: 95.89 kB / 436.8 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004835/0.2868, allocations: 331.1 kB / 437.2 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005262/0.2873, allocations: 386.8 kB / 437.5 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.628e-05/0.2874, allocations: 60 kB / 437.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002797/0.2877, allocations: 144 kB / 437.7 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.2879, allocations: 171.5 kB / 437.9 MB, free: 388 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002557/0.2882, allocations: 231 kB / 438.1 MB, free: 156 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000854/0.289, allocations: 0.73 MB / 438.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.289, allocations: 8 kB / 438.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.289, allocations: 0 / 438.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.289, allocations: 0 / 438.9 MB, free: 15.42 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.001798/0.2908, allocations: 0.7777 MB / 439.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.2909, allocations: 8.031 kB / 439.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000464/0.2913, allocations: 72.62 kB / 439.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006948/0.292, allocations: 316.7 kB / 440 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001921/0.2922, allocations: 152.4 kB / 440.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.2923, allocations: 52.31 kB / 440.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.2935, allocations: 0.5817 MB / 440.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.2936, allocations: 7.938 kB / 440.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.177e-05/0.2936, allocations: 16 kB / 440.8 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.2936, allocations: 11.98 kB / 440.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.2951, allocations: 0.605 MB / 441.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002514/0.2976, allocations: 1.052 MB / 442.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.2988, allocations: 489.7 kB / 443 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006615/0.2995, allocations: 286.3 kB / 443.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.431e-05/0.2995, allocations: 4.5 kB / 443.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.2996, allocations: 43 kB / 443.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.074e-06/0.2996, allocations: 0 / 443.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007245/0.3068, allocations: 2.442 MB / 445.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.581e-05/0.3069, allocations: 89.7 kB / 445.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004675/0.3073, allocations: 325.8 kB / 446.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.003e-05/0.3074, allocations: 45.69 kB / 446.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.3076, allocations: 169.6 kB / 446.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002171/0.3078, allocations: 238 kB / 446.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002452/0.308, allocations: 130.2 kB / 446.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.3082, allocations: 350.8 kB / 447.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006461/0.3088, allocations: 265.2 kB / 447.3 MB, free: 6.695 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007366/0.3096, allocations: 360.2 kB / 447.7 MB, free: 6.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001137/0.3107, allocations: 491.5 kB / 448.2 MB, free: 5.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3107, allocations: 0 / 448.2 MB, free: 5.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001947/0.3127, allocations: 0.822 MB / 449 MB, free: 5.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.3127, allocations: 7.938 kB / 449 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3127, allocations: 0 / 449 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.3139, allocations: 444.4 kB / 449.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004221/0.3143, allocations: 83.88 kB / 449.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00152/0.3158, allocations: 1.027 MB / 450.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004939/0.3163, allocations: 59.98 kB / 450.6 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.086e-05/0.3164, allocations: 27.98 kB / 450.6 MB, free: 3.344 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.0002717/0.3167, allocations: 180 kB / 450.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.3168, allocations: 43.77 kB / 450.8 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001542/0.3169, allocations: 67.72 kB / 450.9 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.3169, allocations: 8 kB / 450.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.3169, allocations: 4.062 kB / 450.9 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.317, allocations: 3.984 kB / 450.9 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003436/0.3204, allocations: 1.509 MB / 452.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-06/0.3204, allocations: 0 / 452.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004038/0.3208, allocations: 83.88 kB / 452.5 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/0.3218, allocations: 420.5 kB / 452.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.358e-05/0.3219, allocations: 15.98 kB / 452.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.3232, allocations: 0.975 MB / 453.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.3232, allocations: 0 / 453.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002588/0.3258, allocations: 1.212 MB / 455.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/0.3261, allocations: 111.7 kB / 455.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.3262, allocations: 20 kB / 455.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004612/0.3266, allocations: 56 kB / 455.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002422/0.3269, allocations: 100.4 kB / 455.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-05/0.3269, allocations: 19.98 kB / 455.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003163/0.3273, allocations: 241.2 kB / 455.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3273, allocations: 0 / 455.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005578/0.3278, allocations: 143.9 kB / 455.8 MB, free: 14.05 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.001535/0.3294, allocations: 426.6 kB / 456.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001671/0.331, allocations: 0.6312 MB / 456.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.331, allocations: 64 / 456.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008804/0.3319, allocations: 348.6 kB / 457.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/0.3325, allocations: 72.14 kB / 457.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002735/0.3352, allocations: 1.143 MB / 458.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.3355, allocations: 221.9 kB / 458.6 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002763/0.3357, allocations: 79.3 kB / 458.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.3359, allocations: 47.41 kB / 458.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3359, allocations: 0 / 458.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of Templates: time 0.01756/0.3535, allocations: 9.445 MB / 468.2 MB, free: 1.793 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.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.860353230964392]