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.001397/0.001397, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.558/1.558, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 101.7 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.348e-05/3.352e-05, allocations: 4 kB / 343.8 MB, free: 4.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 50.42 MB / 394.2 MB, free: 1.867 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3899/0.5024, allocations: 82.33 MB / 476.6 MB, free: 5.223 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/0.5027, allocations: 71.8 kB / 476.6 MB, free: 5.156 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04207/0.5448, allocations: 13.87 MB / 490.5 MB, free: 7.254 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5448, allocations: 0 / 490.5 MB, free: 7.254 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.262e-05/0.5449, allocations: 15.98 kB / 490.5 MB, free: 7.238 MB / 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.00279/0.5477, allocations: 1.08 MB / 491.6 MB, free: 6.113 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.5477, allocations: 8.031 kB / 491.6 MB, free: 6.105 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001836/0.5479, allocations: 79.06 kB / 491.7 MB, free: 6.027 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000799/0.5487, allocations: 494.8 kB / 492.2 MB, free: 5.504 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.689e-05/0.5488, allocations: 28.78 kB / 492.2 MB, free: 5.477 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.5489, allocations: 39.91 kB / 492.2 MB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.5504, allocations: 0.8812 MB / 493.1 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.5504, allocations: 0 / 493.1 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.956e-05/0.5505, allocations: 16 kB / 493.1 MB, free: 4.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.5505, allocations: 11.94 kB / 493.2 MB, free: 4.508 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001719/0.5523, allocations: 1.049 MB / 494.2 MB, free: 3.461 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005216/0.5575, allocations: 2.4 MB / 496.6 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.5585, allocations: 0.6532 MB / 497.3 MB, free: 312 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007995/0.5594, allocations: 0.4904 MB / 497.7 MB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.238e-05/0.5595, allocations: 19.91 kB / 497.8 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001173/0.5606, allocations: 0.7443 MB / 498.5 MB, free: 15.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.535e-06/0.5607, allocations: 0 / 498.5 MB, free: 15.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=51): time 0.007074/0.5677, allocations: 3.319 MB / 0.4901 GB, free: 11.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.907e-05/0.5678, allocations: 89.11 kB / 0.4902 GB, free: 11.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008592/0.5687, allocations: 0.5267 MB / 0.4907 GB, free: 10.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001332/0.5689, allocations: 49.7 kB / 0.4907 GB, free: 10.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/0.5691, allocations: 292.4 kB / 0.491 GB, free: 10.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.5694, allocations: 177.8 kB / 0.4912 GB, free: 10.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.478e-05/0.5694, allocations: 8 kB / 0.4912 GB, free: 10.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.5696, allocations: 378.8 kB / 0.4915 GB, free: 10.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008374/0.5705, allocations: 0.513 MB / 0.492 GB, free: 9.539 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009209/0.5714, allocations: 0.6017 MB / 0.4926 GB, free: 8.906 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007773/0.5722, allocations: 451.6 kB / 0.493 GB, free: 8.469 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.5722, allocations: 0 / 0.493 GB, free: 8.469 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003106/0.5753, allocations: 1.682 MB / 0.4947 GB, free: 6.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.5754, allocations: 7.953 kB / 0.4947 GB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.759e-05/0.5754, allocations: 8 kB / 0.4947 GB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006099/0.5815, allocations: 4.145 MB / 0.4988 GB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007481/0.5823, allocations: 115.9 kB / 0.4989 GB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008934/0.5912, allocations: 5.391 MB / 0.5041 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.593, allocations: 299.8 kB / 0.5044 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000265/0.5933, allocations: 108 kB / 0.5045 GB, free: 12.4 MB / 394.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 () * 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.0004772/0.5938, allocations: 147.3 kB / 0.5047 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002943/0.5941, allocations: 75.09 kB / 0.5047 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003419/0.5975, allocations: 1.478 MB / 0.5062 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.5975, allocations: 4 kB / 0.5062 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.5976, allocations: 7.984 kB / 0.5062 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.5976, allocations: 4 kB / 0.5062 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005129/0.6027, allocations: 2.529 MB / 0.5087 GB, free: 8.055 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.6027, allocations: 0 / 0.5087 GB, free: 8.055 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000542/0.6033, allocations: 91.88 kB / 0.5087 GB, free: 7.965 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005485/0.6088, allocations: 4.157 MB / 0.5128 GB, free: 3.793 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001365/0.609, allocations: 43.95 kB / 0.5128 GB, free: 3.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007128/0.6161, allocations: 5.107 MB / 0.5178 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.6161, allocations: 7.938 kB / 0.5178 GB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00455/0.6207, allocations: 2.259 MB / 0.52 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007733/0.6215, allocations: 308.2 kB / 0.5203 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002009/0.6217, allocations: 27.95 kB / 0.5204 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/0.6234, allocations: 299.7 kB / 0.5207 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001505/0.6249, allocations: 0.6588 MB / 0.5213 GB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001927/0.6251, allocations: 91.91 kB / 0.5214 GB, free: 10.63 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008792/0.626, allocations: 0.5147 MB / 0.5219 GB, free: 10.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.626, allocations: 0 / 0.5219 GB, free: 10.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00116/0.6272, allocations: 236 kB / 0.5221 GB, free: 9.891 MB / 410.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) * 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.0004583/0.6276, allocations: 168.7 kB / 0.5223 GB, free: 9.719 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002694/0.6304, allocations: 1.357 MB / 0.5236 GB, free: 8.328 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.6304, allocations: 0 / 0.5236 GB, free: 8.328 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001638/0.632, allocations: 0.8447 MB / 0.5244 GB, free: 7.457 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007189/0.6328, allocations: 60.38 kB / 0.5245 GB, free: 7.398 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00545/0.6382, allocations: 1.855 MB / 0.5263 GB, free: 5.508 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006319/0.6389, allocations: 0.9301 MB / 0.5272 GB, free: 4.551 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002732/0.6392, allocations: 43.28 kB / 0.5272 GB, free: 4.512 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.6393, allocations: 35.42 kB / 0.5273 GB, free: 4.477 MB / 410.7 MB Notification: Performance of SimCode: time 8.62e-07/0.6393, allocations: 3.938 kB / 0.5273 GB, free: 4.473 MB / 410.7 MB Notification: Performance of Templates: time 0.2887/0.928, allocations: 20.65 MB / 0.5474 GB, free: 135.9 MB / 426.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