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.0007164/0.0007164, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001079/0.001796, allocations: 449.7 kB / 10.37 MB, free: 332 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.0009865/0.0009865, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001413/0.002399, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.901/0.901, allocations: 173.4 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08052/0.9815, allocations: 52.5 MB / 238.3 MB, free: 4.426 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.523e-06/1.523e-06, allocations: 0 / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.777e-05/1.93e-05, allocations: 6.312 kB / 239.5 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002914/0.002934, allocations: 3.05 MB / 242.6 MB, free: 112 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.004222, allocations: 0.9618 MB / 243.6 MB, free: 15.14 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.004342, allocations: 7.938 kB / 243.6 MB, free: 15.13 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.004481, allocations: 63.31 kB / 243.6 MB, free: 15.07 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.004657, allocations: 146.8 kB / 243.8 MB, free: 14.93 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.004999, allocations: 223.5 kB / 244 MB, free: 14.71 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004366/0.005436, allocations: 0.6431 MB / 244.6 MB, free: 14.06 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.005581, allocations: 93.27 kB / 244.7 MB, free: 13.96 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003662/0.005947, allocations: 415.8 kB / 245.1 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000238/0.006185, allocations: 247.4 kB / 245.4 MB, free: 13.31 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.184e-05/0.006237, allocations: 52 kB / 245.4 MB, free: 13.26 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001568/0.006393, allocations: 103.9 kB / 245.5 MB, free: 13.16 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.671e-05/0.00647, allocations: 87.69 kB / 245.6 MB, free: 13.07 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.006574, allocations: 135.8 kB / 245.7 MB, free: 12.94 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003471/0.006921, allocations: 398.6 kB / 246.1 MB, free: 12.55 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.367e-05/0.006935, allocations: 4 kB / 246.1 MB, free: 12.55 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.006936, allocations: 0 / 246.1 MB, free: 12.55 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.006952, allocations: 0 / 246.1 MB, free: 12.55 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.0008073/0.007759, allocations: 0.7646 MB / 246.9 MB, free: 11.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.786e-05/0.007787, allocations: 11.97 kB / 246.9 MB, free: 11.74 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.872e-05/0.007866, allocations: 68.83 kB / 247 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.008107, allocations: 224.5 kB / 247.2 MB, free: 11.43 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.165e-05/0.008148, allocations: 29.38 kB / 247.2 MB, free: 11.4 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.013e-05/0.008198, allocations: 48.33 kB / 247.3 MB, free: 11.36 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003563/0.008555, allocations: 355.5 kB / 247.6 MB, free: 11 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.00857, allocations: 192 / 247.6 MB, free: 11 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.008594, allocations: 16.38 kB / 247.6 MB, free: 10.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.008605, allocations: 15.94 kB / 247.7 MB, free: 10.97 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.008846, allocations: 194.8 kB / 247.8 MB, free: 10.78 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008574/0.009703, allocations: 0.6629 MB / 248.5 MB, free: 10.1 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003047/0.01001, allocations: 247.3 kB / 248.7 MB, free: 9.848 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.01015, allocations: 129.8 kB / 248.9 MB, free: 9.723 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.01018, allocations: 8.5 kB / 248.9 MB, free: 9.715 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/0.0102, allocations: 43 kB / 248.9 MB, free: 9.664 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 1.082e-06/0.0102, allocations: 4 kB / 248.9 MB, free: 9.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.001692/0.01189, allocations: 1.348 MB / 250.3 MB, free: 8.258 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.57e-05/0.01192, allocations: 59.84 kB / 250.3 MB, free: 8.188 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.01206, allocations: 244.9 kB / 250.6 MB, free: 7.938 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.0121, allocations: 45.69 kB / 250.6 MB, free: 7.887 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.757e-05/0.01217, allocations: 173.9 kB / 250.8 MB, free: 7.715 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.268e-05/0.01226, allocations: 202.3 kB / 251 MB, free: 7.516 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.668e-05/0.01236, allocations: 102.2 kB / 251.1 MB, free: 7.41 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.117e-05/0.01244, allocations: 358.6 kB / 251.4 MB, free: 7.051 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.01256, allocations: 101.3 kB / 251.5 MB, free: 6.949 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.01268, allocations: 144.8 kB / 251.7 MB, free: 6.801 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.01289, allocations: 242 kB / 251.9 MB, free: 6.559 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.01289, allocations: 4 kB / 251.9 MB, free: 6.555 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0005006/0.01339, allocations: 438.7 kB / 252.3 MB, free: 6.113 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/0.0134, allocations: 4 kB / 252.3 MB, free: 6.109 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.01341, allocations: 7.984 kB / 252.4 MB, free: 6.102 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004037/0.01381, allocations: 397.4 kB / 252.7 MB, free: 5.707 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.01399, allocations: 103.8 kB / 252.8 MB, free: 5.605 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005272/0.01452, allocations: 1.202 MB / 254 MB, free: 4.352 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.01467, allocations: 56 kB / 254.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.01469, allocations: 12 kB / 254.1 MB, free: 4.285 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.000102/0.0148, allocations: 148.2 kB / 254.3 MB, free: 4.129 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.01485, allocations: 47.95 kB / 254.3 MB, free: 4.082 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.104e-05/0.0149, allocations: 55.61 kB / 254.4 MB, free: 4.031 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.01491, allocations: 11.94 kB / 254.4 MB, free: 4.02 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.01491, allocations: 4 kB / 254.4 MB, free: 4.016 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.01491, allocations: 0 / 254.4 MB, free: 4.016 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000947/0.01586, allocations: 0.8069 MB / 255.2 MB, free: 3.164 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.01586, allocations: 3.984 kB / 255.2 MB, free: 3.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.01605, allocations: 87.89 kB / 255.3 MB, free: 3.074 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.115e-05/0.01614, allocations: 63.66 kB / 255.3 MB, free: 3.012 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004688/0.01661, allocations: 397.6 kB / 255.7 MB, free: 2.617 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/0.01665, allocations: 27.92 kB / 255.7 MB, free: 2.59 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007164/0.01737, allocations: 1.198 MB / 256.9 MB, free: 1.34 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.01737, allocations: 0 / 256.9 MB, free: 1.34 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000925/0.01829, allocations: 0.6551 MB / 257.6 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.385e-05/0.01836, allocations: 16 kB / 257.6 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.01858, allocations: 43.95 kB / 257.7 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.01874, allocations: 96.3 kB / 257.8 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.259e-05/0.01877, allocations: 15.98 kB / 257.8 MB, free: 492 kB / 250.7 MB Notification: Performance of sorting global known variables: time 8.389e-05/0.01886, allocations: 86.77 kB / 257.9 MB, free: 400 kB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01886, allocations: 3.938 kB / 257.9 MB, free: 396 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003703/0.01923, allocations: 136 kB / 258 MB, free: 260 kB / 250.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.0001746/0.0194, allocations: 128.2 kB / 258.1 MB, free: 120 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005879/0.01999, allocations: 339.5 kB / 258.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/0.02, allocations: 4 kB / 258.5 MB, free: 15.78 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003283/0.02033, allocations: 226.3 kB / 258.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004359/0.02077, allocations: 138.4 kB / 258.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004313/0.02508, allocations: 1.073 MB / 259.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.517e-05/0.02514, allocations: 118.4 kB / 260 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.26e-05/0.02524, allocations: 43.25 kB / 260 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.02538, allocations: 115.3 kB / 260.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.02538, allocations: 4 kB / 260.2 MB, free: 14 MB / 266.7 MB Notification: Performance of Templates: time 0.01082/0.03621, allocations: 9.46 MB / 269.6 MB, free: 4.66 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5902646351605654]