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.001493/0.001493, allocations: 112.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 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.002006/0.002006, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 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 1.385/1.385, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001621/0.001621, allocations: 51.92 kB / 379 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2369, allocations: 53.36 MB / 432.4 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004421/0.2413, allocations: 3.153 MB / 435.5 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.2434, allocations: 1.352 MB / 436.9 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.2435, allocations: 8 kB / 436.9 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004037/0.2439, allocations: 107.1 kB / 437 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.2442, allocations: 118.9 kB / 437.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007535/0.2449, allocations: 418.9 kB / 437.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008165/0.2457, allocations: 0.827 MB / 438.4 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.2459, allocations: 69.7 kB / 438.4 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000506/0.2464, allocations: 383.1 kB / 438.8 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001667/0.2481, allocations: 1.475 MB / 440.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.2482, allocations: 68 kB / 440.3 MB, free: 15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002298/0.2484, allocations: 132 kB / 440.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002401/0.2486, allocations: 235.8 kB / 440.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003389/0.249, allocations: 366.1 kB / 441.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009527/0.2499, allocations: 0.9076 MB / 442 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2499, allocations: 0 / 442 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.2499, allocations: 4 kB / 442 MB, free: 13.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.2499, allocations: 0 / 442 MB, free: 13.38 MB / 350.1 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.003636/0.2536, allocations: 1.439 MB / 443.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.2536, allocations: 12.03 kB / 443.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004478/0.2541, allocations: 104.4 kB / 443.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006151/0.2547, allocations: 378.2 kB / 443.9 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.862e-05/0.2547, allocations: 29.38 kB / 443.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.204e-05/0.2548, allocations: 40.38 kB / 444 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.2562, allocations: 0.638 MB / 444.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.2563, allocations: 7.953 kB / 444.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.491e-05/0.2563, allocations: 15.98 kB / 444.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.2563, allocations: 12 kB / 444.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/0.2582, allocations: 0.6857 MB / 445.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003527/0.2617, allocations: 1.635 MB / 446.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/0.2631, allocations: 480.9 kB / 447.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008041/0.2639, allocations: 293.5 kB / 447.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.661e-05/0.264, allocations: 8 kB / 447.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.2651, allocations: 482.3 kB / 448.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.744e-06/0.2651, allocations: 0 / 448.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.008394/0.2735, allocations: 2.436 MB / 450.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.2735, allocations: 89.09 kB / 450.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009874/0.2745, allocations: 0.9103 MB / 451.6 MB, free: 3.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.984e-05/0.2746, allocations: 45.7 kB / 451.7 MB, free: 3.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/0.2748, allocations: 316.6 kB / 452 MB, free: 3.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.275, allocations: 174.6 kB / 452.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/0.2752, allocations: 130.2 kB / 452.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.2754, allocations: 390.7 kB / 452.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008756/0.2763, allocations: 317.1 kB / 453 MB, free: 2.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009403/0.2773, allocations: 419 kB / 453.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.2787, allocations: 0.5091 MB / 453.9 MB, free: 1.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2787, allocations: 0 / 453.9 MB, free: 1.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00267/0.2814, allocations: 0.9875 MB / 454.9 MB, free: 88 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.2814, allocations: 11.94 kB / 454.9 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.2814, allocations: 0 / 454.9 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.2825, allocations: 0.5451 MB / 455.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005076/0.283, allocations: 107.9 kB / 455.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006377/0.2894, allocations: 4.537 MB / 460.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/0.2907, allocations: 227.8 kB / 460.3 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.946e-05/0.2907, allocations: 23.98 kB / 460.3 MB, free: 10.38 MB / 366.1 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 (supportFriction.free,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,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003944/0.2911, allocations: 264.2 kB / 460.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.2913, allocations: 75.52 kB / 460.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/0.2915, allocations: 102.2 kB / 460.7 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2915, allocations: 8 kB / 460.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2915, allocations: 192 / 460.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.2915, allocations: 7.984 kB / 460.8 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003025/0.2945, allocations: 1.369 MB / 462.1 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2945, allocations: 4.031 kB / 462.1 MB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/0.295, allocations: 83.88 kB / 462.2 MB, free: 8.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009555/0.2959, allocations: 0.5177 MB / 462.7 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.71e-05/0.296, allocations: 27.95 kB / 462.8 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005496/0.3015, allocations: 4.155 MB / 466.9 MB, free: 3.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3015, allocations: 3.938 kB / 466.9 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003358/0.3049, allocations: 1.265 MB / 468.2 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003278/0.3052, allocations: 131.5 kB / 468.3 MB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.3053, allocations: 20 kB / 468.3 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00157/0.3069, allocations: 271.6 kB / 468.6 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001312/0.3082, allocations: 0.581 MB / 469.2 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.608e-05/0.3083, allocations: 31.95 kB / 469.2 MB, free: 1.094 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007515/0.309, allocations: 0.667 MB / 469.9 MB, free: 444 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.309, allocations: 0 / 469.9 MB, free: 444 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.000743/0.3098, allocations: 187.9 kB / 470.1 MB, free: 256 kB / 366.1 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.001393/0.3112, allocations: 409.4 kB / 470.5 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002333/0.3135, allocations: 0.9256 MB / 471.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3135, allocations: 0 / 471.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.3148, allocations: 0.6149 MB / 472 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005715/0.3154, allocations: 66.91 kB / 472.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004437/0.3198, allocations: 1.967 MB / 474 MB, free: 12.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006163/0.3204, allocations: 0.9374 MB / 475 MB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.3206, allocations: 47.42 kB / 475 MB, free: 11.3 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3206, allocations: 3.938 kB / 475 MB, free: 11.3 MB / 382.1 MB Notification: Performance of Templates: time 0.02105/0.3416, allocations: 14.18 MB / 489.2 MB, free: 13.11 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.564379644114524]