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.001374/0.001374, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001483/0.001483, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.001767/0.001767, allocations: 47.92 kB / 378.2 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.272, allocations: 53.37 MB / 431.6 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004543/0.2765, allocations: 2.898 MB / 434.5 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.2788, allocations: 1.291 MB / 435.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.279, allocations: 7.938 kB / 435.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003113/0.2793, allocations: 87.28 kB / 435.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005185/0.2798, allocations: 224.3 kB / 436.1 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005087/0.2803, allocations: 247.5 kB / 436.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007672/0.2811, allocations: 0.7172 MB / 437.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.2813, allocations: 87.91 kB / 437.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004624/0.2818, allocations: 335.1 kB / 437.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005147/0.2823, allocations: 386.8 kB / 437.9 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.274e-05/0.2824, allocations: 60 kB / 437.9 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002676/0.2826, allocations: 151.9 kB / 438.1 MB, free: 448 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001933/0.2828, allocations: 163.5 kB / 438.2 MB, free: 284 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002585/0.2831, allocations: 274.7 kB / 438.5 MB, free: 8 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008885/0.284, allocations: 0.7251 MB / 439.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.284, allocations: 4 kB / 439.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.284, allocations: 0 / 439.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.284, allocations: 0 / 439.2 MB, free: 15.28 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.001677/0.2857, allocations: 0.7855 MB / 440 MB, free: 14.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2857, allocations: 8.031 kB / 440 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004237/0.2861, allocations: 76.62 kB / 440.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006316/0.2868, allocations: 308.7 kB / 440.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001786/0.2869, allocations: 152.4 kB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-05/0.287, allocations: 48.27 kB / 440.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.2881, allocations: 0.5528 MB / 441.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.2882, allocations: 8 kB / 441.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.331e-05/0.2882, allocations: 16 kB / 441.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.2882, allocations: 15.98 kB / 441.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.2896, allocations: 0.6089 MB / 441.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002638/0.2923, allocations: 1.239 MB / 443 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.2935, allocations: 497.2 kB / 443.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006105/0.2941, allocations: 274.4 kB / 443.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.783e-05/0.2941, allocations: 16.42 kB / 443.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.2942, allocations: 47.05 kB / 443.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.554e-06/0.2942, allocations: 4 kB / 443.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.006889/0.301, allocations: 2.438 MB / 446.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/0.3011, allocations: 89.75 kB / 446.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004839/0.3016, allocations: 352.5 kB / 446.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.611e-05/0.3017, allocations: 49.7 kB / 446.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.3018, allocations: 165.7 kB / 446.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.302, allocations: 242 kB / 447.2 MB, free: 7.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/0.3022, allocations: 126.2 kB / 447.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.3024, allocations: 350.8 kB / 447.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006151/0.303, allocations: 265.2 kB / 447.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006832/0.3037, allocations: 334.5 kB / 448.2 MB, free: 6.012 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.3048, allocations: 495.5 kB / 448.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3048, allocations: 0 / 448.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001879/0.3067, allocations: 0.8219 MB / 449.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3067, allocations: 4 kB / 449.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3067, allocations: 0 / 449.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.3078, allocations: 448.4 kB / 450 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004025/0.3082, allocations: 87.81 kB / 450.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001414/0.3096, allocations: 1.027 MB / 451.1 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004961/0.3101, allocations: 60 kB / 451.1 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.055e-05/0.3102, allocations: 23.98 kB / 451.2 MB, free: 3.023 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.0002845/0.3105, allocations: 181.7 kB / 451.3 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.3106, allocations: 47.78 kB / 451.4 MB, free: 2.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001738/0.3108, allocations: 71.84 kB / 451.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.3108, allocations: 4 kB / 451.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.3108, allocations: 8 kB / 451.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.3108, allocations: 3.984 kB / 451.5 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003487/0.3143, allocations: 1.656 MB / 453.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3143, allocations: 0 / 453.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003958/0.3147, allocations: 83.88 kB / 453.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001003/0.3157, allocations: 420.5 kB / 453.6 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.818e-05/0.3158, allocations: 19.97 kB / 453.6 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.3171, allocations: 0.9789 MB / 454.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3171, allocations: 0 / 454.6 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002637/0.3198, allocations: 1.212 MB / 455.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003103/0.3201, allocations: 115.6 kB / 455.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.3202, allocations: 20 kB / 456 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004711/0.3206, allocations: 56 kB / 456 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.3209, allocations: 92.47 kB / 456.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.579e-05/0.3209, allocations: 27.97 kB / 456.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003558/0.3213, allocations: 263 kB / 456.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3213, allocations: 0 / 456.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005611/0.3218, allocations: 140 kB / 456.5 MB, free: 13.53 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.001447/0.3233, allocations: 406.1 kB / 456.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.325, allocations: 0.639 MB / 457.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.325, allocations: 0 / 457.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008898/0.3259, allocations: 340.6 kB / 457.9 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005486/0.3264, allocations: 69.12 kB / 458 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002727/0.3292, allocations: 1.159 MB / 459.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004696/0.3296, allocations: 0.8213 MB / 459.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002675/0.3299, allocations: 87.34 kB / 460 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001778/0.3301, allocations: 51.39 kB / 460.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3301, allocations: 4 kB / 460.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of Templates: time 0.02134/0.3514, allocations: 11.01 MB / 471.1 MB, free: 15.03 MB / 382.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: 4.914389041950926]