Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.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.001488/0.001488, allocations: 123.8 kB / 20.44 MB, free: 1.297 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.001577/0.001577, allocations: 211 kB / 23.74 MB, free: 4.531 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.515/1.515, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 51.92 kB / 378.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2563, allocations: 53.37 MB / 431.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004745/0.2611, allocations: 3.203 MB / 434.8 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00225/0.2633, allocations: 1.145 MB / 436 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001845/0.2635, allocations: 11.94 kB / 436 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003138/0.2638, allocations: 87.22 kB / 436.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004044/0.2642, allocations: 178.7 kB / 436.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000487/0.2647, allocations: 207.6 kB / 436.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007262/0.2655, allocations: 0.6706 MB / 437.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002114/0.2657, allocations: 93.33 kB / 437.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004422/0.2661, allocations: 311 kB / 437.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000449/0.2666, allocations: 322.8 kB / 437.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.07e-05/0.2666, allocations: 52 kB / 437.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000208/0.2668, allocations: 116 kB / 438 MB, free: 500 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.267, allocations: 131.6 kB / 438.1 MB, free: 368 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002583/0.2673, allocations: 270.7 kB / 438.4 MB, free: 96 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007637/0.268, allocations: 0.6512 MB / 439 MB, free: 15.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.268, allocations: 0 / 439 MB, free: 15.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.268, allocations: 0 / 439 MB, free: 15.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.268, allocations: 0 / 439 MB, free: 15.44 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001514/0.2696, allocations: 0.7736 MB / 439.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.2696, allocations: 8.031 kB / 439.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002273/0.2698, allocations: 64.56 kB / 439.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006105/0.2704, allocations: 290.2 kB / 440.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.945e-05/0.2705, allocations: 41.36 kB / 440.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.2706, allocations: 44.33 kB / 440.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009054/0.2715, allocations: 470.6 kB / 440.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.2715, allocations: 7.984 kB / 440.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.843e-05/0.2716, allocations: 16 kB / 440.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.2716, allocations: 12 kB / 440.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009926/0.2726, allocations: 463.7 kB / 441.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002179/0.2747, allocations: 1.102 MB / 442.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009205/0.2757, allocations: 398.3 kB / 442.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005475/0.2762, allocations: 254.2 kB / 442.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.244e-05/0.2763, allocations: 8.484 kB / 442.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/0.2763, allocations: 39.06 kB / 443 MB, free: 11.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.513e-06/0.2763, allocations: 0 / 443 MB, free: 11.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.00522/0.2815, allocations: 2.018 MB / 445 MB, free: 9.301 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.2816, allocations: 59.91 kB / 445.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003704/0.2819, allocations: 308.5 kB / 445.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.303e-05/0.282, allocations: 49.69 kB / 445.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.2821, allocations: 181.6 kB / 445.6 MB, free: 8.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002228/0.2824, allocations: 218.2 kB / 445.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000188/0.2826, allocations: 110.3 kB / 445.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.2827, allocations: 350.8 kB / 446.3 MB, free: 8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005092/0.2832, allocations: 229.2 kB / 446.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005518/0.2838, allocations: 276.8 kB / 446.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000812/0.2846, allocations: 398.1 kB / 447.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2846, allocations: 0 / 447.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001705/0.2863, allocations: 0.7406 MB / 447.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.2863, allocations: 10.97 kB / 447.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.2863, allocations: 0 / 447.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009177/0.2873, allocations: 381.4 kB / 448.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003336/0.2876, allocations: 87.89 kB / 448.3 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00152/0.2891, allocations: 1.397 MB / 449.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004845/0.2896, allocations: 71.94 kB / 449.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.494e-05/0.2896, allocations: 23.92 kB / 449.8 MB, free: 4.336 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002379/0.2899, allocations: 170.5 kB / 450 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.29, allocations: 55.64 kB / 450.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001676/0.2901, allocations: 64.52 kB / 450.1 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.293e-06/0.2902, allocations: 11.92 kB / 450.1 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.2902, allocations: 0 / 450.1 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.2902, allocations: 0 / 450.1 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.2931, allocations: 1.41 MB / 451.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2931, allocations: 0 / 451.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003799/0.2935, allocations: 83.89 kB / 451.6 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007929/0.2943, allocations: 345.5 kB / 452 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.938e-05/0.2943, allocations: 19.98 kB / 452 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001421/0.2957, allocations: 1.366 MB / 453.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.2957, allocations: 4.125 kB / 453.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/0.298, allocations: 1.049 MB / 454.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002287/0.2983, allocations: 95.67 kB / 454.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.2984, allocations: 23.94 kB / 454.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004845/0.2988, allocations: 55.94 kB / 454.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002214/0.2991, allocations: 100.3 kB / 454.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.887e-05/0.2991, allocations: 27.98 kB / 454.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002614/0.2994, allocations: 219.1 kB / 454.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2994, allocations: 0 / 454.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004891/0.2999, allocations: 131.9 kB / 455 MB, free: 14.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001394/0.3013, allocations: 397.8 kB / 455.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001392/0.3026, allocations: 0.542 MB / 456 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3027, allocations: 0 / 456 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007854/0.3034, allocations: 326.6 kB / 456.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000626/0.3041, allocations: 84.97 kB / 456.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003921/0.308, allocations: 1.488 MB / 457.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005015/0.3085, allocations: 0.8322 MB / 458.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.3087, allocations: 47.33 kB / 458.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.3088, allocations: 39.42 kB / 458.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3088, allocations: 0 / 458.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of Templates: time 0.01946/0.3282, allocations: 10.61 MB / 469.4 MB, free: 0.7148 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.028690406121314]