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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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=10000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009015/0.0009016, allocations: 97.12 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000253/0.0002531, allocations: 8 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2083, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09535/0.3037, allocations: 82.41 MB / 483.9 MB, free: 14.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.304, allocations: 79.95 kB / 484 MB, free: 13.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03958/0.3436, allocations: 13.89 MB / 497.9 MB, free: 68 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3436, allocations: 0 / 497.9 MB, free: 68 kB / 362.7 MB Notification: Performance of Transformations before backend: time 2.918e-05/0.3436, allocations: 16 kB / 497.9 MB, free: 52 kB / 362.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.002694/0.3463, allocations: 1.172 MB / 499.1 MB, free: 14.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.3464, allocations: 8.031 kB / 499.1 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.3465, allocations: 79.06 kB / 499.1 MB, free: 14.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008592/0.3474, allocations: 498.9 kB / 499.6 MB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.145e-05/0.3475, allocations: 29 kB / 499.7 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.3476, allocations: 39.94 kB / 499.7 MB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001827/0.3494, allocations: 0.9657 MB / 0.4889 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.3494, allocations: 3.906 kB / 0.4889 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.139e-05/0.3495, allocations: 16 kB / 0.4889 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.3496, allocations: 8 kB / 0.489 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002442/0.352, allocations: 1.205 MB / 0.4901 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005102/0.3571, allocations: 2.396 MB / 0.4925 GB, free: 9.453 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.3587, allocations: 0.7625 MB / 0.4932 GB, free: 8.672 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.354e-05/0.3587, allocations: 12.8 kB / 0.4932 GB, free: 8.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001461/0.3602, allocations: 0.8261 MB / 0.494 GB, free: 7.816 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 3.406e-06/0.3602, allocations: 0 / 0.494 GB, free: 7.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=51): time 0.01167/0.3719, allocations: 5.125 MB / 0.499 GB, free: 2.535 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/0.372, allocations: 81.11 kB / 0.4991 GB, free: 2.438 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006349/0.3726, allocations: 0.5384 MB / 0.4996 GB, free: 1.891 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001241/0.3728, allocations: 45.7 kB / 0.4997 GB, free: 1.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/0.373, allocations: 292.4 kB / 0.5 GB, free: 1.551 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.3732, allocations: 169.8 kB / 0.5001 GB, free: 1.383 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.819e-05/0.3732, allocations: 12 kB / 0.5001 GB, free: 1.371 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.3734, allocations: 378.8 kB / 0.5005 GB, free: 0.9922 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001177/0.3746, allocations: 0.5985 MB / 0.5011 GB, free: 404 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1839/0.5585, allocations: 0.6759 MB / 0.5017 GB, free: 99.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001483/0.56, allocations: 0.5147 MB / 0.5022 GB, free: 99.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.56, allocations: 5.719 kB / 0.5023 GB, free: 99.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.004462/0.5645, allocations: 1.844 MB / 0.5041 GB, free: 99.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.5645, allocations: 8.984 kB / 0.5041 GB, free: 99.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.443e-05/0.5646, allocations: 9.828 kB / 0.5041 GB, free: 99.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004775/0.5694, allocations: 4.187 MB / 0.5082 GB, free: 99.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005025/0.5699, allocations: 124.4 kB / 0.5083 GB, free: 99.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006306/0.5762, allocations: 5.413 MB / 0.5136 GB, free: 96.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.5776, allocations: 295.6 kB / 0.5138 GB, free: 96.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.5777, allocations: 108.3 kB / 0.5139 GB, free: 96.02 MB / 378.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 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004516/0.5782, allocations: 265.2 kB / 0.5142 GB, free: 95.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.5783, allocations: 67.78 kB / 0.5143 GB, free: 95.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002917/0.5813, allocations: 1.576 MB / 0.5158 GB, free: 95.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.5813, allocations: 5.156 kB / 0.5158 GB, free: 95.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.5813, allocations: 2 kB / 0.5158 GB, free: 95.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.5813, allocations: 0 / 0.5158 GB, free: 95.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004342/0.5857, allocations: 2.614 MB / 0.5184 GB, free: 93.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.5857, allocations: 0 / 0.5184 GB, free: 93.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004593/0.5862, allocations: 91.69 kB / 0.5185 GB, free: 93.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004106/0.5903, allocations: 4.207 MB / 0.5226 GB, free: 89.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.632e-05/0.5904, allocations: 35.92 kB / 0.5226 GB, free: 89.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00511/0.5955, allocations: 5.161 MB / 0.5276 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.5955, allocations: 32 / 0.5276 GB, free: 83.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004319/0.5999, allocations: 2.506 MB / 0.5301 GB, free: 81.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006427/0.6005, allocations: 307.7 kB / 0.5304 GB, free: 80.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001275/0.6007, allocations: 24 kB / 0.5304 GB, free: 80.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/0.6021, allocations: 307.7 kB / 0.5307 GB, free: 80.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001241/0.6033, allocations: 0.6549 MB / 0.5313 GB, free: 79.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001189/0.6034, allocations: 95.95 kB / 0.5314 GB, free: 79.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005192/0.604, allocations: 0.5146 MB / 0.5319 GB, free: 79.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.604, allocations: 0 / 0.5319 GB, free: 79.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008277/0.6048, allocations: 236 kB / 0.5322 GB, free: 79.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002633/0.6051, allocations: 168 kB / 0.5323 GB, free: 78.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002515/0.6076, allocations: 1.518 MB / 0.5338 GB, free: 77.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.6076, allocations: 0 / 0.5338 GB, free: 77.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001475/0.6091, allocations: 0.9267 MB / 0.5347 GB, free: 76.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004953/0.6096, allocations: 62.92 kB / 0.5348 GB, free: 76.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003996/0.6136, allocations: 2.221 MB / 0.5369 GB, free: 74.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003989/0.614, allocations: 0.9407 MB / 0.5378 GB, free: 73.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002616/0.6143, allocations: 35.28 kB / 0.5379 GB, free: 73.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.6144, allocations: 35.42 kB / 0.5379 GB, free: 73.11 MB / 378.7 MB Notification: Performance of SimCode: time 8.42e-07/0.6144, allocations: 0 / 0.5379 GB, free: 73.11 MB / 378.7 MB Notification: Performance of Templates: time 0.02713/0.6416, allocations: 20.64 MB / 0.5581 GB, free: 52.41 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches