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.001044/0.001044, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001531/0.002575, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009929/0.0009929, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001721/0.002714, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.9326/0.9326, allocations: 173.4 MB / 185.9 MB, free: 8.914 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08007/1.013, allocations: 52.49 MB / 238.4 MB, free: 4.359 MB / 234.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.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 1.323e-06/1.323e-06, allocations: 0 / 239.7 MB, free: 3.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.449e-05/2.581e-05, allocations: 11.38 kB / 239.7 MB, free: 3.078 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.006715/0.006741, allocations: 3.002 MB / 242.7 MB, free: 52 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004932/0.01167, allocations: 1.176 MB / 243.9 MB, free: 14.87 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002687/0.01194, allocations: 7.938 kB / 243.9 MB, free: 14.86 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003005/0.01224, allocations: 83.22 kB / 244 MB, free: 14.78 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002466/0.01249, allocations: 122.9 kB / 244.1 MB, free: 14.66 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008344/0.01332, allocations: 411 kB / 244.5 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00074/0.01406, allocations: 0.8033 MB / 245.3 MB, free: 13.45 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.01423, allocations: 77.61 kB / 245.4 MB, free: 13.37 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003695/0.01792, allocations: 0.5115 MB / 245.9 MB, free: 12.86 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001108/0.01903, allocations: 1.252 MB / 247.2 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001243/0.01915, allocations: 68 kB / 247.2 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002563/0.01941, allocations: 120 kB / 247.3 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.01958, allocations: 168 kB / 247.5 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000182/0.01976, allocations: 171.6 kB / 247.7 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006763/0.02043, allocations: 0.5841 MB / 248.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.492e-05/0.02045, allocations: 4 kB / 248.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.02045, allocations: 0 / 248.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.02047, allocations: 0 / 248.3 MB, free: 10.5 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001552/0.02202, allocations: 1.227 MB / 249.5 MB, free: 9.242 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.02206, allocations: 12.03 kB / 249.5 MB, free: 9.23 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/0.02232, allocations: 72.86 kB / 249.6 MB, free: 9.16 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003808/0.0227, allocations: 321.5 kB / 249.9 MB, free: 8.82 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.796e-05/0.02274, allocations: 29.38 kB / 249.9 MB, free: 8.789 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.928e-05/0.02281, allocations: 40.38 kB / 250 MB, free: 8.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007967/0.0236, allocations: 0.7054 MB / 250.7 MB, free: 8.031 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.02362, allocations: 8.141 kB / 250.7 MB, free: 8.023 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.259e-05/0.02367, allocations: 20.12 kB / 250.7 MB, free: 8.004 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.02368, allocations: 8 kB / 250.7 MB, free: 7.996 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006281/0.0243, allocations: 0.7287 MB / 251.4 MB, free: 7.266 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.02621, allocations: 1.65 MB / 253.1 MB, free: 5.57 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004888/0.0267, allocations: 444.5 kB / 253.5 MB, free: 5.121 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002263/0.02693, allocations: 301.6 kB / 253.8 MB, free: 4.82 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.614e-05/0.02697, allocations: 8 kB / 253.8 MB, free: 4.812 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004081/0.02738, allocations: 495.1 kB / 254.3 MB, free: 4.309 MB / 250.7 MB Notification: Performance of pre-optimization done (n=47): time 1.643e-06/0.02738, allocations: 0 / 254.3 MB, free: 4.309 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.003368/0.03075, allocations: 2.765 MB / 257.1 MB, free: 1.465 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.03078, allocations: 85.05 kB / 257.1 MB, free: 1.363 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003656/0.03115, allocations: 0.6444 MB / 257.8 MB, free: 0.707 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.549e-05/0.03121, allocations: 49.69 kB / 257.8 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.03131, allocations: 217.9 kB / 258 MB, free: 448 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.03142, allocations: 174.7 kB / 258.2 MB, free: 272 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.03155, allocations: 118.2 kB / 258.3 MB, free: 148 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.03165, allocations: 386.6 kB / 258.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003207/0.03197, allocations: 373.1 kB / 259.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002882/0.03226, allocations: 442.9 kB / 259.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004789/0.03274, allocations: 0.7471 MB / 260.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.03274, allocations: 4 kB / 260.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001018/0.03376, allocations: 1.162 MB / 261.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.03378, allocations: 7.938 kB / 261.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.03379, allocations: 7.984 kB / 261.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009652/0.03475, allocations: 1.42 MB / 262.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002389/0.03499, allocations: 119.8 kB / 263 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003157/0.03815, allocations: 4.818 MB / 267.8 MB, free: 6.395 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004507/0.0386, allocations: 139.8 kB / 267.9 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.339e-05/0.03863, allocations: 15.98 kB / 267.9 MB, free: 6.242 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,6), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002073/0.03884, allocations: 171.1 kB / 268.1 MB, free: 6.062 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.547e-05/0.03893, allocations: 59.94 kB / 268.2 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.283e-05/0.03901, allocations: 86.17 kB / 268.3 MB, free: 5.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.03901, allocations: 4 kB / 268.3 MB, free: 5.906 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.03902, allocations: 3.984 kB / 268.3 MB, free: 5.902 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.03902, allocations: 4 kB / 268.3 MB, free: 5.898 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001507/0.04053, allocations: 1.663 MB / 269.9 MB, free: 4.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.04053, allocations: 0 / 269.9 MB, free: 4.199 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002056/0.04074, allocations: 95.88 kB / 270 MB, free: 4.105 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.0409, allocations: 83.48 kB / 270.1 MB, free: 4.023 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/0.04196, allocations: 1.412 MB / 271.5 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.173e-05/0.042, allocations: 27.95 kB / 271.5 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1128/0.1548, allocations: 4.501 MB / 276 MB, free: 25.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.1548, allocations: 1.125 kB / 276 MB, free: 25.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002137/0.1569, allocations: 1.637 MB / 277.7 MB, free: 25.72 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.157, allocations: 22.14 kB / 277.7 MB, free: 25.72 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006491/0.1577, allocations: 179.9 kB / 277.9 MB, free: 25.72 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001006/0.1587, allocations: 0.5123 MB / 278.4 MB, free: 25.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.168e-05/0.1587, allocations: 25.83 kB / 278.4 MB, free: 25.72 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003602/0.1591, allocations: 314.2 kB / 278.7 MB, free: 25.69 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1591, allocations: 0.9062 kB / 278.7 MB, free: 25.69 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000748/0.1599, allocations: 191.9 kB / 278.9 MB, free: 25.69 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002815/0.1601, allocations: 141 kB / 279 MB, free: 25.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.1614, allocations: 1.021 MB / 280.1 MB, free: 25.38 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-05/0.1614, allocations: 9.312 kB / 280.1 MB, free: 25.38 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007019/0.1621, allocations: 0.6385 MB / 280.7 MB, free: 25.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005737/0.1627, allocations: 453.7 kB / 281.2 MB, free: 24.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003779/0.1665, allocations: 1.454 MB / 282.6 MB, free: 24.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000181/0.1667, allocations: 168.8 kB / 282.8 MB, free: 24.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001869/0.1668, allocations: 42.31 kB / 282.8 MB, free: 24.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002383/0.1671, allocations: 119.8 kB / 282.9 MB, free: 24.15 MB / 266.7 MB Notification: Performance of SimCode: time 1.152e-06/0.1671, allocations: 0 / 282.9 MB, free: 24.15 MB / 266.7 MB Notification: Performance of Templates: time 0.02241/0.1895, allocations: 20.44 MB / 303.4 MB, free: 8.871 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9822504222393036]