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.001102/0.001102, allocations: 78.66 kB / 21.42 MB, free: 3.07 MB / 18.57 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.00101/0.00101, allocations: 173.7 kB / 24.82 MB, free: 9.27 MB / 18.57 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 0.9147/0.9147, allocations: 177.1 MB / 205.3 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] 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 3.927e-06/3.927e-06, allocations: 0 / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.261e-05/2.654e-05, allocations: 6.25 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.0044/0.004427, allocations: 3.135 MB / 276.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.006254, allocations: 1.099 MB / 277.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001775/0.006432, allocations: 11.94 kB / 277.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003164/0.006748, allocations: 91.09 kB / 277.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00042/0.007168, allocations: 190.5 kB / 277.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004423/0.00761, allocations: 215.4 kB / 278.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006512/0.008262, allocations: 0.6821 MB / 278.8 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/0.008462, allocations: 92.67 kB / 278.9 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005382/0.009, allocations: 419.1 kB / 279.3 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003341/0.009334, allocations: 263.3 kB / 279.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.842e-05/0.009413, allocations: 52 kB / 279.6 MB, free: 11.06 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.009614, allocations: 107.9 kB / 279.7 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.009765, allocations: 139.5 kB / 279.9 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.009947, allocations: 191.5 kB / 280 MB, free: 10.63 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005803/0.01053, allocations: 0.5021 MB / 280.5 MB, free: 10.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.01053, allocations: 0 / 280.5 MB, free: 10.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01053, allocations: 0 / 280.5 MB, free: 10.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.01054, allocations: 0 / 280.5 MB, free: 10.12 MB / 266.7 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.001126/0.01166, allocations: 0.8462 MB / 281.4 MB, free: 9.242 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.01171, allocations: 15.97 kB / 281.4 MB, free: 9.227 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002417/0.01195, allocations: 92.56 kB / 281.5 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.01235, allocations: 309 kB / 281.8 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.328e-05/0.01239, allocations: 37.36 kB / 281.8 MB, free: 8.762 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.305e-05/0.01246, allocations: 40.38 kB / 281.9 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005493/0.01301, allocations: 330.9 kB / 282.2 MB, free: 8.395 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.014e-05/0.01303, allocations: 4.141 kB / 282.2 MB, free: 8.391 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.07e-05/0.01307, allocations: 20.36 kB / 282.2 MB, free: 8.371 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.01309, allocations: 15.88 kB / 282.2 MB, free: 8.355 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004424/0.01353, allocations: 238.7 kB / 282.5 MB, free: 8.125 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.01508, allocations: 0.8651 MB / 283.3 MB, free: 7.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005529/0.01563, allocations: 293 kB / 283.6 MB, free: 6.926 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002614/0.0159, allocations: 137.1 kB / 283.8 MB, free: 6.789 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.42e-05/0.01594, allocations: 16.44 kB / 283.8 MB, free: 6.773 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.01597, allocations: 41.89 kB / 283.8 MB, free: 6.723 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.385e-06/0.01597, allocations: 0 / 283.8 MB, free: 6.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002439/0.01841, allocations: 1.412 MB / 285.2 MB, free: 5.246 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.01844, allocations: 59.91 kB / 285.3 MB, free: 5.176 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.01863, allocations: 314.2 kB / 285.6 MB, free: 4.852 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.764e-05/0.01866, allocations: 45.7 kB / 285.6 MB, free: 4.801 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.01877, allocations: 240.2 kB / 285.9 MB, free: 4.559 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.0189, allocations: 222.2 kB / 286.1 MB, free: 4.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.01902, allocations: 115.9 kB / 286.2 MB, free: 4.219 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.01917, allocations: 0.5312 MB / 286.7 MB, free: 3.676 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.01932, allocations: 109.2 kB / 286.8 MB, free: 3.566 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.01948, allocations: 158.5 kB / 287 MB, free: 3.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.01974, allocations: 231.8 kB / 287.2 MB, free: 3.176 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.01974, allocations: 0 / 287.2 MB, free: 3.176 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0006515/0.02039, allocations: 0.5156 MB / 287.7 MB, free: 2.645 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.02041, allocations: 11.97 kB / 287.7 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.02042, allocations: 0 / 287.7 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004419/0.02086, allocations: 287.1 kB / 288 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.02103, allocations: 75.91 kB / 288.1 MB, free: 2.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007802/0.02181, allocations: 1.76 MB / 289.9 MB, free: 456 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/0.022, allocations: 55.88 kB / 289.9 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.02202, allocations: 16 kB / 289.9 MB, free: 384 kB / 266.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 (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.0001418/0.02216, allocations: 188.5 kB / 290.1 MB, free: 184 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.873e-05/0.02224, allocations: 67.75 kB / 290.2 MB, free: 116 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.857e-05/0.02231, allocations: 59.69 kB / 290.2 MB, free: 56 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.02232, allocations: 4 kB / 290.2 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.02232, allocations: 3.938 kB / 290.2 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.02233, allocations: 3.984 kB / 290.2 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1056/0.1279, allocations: 1.025 MB / 291.3 MB, free: 25.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.1279, allocations: 1.094 kB / 291.3 MB, free: 25.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002146/0.1281, allocations: 81.7 kB / 291.4 MB, free: 25.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004054/0.1285, allocations: 285.5 kB / 291.6 MB, free: 25.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.705e-05/0.1286, allocations: 23.86 kB / 291.7 MB, free: 25.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005767/0.1292, allocations: 1.746 MB / 293.4 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1292, allocations: 7.25 kB / 293.4 MB, free: 23.74 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000805/0.13, allocations: 0.7664 MB / 294.2 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.1301, allocations: 96.58 kB / 294.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.531e-05/0.1302, allocations: 25.8 kB / 294.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.1303, allocations: 42.12 kB / 294.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.1305, allocations: 104.5 kB / 294.4 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/0.1305, allocations: 28.47 kB / 294.5 MB, free: 23.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001046/0.1306, allocations: 209.6 kB / 294.7 MB, free: 23.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1306, allocations: 3.969 kB / 294.7 MB, free: 23.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003631/0.131, allocations: 126.8 kB / 294.8 MB, free: 23.32 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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007196/0.1317, allocations: 373.1 kB / 295.2 MB, free: 23.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006107/0.1323, allocations: 365.9 kB / 295.5 MB, free: 23.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1323, allocations: 1.188 kB / 295.5 MB, free: 23.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.1326, allocations: 232 kB / 295.7 MB, free: 23.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/0.133, allocations: 121 kB / 295.9 MB, free: 23.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001988/0.135, allocations: 1.243 MB / 297.1 MB, free: 22.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.338e-05/0.1351, allocations: 120.4 kB / 297.2 MB, free: 22.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.1352, allocations: 38.09 kB / 297.3 MB, free: 22.51 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.1354, allocations: 156.4 kB / 297.4 MB, free: 22.44 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.1354, allocations: 2.375 kB / 297.4 MB, free: 22.44 MB / 266.7 MB Notification: Performance of Templates: time 0.01176/0.1472, allocations: 9.444 MB / 306.9 MB, free: 18.75 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] 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","",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.8623830350115895]