Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009479/0.0009479, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001392/0.00234, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008583/0.0008583, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001212/0.00207, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9355/0.9355, allocations: 173.4 MB / 185.9 MB, free: 8.93 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08835/1.024, allocations: 52.49 MB / 238.4 MB, free: 4.375 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 239.7 MB, free: 3.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.493e-05, allocations: 3.438 kB / 239.7 MB, free: 3.086 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004448/0.004473, allocations: 3.058 MB / 242.8 MB, free: 12 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002286/0.006759, allocations: 0.9579 MB / 243.7 MB, free: 15.05 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003587/0.007118, allocations: 11.94 kB / 243.8 MB, free: 15.04 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002449/0.007363, allocations: 63.38 kB / 243.8 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003747/0.007738, allocations: 146.7 kB / 244 MB, free: 14.83 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006479/0.008386, allocations: 223.5 kB / 244.2 MB, free: 14.61 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007552/0.009141, allocations: 0.6353 MB / 244.8 MB, free: 13.97 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002195/0.00936, allocations: 105.2 kB / 244.9 MB, free: 13.86 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007265/0.01009, allocations: 415.8 kB / 245.3 MB, free: 13.45 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004556/0.01054, allocations: 243.4 kB / 245.6 MB, free: 13.21 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001272/0.01067, allocations: 48 kB / 245.6 MB, free: 13.17 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002619/0.01093, allocations: 107.9 kB / 245.7 MB, free: 13.06 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.01105, allocations: 87.69 kB / 245.8 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.01121, allocations: 135.8 kB / 245.9 MB, free: 12.84 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005714/0.01178, allocations: 398.6 kB / 246.3 MB, free: 12.45 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.515e-05/0.0118, allocations: 0 / 246.3 MB, free: 12.45 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.0118, allocations: 0 / 246.3 MB, free: 12.45 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.01182, allocations: 4 kB / 246.3 MB, free: 12.45 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001476/0.0133, allocations: 0.7684 MB / 247.1 MB, free: 11.65 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.01333, allocations: 8.031 kB / 247.1 MB, free: 11.64 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.01347, allocations: 68.83 kB / 247.2 MB, free: 11.58 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/0.01387, allocations: 224.6 kB / 247.4 MB, free: 11.33 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.217e-05/0.01393, allocations: 33.38 kB / 247.4 MB, free: 11.3 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.562e-05/0.01402, allocations: 52.3 kB / 247.5 MB, free: 11.25 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006013/0.01462, allocations: 347.5 kB / 247.8 MB, free: 10.9 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.01464, allocations: 192 / 247.8 MB, free: 10.9 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.01468, allocations: 16.38 kB / 247.8 MB, free: 10.88 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.01469, allocations: 11.94 kB / 247.8 MB, free: 10.87 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000372/0.01506, allocations: 210.8 kB / 248 MB, free: 10.66 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.01646, allocations: 0.6512 MB / 248.7 MB, free: 10 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005344/0.017, allocations: 251.4 kB / 248.9 MB, free: 9.746 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002308/0.01723, allocations: 122.3 kB / 249.1 MB, free: 9.625 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.546e-05/0.01727, allocations: 8.5 kB / 249.1 MB, free: 9.613 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.01731, allocations: 43 kB / 249.1 MB, free: 9.562 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 3.226e-06/0.01731, allocations: 0 / 249.1 MB, free: 9.562 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.00311/0.02042, allocations: 1.497 MB / 250.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.02046, allocations: 63.84 kB / 250.7 MB, free: 7.922 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.02065, allocations: 240.9 kB / 250.9 MB, free: 7.672 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.553e-05/0.0207, allocations: 45.69 kB / 250.9 MB, free: 7.621 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.732e-05/0.0208, allocations: 177.9 kB / 251.1 MB, free: 7.445 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.02094, allocations: 202.3 kB / 251.3 MB, free: 7.246 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.02109, allocations: 106.2 kB / 251.4 MB, free: 7.137 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.02119, allocations: 354.7 kB / 251.8 MB, free: 6.781 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.02139, allocations: 101.3 kB / 251.9 MB, free: 6.68 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.02157, allocations: 144.8 kB / 252 MB, free: 6.531 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003404/0.02191, allocations: 242 kB / 252.2 MB, free: 6.289 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.02192, allocations: 0 / 252.2 MB, free: 6.289 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007906/0.02271, allocations: 446.6 kB / 252.7 MB, free: 5.84 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.454e-05/0.02274, allocations: 4 kB / 252.7 MB, free: 5.836 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.02275, allocations: 0 / 252.7 MB, free: 5.836 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005493/0.0233, allocations: 401.3 kB / 253.1 MB, free: 5.438 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.02353, allocations: 99.83 kB / 253.2 MB, free: 5.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006211/0.02415, allocations: 1.21 MB / 254.4 MB, free: 4.078 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.02435, allocations: 55.94 kB / 254.4 MB, free: 4.023 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.02437, allocations: 11.98 kB / 254.5 MB, free: 4.012 MB / 250.7 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 (57): * Single equations (assignments): 55 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001363/0.02451, allocations: 152.5 kB / 254.6 MB, free: 3.852 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.414e-05/0.02456, allocations: 39.97 kB / 254.6 MB, free: 3.812 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.55e-05/0.02463, allocations: 55.61 kB / 254.7 MB, free: 3.762 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.02463, allocations: 7.938 kB / 254.7 MB, free: 3.754 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.02464, allocations: 0 / 254.7 MB, free: 3.754 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.02464, allocations: 3.984 kB / 254.7 MB, free: 3.75 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.02571, allocations: 0.8069 MB / 255.5 MB, free: 2.898 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.02571, allocations: 4 kB / 255.5 MB, free: 2.895 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001963/0.02591, allocations: 96.05 kB / 255.6 MB, free: 2.801 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.469e-05/0.026, allocations: 59.67 kB / 255.7 MB, free: 2.742 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003669/0.02637, allocations: 401.4 kB / 256.1 MB, free: 2.344 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.0264, allocations: 15.98 kB / 256.1 MB, free: 2.328 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005114/0.02691, allocations: 1.194 MB / 257.3 MB, free: 1.082 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.02691, allocations: 7.938 kB / 257.3 MB, free: 1.074 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006352/0.02754, allocations: 0.6628 MB / 257.9 MB, free: 380 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.982e-05/0.02759, allocations: 20 kB / 258 MB, free: 360 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.02774, allocations: 43.89 kB / 258 MB, free: 316 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.02786, allocations: 96.31 kB / 258.1 MB, free: 220 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.02788, allocations: 19.97 kB / 258.1 MB, free: 200 kB / 250.7 MB Notification: Performance of sorting global known variables: time 5.751e-05/0.02793, allocations: 86.77 kB / 258.2 MB, free: 112 kB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02793, allocations: 0 / 258.2 MB, free: 112 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002571/0.02819, allocations: 128 kB / 258.3 MB, free: 15.98 MB / 266.7 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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001635/0.02835, allocations: 128.2 kB / 258.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004184/0.02877, allocations: 352.1 kB / 258.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/0.02879, allocations: 8 kB / 258.8 MB, free: 15.49 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002323/0.02902, allocations: 231.2 kB / 259 MB, free: 15.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004382/0.02946, allocations: 0.6054 MB / 259.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004467/0.03392, allocations: 1.088 MB / 260.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.861e-05/0.034, allocations: 114.4 kB / 260.8 MB, free: 13.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.03411, allocations: 39.27 kB / 260.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.0343, allocations: 127.3 kB / 261 MB, free: 13.12 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.0343, allocations: 0 / 261 MB, free: 13.12 MB / 266.7 MB Notification: Performance of Templates: time 0.01264/0.04695, allocations: 9.483 MB / 270.5 MB, free: 3.758 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.77350268792361]