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.0008836/0.0008836, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.000852/0.000852, allocations: 148.2 kB / 24.9 MB, free: 9.156 MB / 18.57 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.8791/0.8791, allocations: 173.4 MB / 201.5 MB, free: 9.207 MB / 186.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.392e-06/1.392e-06, allocations: 0 / 268.5 MB, free: 6.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.642e-05/1.781e-05, allocations: 6.25 kB / 268.5 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003467/0.003484, allocations: 2.999 MB / 271.5 MB, free: 3.191 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.004959, allocations: 0.954 MB / 272.4 MB, free: 2.23 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.005105, allocations: 7.938 kB / 272.4 MB, free: 2.223 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002062/0.005311, allocations: 67.31 kB / 272.5 MB, free: 2.156 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000235/0.005546, allocations: 150.7 kB / 272.6 MB, free: 2.008 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004703/0.006016, allocations: 223.5 kB / 272.9 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005306/0.006547, allocations: 0.6508 MB / 273.5 MB, free: 1.137 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.006708, allocations: 93.33 kB / 273.6 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004094/0.007117, allocations: 391.2 kB / 274 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002856/0.007403, allocations: 247.4 kB / 274.2 MB, free: 420 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.221e-05/0.007465, allocations: 48 kB / 274.3 MB, free: 372 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000151/0.007616, allocations: 95.95 kB / 274.4 MB, free: 276 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.007726, allocations: 139.5 kB / 274.5 MB, free: 136 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.007888, allocations: 175.6 kB / 274.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004589/0.008347, allocations: 474.3 kB / 275.1 MB, free: 15.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.008349, allocations: 4 kB / 275.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.00835, allocations: 0 / 275.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.008354, allocations: 0 / 275.1 MB, free: 15.49 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0008479/0.009202, allocations: 0.6711 MB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.009231, allocations: 8.922 kB / 275.8 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.878e-05/0.009329, allocations: 64.89 kB / 275.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.009602, allocations: 220.6 kB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.009635, allocations: 37.36 kB / 276.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.765e-05/0.009703, allocations: 48.31 kB / 276.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000472/0.01017, allocations: 355.5 kB / 276.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.01019, allocations: 192 / 276.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.699e-05/0.01023, allocations: 16.38 kB / 276.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.957e-05/0.0103, allocations: 15.94 kB / 276.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000327/0.01062, allocations: 198.8 kB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.01176, allocations: 0.659 MB / 277.4 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.01215, allocations: 238.1 kB / 277.6 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001958/0.01235, allocations: 130.2 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.01238, allocations: 8.5 kB / 277.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.01241, allocations: 39.06 kB / 277.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.583e-06/0.01241, allocations: 0 / 277.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002382/0.01479, allocations: 1.351 MB / 279.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/0.01482, allocations: 59.91 kB / 279.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.01498, allocations: 244.9 kB / 279.5 MB, free: 10.99 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/0.01502, allocations: 45.7 kB / 279.5 MB, free: 10.94 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.185e-05/0.0151, allocations: 170 kB / 279.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.01523, allocations: 198.3 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.01537, allocations: 114.2 kB / 280 MB, free: 10.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.584e-05/0.01547, allocations: 354.7 kB / 280.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/0.01563, allocations: 93.27 kB / 280.4 MB, free: 10 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001821/0.01582, allocations: 152.8 kB / 280.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002896/0.0161, allocations: 241.9 kB / 280.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.01611, allocations: 0 / 280.8 MB, free: 9.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0006972/0.0168, allocations: 434.7 kB / 281.2 MB, free: 9.168 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.01682, allocations: 8.031 kB / 281.2 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.01682, allocations: 0 / 281.2 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005646/0.01739, allocations: 413.3 kB / 281.6 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002248/0.01761, allocations: 79.91 kB / 281.7 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006919/0.0183, allocations: 1.206 MB / 282.9 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002235/0.01853, allocations: 52 kB / 283 MB, free: 7.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.01856, allocations: 15.98 kB / 283 MB, free: 7.348 MB / 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 (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.000131/0.01869, allocations: 148.5 kB / 283.1 MB, free: 7.191 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.483e-05/0.01876, allocations: 35.97 kB / 283.2 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.812e-05/0.01883, allocations: 59.61 kB / 283.2 MB, free: 7.102 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.01884, allocations: 7.938 kB / 283.2 MB, free: 7.094 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.01884, allocations: 0 / 283.2 MB, free: 7.094 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.01884, allocations: 11.92 kB / 283.2 MB, free: 7.082 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001429/0.02027, allocations: 0.8107 MB / 284.1 MB, free: 6.227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.02028, allocations: 4 kB / 284.1 MB, free: 6.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002463/0.02052, allocations: 75.89 kB / 284.1 MB, free: 6.148 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005117/0.02103, allocations: 397.5 kB / 284.5 MB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.488e-05/0.02107, allocations: 19.98 kB / 284.5 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006492/0.02172, allocations: 1.19 MB / 285.7 MB, free: 4.492 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.02172, allocations: 4.062 kB / 285.7 MB, free: 4.488 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000872/0.02259, allocations: 0.6551 MB / 286.4 MB, free: 3.801 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.02272, allocations: 55.73 kB / 286.4 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.249e-05/0.02278, allocations: 16 kB / 286.5 MB, free: 3.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.023, allocations: 47.95 kB / 286.5 MB, free: 3.684 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.02315, allocations: 92.31 kB / 286.6 MB, free: 3.594 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.132e-05/0.02318, allocations: 19.97 kB / 286.6 MB, free: 3.574 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.999e-05/0.02326, allocations: 86.77 kB / 286.7 MB, free: 3.484 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02326, allocations: 0 / 286.7 MB, free: 3.484 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003639/0.02362, allocations: 135.9 kB / 286.8 MB, free: 3.352 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.0001649/0.02379, allocations: 131.4 kB / 287 MB, free: 3.215 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005257/0.02431, allocations: 339.5 kB / 287.3 MB, free: 2.883 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.02432, allocations: 0 / 287.3 MB, free: 2.883 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002929/0.02461, allocations: 218.5 kB / 287.5 MB, free: 2.664 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.025, allocations: 104.2 kB / 287.6 MB, free: 2.562 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.027, allocations: 1.087 MB / 288.7 MB, free: 1.434 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.633e-05/0.02707, allocations: 110.5 kB / 288.8 MB, free: 1.309 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000116/0.02719, allocations: 43.25 kB / 288.8 MB, free: 1.266 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.02737, allocations: 119.3 kB / 289 MB, free: 1.148 MB / 266.7 MB Notification: Performance of SimCode: time 6.02e-07/0.02737, allocations: 0 / 289 MB, free: 1.148 MB / 266.7 MB Notification: Performance of Templates: time 0.09796/0.1253, allocations: 9.26 MB / 298.2 MB, free: 28.86 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 -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.8394467923790216]