Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.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.001693/0.001693, allocations: 108.6 kB / 21.18 MB, free: 0.7578 MB / 14.72 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.002022/0.002022, allocations: 189.2 kB / 24.47 MB, free: 4.16 MB / 14.72 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 1.526/1.526, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 47.91 kB / 371.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2567, allocations: 52.18 MB / 423.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004586/0.2613, allocations: 3.033 MB / 426.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002241/0.2636, allocations: 1.173 MB / 428.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.2637, allocations: 4 kB / 428.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004635/0.2642, allocations: 87.22 kB / 428.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002152/0.2644, allocations: 115 kB / 428.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00092/0.2653, allocations: 421.4 kB / 428.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008728/0.2662, allocations: 0.8035 MB / 429.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.2664, allocations: 61.75 kB / 429.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005091/0.2669, allocations: 375.1 kB / 429.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001646/0.2685, allocations: 1.342 MB / 431.3 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.2687, allocations: 68 kB / 431.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002219/0.2689, allocations: 123.9 kB / 431.4 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002551/0.2691, allocations: 231.8 kB / 431.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003585/0.2695, allocations: 342.1 kB / 432 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.2705, allocations: 0.8809 MB / 432.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2706, allocations: 0 / 432.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2706, allocations: 0 / 432.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.2706, allocations: 0 / 432.9 MB, free: 5.816 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003745/0.2743, allocations: 1.416 MB / 434.3 MB, free: 4.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2743, allocations: 8.031 kB / 434.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.2745, allocations: 84.42 kB / 434.4 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005903/0.2751, allocations: 378.2 kB / 434.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.789e-05/0.2751, allocations: 33.36 kB / 434.8 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.895e-05/0.2752, allocations: 32.38 kB / 434.8 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001928/0.2772, allocations: 1.157 MB / 436 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.2772, allocations: 0 / 436 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.557e-05/0.2772, allocations: 16 kB / 436 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.2773, allocations: 12 kB / 436 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002879/0.2801, allocations: 1.752 MB / 437.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004658/0.2848, allocations: 2.436 MB / 440.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001724/0.2865, allocations: 0.8913 MB / 441.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/0.2878, allocations: 0.6967 MB / 441.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.128e-05/0.2879, allocations: 12.5 kB / 441.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001518/0.2894, allocations: 0.9044 MB / 442.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 1.854e-06/0.2894, allocations: 0 / 442.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.01147/0.3009, allocations: 5.41 MB / 448.1 MB, free: 6.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/0.3009, allocations: 85.11 kB / 448.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001235/0.3022, allocations: 0.9142 MB / 449.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.347e-05/0.3022, allocations: 49.69 kB / 449.2 MB, free: 5.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.3025, allocations: 296.7 kB / 449.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.3027, allocations: 174.7 kB / 449.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002366/0.3029, allocations: 118.3 kB / 449.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.3031, allocations: 382.7 kB / 450.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/0.3045, allocations: 0.8485 MB / 451 MB, free: 3.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.3059, allocations: 0.9402 MB / 451.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002265/0.3082, allocations: 1.472 MB / 453.4 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.3082, allocations: 8 kB / 453.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004042/0.3122, allocations: 2.475 MB / 455.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.3122, allocations: 4 kB / 455.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.3123, allocations: 4 kB / 455.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002328/0.3146, allocations: 1.9 MB / 457.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005219/0.3151, allocations: 111.8 kB / 457.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008391/0.3235, allocations: 6.514 MB / 464.4 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.3249, allocations: 227.7 kB / 464.6 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.585e-05/0.325, allocations: 23.98 kB / 464.6 MB, free: 5.41 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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000436/0.3254, allocations: 256.5 kB / 464.9 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.3256, allocations: 71.53 kB / 465 MB, free: 5.082 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002122/0.3258, allocations: 106.2 kB / 465.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.3258, allocations: 16.03 kB / 465.1 MB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3258, allocations: 0 / 465.1 MB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3258, allocations: 3.984 kB / 465.1 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004401/0.3302, allocations: 3.059 MB / 468.1 MB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3302, allocations: 0 / 468.1 MB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004844/0.3307, allocations: 83.94 kB / 468.2 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/0.3328, allocations: 1.865 MB / 470.1 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.809e-05/0.3329, allocations: 19.97 kB / 470.1 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007431/0.3403, allocations: 6.127 MB / 476.2 MB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3403, allocations: 7.969 kB / 476.2 MB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005079/0.3454, allocations: 3.225 MB / 479.5 MB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003561/0.3458, allocations: 135.5 kB / 479.6 MB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.3459, allocations: 20 kB / 479.6 MB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/0.3475, allocations: 267.6 kB / 479.9 MB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001368/0.3488, allocations: 0.5771 MB / 480.5 MB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.062e-05/0.3489, allocations: 31.95 kB / 480.5 MB, free: 5.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007553/0.3497, allocations: 0.6748 MB / 481.2 MB, free: 4.512 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3497, allocations: 0 / 481.2 MB, free: 4.512 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007732/0.3504, allocations: 187.9 kB / 481.3 MB, free: 4.328 MB / 382.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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002786/0.3507, allocations: 159.3 kB / 481.5 MB, free: 4.164 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003103/0.3538, allocations: 1.871 MB / 483.4 MB, free: 2.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3538, allocations: 0 / 483.4 MB, free: 2.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.3555, allocations: 1.033 MB / 484.4 MB, free: 1.211 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006267/0.3561, allocations: 79.03 kB / 484.5 MB, free: 1.133 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004446/0.3606, allocations: 2.036 MB / 486.5 MB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006108/0.3612, allocations: 0.9183 MB / 487.4 MB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.3614, allocations: 47.41 kB / 487.5 MB, free: 14.06 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3614, allocations: 0 / 487.5 MB, free: 14.06 MB / 398.1 MB Notification: Performance of Templates: time 0.02058/0.3819, allocations: 13.76 MB / 0.4895 GB, free: 308 kB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 9.28475065715611]