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.001317/0.001317, allocations: 112.9 kB / 18.41 MB, free: 4.637 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.001294/0.001294, allocations: 190.9 kB / 21.35 MB, free: 1.703 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.501/1.501, allocations: 222.9 MB / 247 MB, free: 4.336 MB / 190.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.001857/0.001857, allocations: 47.91 kB / 358.7 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.133, allocations: 49.43 MB / 408.1 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004801/0.1378, allocations: 3.009 MB / 411.1 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002219/0.1401, allocations: 1.15 MB / 412.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001669/0.1403, allocations: 7.938 kB / 412.3 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004329/0.1407, allocations: 87.28 kB / 412.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002212/0.141, allocations: 107 kB / 412.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009152/0.1419, allocations: 411 kB / 412.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008813/0.1428, allocations: 0.8074 MB / 413.7 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002391/0.143, allocations: 93.59 kB / 413.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005546/0.1436, allocations: 363.1 kB / 414.1 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001643/0.1453, allocations: 1.335 MB / 415.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.1454, allocations: 68 kB / 415.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002395/0.1457, allocations: 119.9 kB / 415.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002491/0.1459, allocations: 231.8 kB / 415.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003476/0.1463, allocations: 350 kB / 416.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009785/0.1473, allocations: 0.8755 MB / 417.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1473, allocations: 4 kB / 417.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1473, allocations: 0 / 417.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.527e-06/0.1473, allocations: 0 / 417.1 MB, free: 13.96 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003809/0.1511, allocations: 1.345 MB / 418.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.1512, allocations: 19.97 kB / 418.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001579/0.1513, allocations: 80.45 kB / 418.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006299/0.152, allocations: 432.1 kB / 418.9 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-05/0.152, allocations: 29.38 kB / 419 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.589e-05/0.1521, allocations: 40.33 kB / 419 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001942/0.1541, allocations: 1.158 MB / 420.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.1541, allocations: 4 kB / 420.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.418e-05/0.1542, allocations: 19.94 kB / 420.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.1542, allocations: 8 kB / 420.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002815/0.157, allocations: 1.744 MB / 421.9 MB, free: 8.984 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004535/0.1616, allocations: 2.475 MB / 424.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/0.1634, allocations: 0.903 MB / 425.3 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001205/0.1646, allocations: 0.7128 MB / 426 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.605e-05/0.1647, allocations: 8 kB / 426 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001542/0.1663, allocations: 0.9044 MB / 426.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 2.274e-06/0.1663, allocations: 0 / 426.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.2486/0.4148, allocations: 5.79 MB / 432.7 MB, free: 24.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.346e-05/0.4149, allocations: 88.42 kB / 432.8 MB, free: 24.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00106/0.416, allocations: 0.9103 MB / 433.7 MB, free: 23.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001052/0.4161, allocations: 48.47 kB / 433.8 MB, free: 23.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002236/0.4163, allocations: 301.3 kB / 434.1 MB, free: 23.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001957/0.4165, allocations: 173.6 kB / 434.2 MB, free: 23.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000356/0.4169, allocations: 118.5 kB / 434.3 MB, free: 23.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.4171, allocations: 387.9 kB / 434.7 MB, free: 23.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.4185, allocations: 0.8453 MB / 435.6 MB, free: 23.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001427/0.4199, allocations: 0.9366 MB / 436.5 MB, free: 23.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002176/0.4221, allocations: 1.466 MB / 438 MB, free: 23.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4221, allocations: 1.375 kB / 438 MB, free: 23.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004341/0.4265, allocations: 2.483 MB / 440.5 MB, free: 23.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.4265, allocations: 9.625 kB / 440.5 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.4265, allocations: 3.344 kB / 440.5 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002426/0.429, allocations: 1.903 MB / 442.4 MB, free: 23.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005522/0.4295, allocations: 116.2 kB / 442.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0077/0.4373, allocations: 6.711 MB / 449.2 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.439, allocations: 232 kB / 449.4 MB, free: 19.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.719e-05/0.4391, allocations: 21.23 kB / 449.4 MB, free: 19.52 MB / 350.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.000457/0.4396, allocations: 262.2 kB / 449.7 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.4397, allocations: 74.47 kB / 449.8 MB, free: 19.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002027/0.4399, allocations: 106.7 kB / 449.9 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.4399, allocations: 8.656 kB / 449.9 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.44, allocations: 3.859 kB / 449.9 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.44, allocations: 4.266 kB / 449.9 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004229/0.4442, allocations: 3.089 MB / 453 MB, free: 18.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.77e-06/0.4442, allocations: 3.562 kB / 453 MB, free: 18.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004875/0.4447, allocations: 87.95 kB / 453.1 MB, free: 18.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001617/0.4463, allocations: 1.866 MB / 454.9 MB, free: 17.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.646e-05/0.4464, allocations: 22.17 kB / 455 MB, free: 17.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005719/0.4522, allocations: 6.332 MB / 461.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.4522, allocations: 0 / 461.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004021/0.4562, allocations: 3.239 MB / 464.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003123/0.4566, allocations: 217 kB / 464.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.4567, allocations: 23.06 kB / 464.8 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001649/0.4583, allocations: 270.3 kB / 465 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001304/0.4597, allocations: 0.5578 MB / 465.6 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.174e-05/0.4598, allocations: 27.97 kB / 465.6 MB, free: 6.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006122/0.4604, allocations: 0.6787 MB / 466.3 MB, free: 6.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.1e-07/0.4604, allocations: 4 kB / 466.3 MB, free: 6.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009161/0.4613, allocations: 182.1 kB / 466.5 MB, free: 6.035 MB / 350.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.0003326/0.4617, allocations: 155.9 kB / 466.6 MB, free: 5.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.4644, allocations: 1.92 MB / 468.5 MB, free: 3.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.4644, allocations: 0 / 468.5 MB, free: 3.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.4658, allocations: 1.051 MB / 469.6 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006696/0.4665, allocations: 83.44 kB / 469.7 MB, free: 2.793 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004137/0.4706, allocations: 2.024 MB / 471.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005067/0.4712, allocations: 0.9143 MB / 472.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.4714, allocations: 43.42 kB / 472.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of SimCode: time 1.673e-06/0.4714, allocations: 4 kB / 472.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of Templates: time 0.02231/0.4937, allocations: 13.74 MB / 486.4 MB, free: 2.043 MB / 366.1 MB " [Timeout remaining time 659] 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.492697824025527]