Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009704/0.0009704, allocations: 181.1 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.484/1.484, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008231/0.0008231, allocations: 96.03 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003199/0.0003199, allocations: 8 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2767, allocations: 47.56 MB / 375.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0975/0.3743, allocations: 80.78 MB / 456.6 MB, free: 15.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.3746, allocations: 71.97 kB / 456.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04032/0.4149, allocations: 13.73 MB / 470.4 MB, free: 2.055 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.415, allocations: 0 / 470.4 MB, free: 2.055 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.237e-05/0.415, allocations: 12 kB / 470.4 MB, free: 2.043 MB / 346.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.002858/0.4179, allocations: 1.176 MB / 471.6 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.4179, allocations: 12.03 kB / 471.6 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.4181, allocations: 71.16 kB / 471.7 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009018/0.419, allocations: 0.4909 MB / 472.1 MB, free: 208 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.435e-05/0.4191, allocations: 29 kB / 472.2 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.4192, allocations: 40 kB / 472.2 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00188/0.4211, allocations: 0.9502 MB / 473.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.4211, allocations: 15.89 kB / 473.2 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-05/0.4212, allocations: 16 kB / 473.2 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.4212, allocations: 12 kB / 473.2 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002527/0.4238, allocations: 1.205 MB / 474.4 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00503/0.4288, allocations: 2.401 MB / 476.8 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.4304, allocations: 0.7585 MB / 477.6 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.653e-05/0.4305, allocations: 8 kB / 477.6 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001571/0.4321, allocations: 0.83 MB / 478.4 MB, free: 9.809 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.996e-06/0.4321, allocations: 0 / 478.4 MB, free: 9.809 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.01218/0.4443, allocations: 5.121 MB / 483.5 MB, free: 4.531 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.4444, allocations: 89.11 kB / 483.6 MB, free: 4.426 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006491/0.445, allocations: 0.5306 MB / 484.1 MB, free: 3.887 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.4451, allocations: 49.69 kB / 484.2 MB, free: 3.832 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.4454, allocations: 292.4 kB / 484.5 MB, free: 3.539 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.4455, allocations: 173.7 kB / 484.7 MB, free: 3.367 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.742e-05/0.4456, allocations: 16 kB / 484.7 MB, free: 3.352 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.4458, allocations: 382.7 kB / 485 MB, free: 2.969 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.447, allocations: 0.5908 MB / 485.6 MB, free: 2.379 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001241/0.4482, allocations: 0.6823 MB / 486.3 MB, free: 1.664 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.4493, allocations: 0.5175 MB / 486.8 MB, free: 1.148 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4493, allocations: 0 / 486.8 MB, free: 1.148 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003789/0.4531, allocations: 1.85 MB / 488.7 MB, free: 15.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.4531, allocations: 4 kB / 488.7 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.103e-05/0.4532, allocations: 16.03 kB / 488.7 MB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005126/0.4583, allocations: 4.18 MB / 492.9 MB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005225/0.4589, allocations: 115.9 kB / 493 MB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007664/0.4665, allocations: 5.415 MB / 498.4 MB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/0.4681, allocations: 303.7 kB / 498.7 MB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001785/0.4683, allocations: 111.9 kB / 498.8 MB, free: 4.84 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.0005819/0.4689, allocations: 260 kB / 499.1 MB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.469, allocations: 63.25 kB / 499.1 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00329/0.4723, allocations: 1.571 MB / 0.489 GB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.4723, allocations: 8 kB / 0.489 GB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.4724, allocations: 0 / 0.489 GB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.4724, allocations: 3.984 kB / 0.489 GB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005135/0.4775, allocations: 2.614 MB / 0.4915 GB, free: 224 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.4775, allocations: 128 / 0.4915 GB, free: 224 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005136/0.4781, allocations: 99.86 kB / 0.4916 GB, free: 124 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2148/0.6929, allocations: 4.208 MB / 0.4957 GB, free: 111.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001801/0.6931, allocations: 38.88 kB / 0.4958 GB, free: 111.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006365/0.6995, allocations: 5.142 MB / 0.5008 GB, free: 108.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6995, allocations: 2.125 kB / 0.5008 GB, free: 108.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005156/0.7047, allocations: 2.501 MB / 0.5032 GB, free: 108.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007308/0.7054, allocations: 313.9 kB / 0.5035 GB, free: 108.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001345/0.7056, allocations: 19.94 kB / 0.5036 GB, free: 108.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/0.707, allocations: 310.9 kB / 0.5039 GB, free: 108.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001383/0.7084, allocations: 0.6568 MB / 0.5045 GB, free: 108 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.7086, allocations: 92.56 kB / 0.5046 GB, free: 108 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006321/0.7092, allocations: 0.5132 MB / 0.5051 GB, free: 107.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7092, allocations: 1.875 kB / 0.5051 GB, free: 107.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008986/0.7101, allocations: 237.4 kB / 0.5053 GB, free: 107.8 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.0003553/0.7105, allocations: 155.1 kB / 0.5055 GB, free: 107.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002899/0.7134, allocations: 1.528 MB / 0.507 GB, free: 107 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.7134, allocations: 0 / 0.507 GB, free: 107 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001601/0.715, allocations: 0.9253 MB / 0.5079 GB, free: 106.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005589/0.7156, allocations: 67.02 kB / 0.5079 GB, free: 106.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003733/0.7193, allocations: 2.217 MB / 0.5101 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.7197, allocations: 0.9469 MB / 0.511 GB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002075/0.7199, allocations: 39.7 kB / 0.511 GB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.72, allocations: 35.05 kB / 0.5111 GB, free: 104.4 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/0.72, allocations: 0 / 0.5111 GB, free: 104.4 MB / 378.7 MB Notification: Performance of Templates: time 0.02451/0.7445, allocations: 20.65 MB / 0.5312 GB, free: 84.38 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches