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.001351/0.001351, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001496/0.001496, allocations: 213.3 kB / 24.48 MB, free: 3.957 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.444/1.444, allocations: 230.6 MB / 258.2 MB, free: 7.746 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.001686/0.001686, allocations: 47.92 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.273, allocations: 53.37 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004567/0.2776, allocations: 2.684 MB / 435 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002488/0.2801, allocations: 1.225 MB / 436.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000205/0.2803, allocations: 7.938 kB / 436.2 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003743/0.2807, allocations: 91.27 kB / 436.3 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005961/0.2813, allocations: 218.9 kB / 436.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006134/0.2819, allocations: 263.5 kB / 436.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008347/0.2827, allocations: 0.7055 MB / 437.5 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002164/0.2829, allocations: 94.88 kB / 437.6 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000504/0.2834, allocations: 335.1 kB / 437.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000553/0.284, allocations: 394.8 kB / 438.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.995e-05/0.2841, allocations: 56 kB / 438.4 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003364/0.2844, allocations: 147.9 kB / 438.5 MB, free: 500 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000213/0.2846, allocations: 167.5 kB / 438.7 MB, free: 332 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002639/0.2849, allocations: 235 kB / 438.9 MB, free: 96 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008796/0.2858, allocations: 0.7275 MB / 439.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2858, allocations: 0 / 439.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2858, allocations: 4 kB / 439.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.926e-06/0.2858, allocations: 0 / 439.6 MB, free: 15.36 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.001823/0.2876, allocations: 0.7777 MB / 440.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.2877, allocations: 8.031 kB / 440.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004625/0.2881, allocations: 76.62 kB / 440.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000799/0.2889, allocations: 324.6 kB / 440.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001921/0.2891, allocations: 152.4 kB / 441 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.2892, allocations: 44.33 kB / 441 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.2904, allocations: 0.5896 MB / 441.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.2904, allocations: 0 / 441.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.376e-05/0.2905, allocations: 16 kB / 441.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.2905, allocations: 8 kB / 441.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.2919, allocations: 0.5972 MB / 442.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.2945, allocations: 1.06 MB / 443.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.2957, allocations: 0.49 MB / 443.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006428/0.2963, allocations: 276.8 kB / 444 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.951e-05/0.2964, allocations: 4.5 kB / 444 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/0.2964, allocations: 50.98 kB / 444.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.034e-06/0.2964, allocations: 0 / 444.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007257/0.3037, allocations: 2.434 MB / 446.5 MB, free: 8.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.228e-05/0.3038, allocations: 89.7 kB / 446.6 MB, free: 8.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004949/0.3043, allocations: 325.8 kB / 446.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.144e-05/0.3044, allocations: 49.69 kB / 447 MB, free: 7.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.3045, allocations: 165.6 kB / 447.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002337/0.3047, allocations: 242 kB / 447.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002699/0.305, allocations: 130.2 kB / 447.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.3052, allocations: 346.8 kB / 447.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006491/0.3059, allocations: 265.2 kB / 448.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007148/0.3066, allocations: 368.2 kB / 448.5 MB, free: 6.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.3077, allocations: 491.5 kB / 448.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3077, allocations: 0 / 448.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.00197/0.3097, allocations: 0.8142 MB / 449.8 MB, free: 4.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.3097, allocations: 11.94 kB / 449.8 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.3097, allocations: 3.984 kB / 449.8 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001214/0.3109, allocations: 432.4 kB / 450.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004359/0.3113, allocations: 99.73 kB / 450.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001505/0.3129, allocations: 1.019 MB / 451.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005323/0.3134, allocations: 55.92 kB / 451.4 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.632e-05/0.3135, allocations: 31.98 kB / 451.4 MB, free: 3.285 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.0003106/0.3138, allocations: 185.8 kB / 451.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.3139, allocations: 43.7 kB / 451.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001722/0.3141, allocations: 67.73 kB / 451.7 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.3141, allocations: 4.062 kB / 451.7 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.3141, allocations: 8 kB / 451.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.3141, allocations: 3.984 kB / 451.7 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003528/0.3176, allocations: 1.501 MB / 453.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.3176, allocations: 0 / 453.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004381/0.3181, allocations: 83.88 kB / 453.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001105/0.3192, allocations: 412.6 kB / 453.7 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-05/0.3192, allocations: 19.97 kB / 453.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001412/0.3207, allocations: 0.9797 MB / 454.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3207, allocations: 0 / 454.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002729/0.3234, allocations: 1.216 MB / 455.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003234/0.3237, allocations: 107.7 kB / 456 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.3238, allocations: 16 kB / 456 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004754/0.3243, allocations: 55.88 kB / 456.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002385/0.3245, allocations: 92.48 kB / 456.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.286e-05/0.3246, allocations: 32.03 kB / 456.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003375/0.325, allocations: 233.2 kB / 456.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.325, allocations: 0 / 456.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005926/0.3256, allocations: 151.9 kB / 456.6 MB, free: 14 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.3271, allocations: 415.1 kB / 457 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001775/0.3289, allocations: 0.6312 MB / 457.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.3289, allocations: 0 / 457.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009292/0.3298, allocations: 352.7 kB / 458 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006023/0.3304, allocations: 67.56 kB / 458 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.3333, allocations: 1.171 MB / 459.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.3336, allocations: 225.9 kB / 459.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/0.3338, allocations: 63.33 kB / 459.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3338, allocations: 0 / 459.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of Templates: time 0.01314/0.347, allocations: 8.179 MB / 467.7 MB, free: 3.004 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/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:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time [Calling sys.exit(0), Time elapsed: 8.409089430002496]