Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.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.0007807/0.0007807, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001104/0.001885, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007211/0.0007211, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009116/0.001633, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.8953/0.8953, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08186/0.9771, allocations: 53.64 MB / 243.3 MB, free: 15.59 MB / 250.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.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.208e-05/1.37e-05, allocations: 2.312 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003162/0.003176, allocations: 3.126 MB / 247.6 MB, free: 11.19 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.004701, allocations: 1.347 MB / 249 MB, free: 9.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.004809, allocations: 11.94 kB / 249 MB, free: 9.828 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002423/0.005052, allocations: 99.09 kB / 249.1 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001467/0.005198, allocations: 126.8 kB / 249.2 MB, free: 9.605 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004785/0.005677, allocations: 430.9 kB / 249.6 MB, free: 9.184 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004756/0.006152, allocations: 0.8268 MB / 250.5 MB, free: 8.352 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.006271, allocations: 65.72 kB / 250.5 MB, free: 8.285 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004492/0.006721, allocations: 0.532 MB / 251.1 MB, free: 7.75 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.007876, allocations: 1.384 MB / 252.4 MB, free: 6.363 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.733e-05/0.007954, allocations: 71.94 kB / 252.5 MB, free: 6.293 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001727/0.008126, allocations: 127.9 kB / 252.6 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.008263, allocations: 180 kB / 252.8 MB, free: 5.992 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.008407, allocations: 175.6 kB / 253 MB, free: 5.82 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000513/0.00892, allocations: 0.619 MB / 253.6 MB, free: 5.199 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.58e-05/0.008936, allocations: 4 kB / 253.6 MB, free: 5.195 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.008936, allocations: 0 / 253.6 MB, free: 5.195 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.739e-05/0.008954, allocations: 4 kB / 253.6 MB, free: 5.191 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001402/0.01036, allocations: 1.25 MB / 254.9 MB, free: 3.914 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.701e-05/0.01038, allocations: 8.031 kB / 254.9 MB, free: 3.906 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002822/0.01066, allocations: 185.9 kB / 255.1 MB, free: 3.707 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.01098, allocations: 317.6 kB / 255.4 MB, free: 3.371 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.01101, allocations: 33.38 kB / 255.4 MB, free: 3.336 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.057e-05/0.01107, allocations: 40.36 kB / 255.4 MB, free: 3.297 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.01161, allocations: 486.5 kB / 255.9 MB, free: 2.805 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.01163, allocations: 4.141 kB / 255.9 MB, free: 2.801 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.928e-05/0.01167, allocations: 24.06 kB / 255.9 MB, free: 2.777 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.01168, allocations: 8 kB / 255.9 MB, free: 2.77 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003752/0.01205, allocations: 278.3 kB / 256.2 MB, free: 2.496 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001268/0.01332, allocations: 0.9808 MB / 257.2 MB, free: 1.469 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.01368, allocations: 256.9 kB / 257.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.01381, allocations: 97.7 kB / 257.5 MB, free: 1.098 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.45e-05/0.01385, allocations: 11.98 kB / 257.6 MB, free: 1.086 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003024/0.01416, allocations: 315 kB / 257.9 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of pre-optimization done (n=48): time 1.413e-06/0.01416, allocations: 0 / 257.9 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.002669/0.01683, allocations: 1.315 MB / 259.2 MB, free: 15.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.01686, allocations: 81.11 kB / 259.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003631/0.01722, allocations: 0.6187 MB / 259.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/0.01727, allocations: 45.7 kB / 259.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.792e-05/0.01736, allocations: 225.9 kB / 260.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.804e-05/0.01746, allocations: 178.6 kB / 260.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.01759, allocations: 118.2 kB / 260.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.322e-05/0.01769, allocations: 382.6 kB / 260.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.01788, allocations: 129.2 kB / 260.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.01806, allocations: 203 kB / 261.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002505/0.01831, allocations: 277.3 kB / 261.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.01831, allocations: 7.938 kB / 261.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0006391/0.01895, allocations: 487.5 kB / 261.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.01897, allocations: 4 kB / 261.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.01897, allocations: 4.219 kB / 261.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004828/0.01946, allocations: 418.2 kB / 262.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.01968, allocations: 115.8 kB / 262.4 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002563/0.02225, allocations: 3.621 MB / 266 MB, free: 8.195 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003546/0.0226, allocations: 151.8 kB / 266.2 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/0.02263, allocations: 19.94 kB / 266.2 MB, free: 8.027 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,supportFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,7), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.02277, allocations: 163.2 kB / 266.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.143e-05/0.02284, allocations: 55.94 kB / 266.4 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.263e-05/0.02293, allocations: 90.17 kB / 266.5 MB, free: 7.699 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.02293, allocations: 4 kB / 266.5 MB, free: 7.695 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.02293, allocations: 4.125 kB / 266.5 MB, free: 7.691 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.02294, allocations: 7.984 kB / 266.5 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009779/0.02391, allocations: 0.7165 MB / 267.2 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.02392, allocations: 3.938 kB / 267.2 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002007/0.02412, allocations: 87.88 kB / 267.3 MB, free: 6.836 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.02426, allocations: 87.48 kB / 267.4 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004332/0.02469, allocations: 410.2 kB / 267.8 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.104e-05/0.02472, allocations: 19.97 kB / 267.8 MB, free: 6.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002019/0.02674, allocations: 3.353 MB / 271.2 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.02674, allocations: 0 / 271.2 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007999/0.02754, allocations: 0.6523 MB / 271.8 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.431e-05/0.02761, allocations: 20 kB / 271.9 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/0.02803, allocations: 175.8 kB / 272 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006334/0.02866, allocations: 0.5068 MB / 272.5 MB, free: 1.387 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.505e-05/0.02869, allocations: 24.22 kB / 272.6 MB, free: 1.363 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000174/0.02887, allocations: 292.5 kB / 272.8 MB, free: 1.082 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02887, allocations: 0 / 272.8 MB, free: 1.082 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003777/0.02925, allocations: 179.9 kB / 273 MB, free: 0.9062 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,5), (1,5), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009952/0.03024, allocations: 0.5243 MB / 273.5 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005897/0.03083, allocations: 0.573 MB / 274.1 MB, free: 8 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.225e-05/0.03084, allocations: 8 kB / 274.1 MB, free: 0 / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00035/0.03119, allocations: 444 kB / 274.6 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.03153, allocations: 178.7 kB / 274.7 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/0.03399, allocations: 1.343 MB / 276.1 MB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.586e-05/0.03409, allocations: 165.7 kB / 276.2 MB, free: 13.8 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.03421, allocations: 51.33 kB / 276.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/0.03438, allocations: 119.3 kB / 276.4 MB, free: 13.63 MB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.03438, allocations: 0 / 276.4 MB, free: 13.63 MB / 282.7 MB Notification: Performance of Templates: time 0.1055/0.1399, allocations: 15.56 MB / 292 MB, free: 34.72 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/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: 3.016915623098612]