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.001404/0.001404, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001463/0.001463, allocations: 211.4 kB / 23.73 MB, free: 4.41 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001619/0.001619, allocations: 47.91 kB / 378.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2623, allocations: 53.37 MB / 431.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004803/0.2671, allocations: 2.946 MB / 434.5 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002271/0.2693, allocations: 1.091 MB / 435.6 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000279/0.2696, allocations: 11.94 kB / 435.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003744/0.27, allocations: 87.23 kB / 435.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005196/0.2705, allocations: 186.6 kB / 435.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005038/0.271, allocations: 207.7 kB / 436.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007306/0.2717, allocations: 0.6705 MB / 436.8 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002488/0.272, allocations: 96.97 kB / 436.9 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000448/0.2724, allocations: 311 kB / 437.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004028/0.2728, allocations: 282.8 kB / 437.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.2729, allocations: 52 kB / 437.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002304/0.2732, allocations: 116 kB / 437.6 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001813/0.2733, allocations: 139.5 kB / 437.7 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002327/0.2736, allocations: 227 kB / 438 MB, free: 304 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007842/0.2744, allocations: 0.6486 MB / 438.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2744, allocations: 7.938 kB / 438.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2744, allocations: 0 / 438.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.2744, allocations: 0 / 438.6 MB, free: 15.64 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.001541/0.2759, allocations: 0.7621 MB / 439.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.276, allocations: 12.03 kB / 439.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002296/0.2762, allocations: 72.53 kB / 439.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005596/0.2768, allocations: 290.2 kB / 439.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.887e-05/0.2768, allocations: 33.38 kB / 439.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.937e-05/0.2769, allocations: 44.33 kB / 439.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009009/0.2778, allocations: 474.6 kB / 440.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.2778, allocations: 7.953 kB / 440.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.947e-05/0.2779, allocations: 20 kB / 440.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.2779, allocations: 8 kB / 440.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009868/0.2789, allocations: 459.7 kB / 440.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.281, allocations: 0.9314 MB / 441.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009121/0.2819, allocations: 400.5 kB / 442.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005448/0.2824, allocations: 250.2 kB / 442.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.236e-05/0.2824, allocations: 12.48 kB / 442.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.2825, allocations: 39.06 kB / 442.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.004e-06/0.2825, allocations: 0 / 442.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.00519/0.2877, allocations: 2.002 MB / 444.4 MB, free: 9.695 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.2877, allocations: 67.78 kB / 444.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.2881, allocations: 284.2 kB / 444.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.327e-05/0.2881, allocations: 49.7 kB / 444.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.2883, allocations: 189.6 kB / 445 MB, free: 9.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.2885, allocations: 218.2 kB / 445.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001887/0.2886, allocations: 114.2 kB / 445.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.2888, allocations: 350.8 kB / 445.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004871/0.2893, allocations: 221.2 kB / 445.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005265/0.2898, allocations: 280.8 kB / 446.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008108/0.2906, allocations: 398.1 kB / 446.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2906, allocations: 0 / 446.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001672/0.2923, allocations: 0.7406 MB / 447.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.2923, allocations: 4 kB / 447.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.2923, allocations: 4 kB / 447.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008788/0.2932, allocations: 373.4 kB / 447.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003413/0.2936, allocations: 87.83 kB / 447.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/0.295, allocations: 1.401 MB / 449.1 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004952/0.2955, allocations: 71.94 kB / 449.2 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.441e-05/0.2956, allocations: 16 kB / 449.2 MB, free: 4.75 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.000241/0.2958, allocations: 174.5 kB / 449.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.2959, allocations: 51.66 kB / 449.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001372/0.2961, allocations: 63.67 kB / 449.5 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.2961, allocations: 8 kB / 449.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.2961, allocations: 0 / 449.5 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.2961, allocations: 3.984 kB / 449.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002781/0.2989, allocations: 1.267 MB / 450.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-06/0.2989, allocations: 4 kB / 450.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003703/0.2992, allocations: 83.83 kB / 450.9 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007569/0.3, allocations: 345.6 kB / 451.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.005e-05/0.3, allocations: 23.97 kB / 451.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/0.3014, allocations: 1.359 MB / 452.6 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.3014, allocations: 11.88 kB / 452.6 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00205/0.3035, allocations: 1.049 MB / 453.6 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002305/0.3037, allocations: 91.67 kB / 453.7 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.273e-05/0.3038, allocations: 20 kB / 453.7 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004502/0.3042, allocations: 55.92 kB / 453.8 MB, free: 0 / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002454/0.3045, allocations: 104.3 kB / 453.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.723e-05/0.3045, allocations: 27.97 kB / 453.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002226/0.3048, allocations: 203.1 kB / 454.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3048, allocations: 0 / 454.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005257/0.3053, allocations: 132 kB / 454.3 MB, free: 15.54 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.001509/0.3068, allocations: 413.4 kB / 454.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.3081, allocations: 0.542 MB / 455.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.3081, allocations: 4 kB / 455.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007691/0.3089, allocations: 334.6 kB / 455.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006195/0.3095, allocations: 84.56 kB / 455.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00404/0.3135, allocations: 1.487 MB / 457.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002572/0.3138, allocations: 229.2 kB / 457.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001781/0.314, allocations: 39.3 kB / 457.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.3141, allocations: 43.41 kB / 457.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3141, allocations: 0 / 457.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of Templates: time 0.01616/0.3303, allocations: 9.131 MB / 466.5 MB, free: 3.422 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: 4.90864104218781]