Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00222/0.00222, allocations: 185.2 kB / 16.41 MB, free: 5.723 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.939/1.939, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001124/0.001124, allocations: 96.91 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004992/0.0004993, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3247, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1283/0.4531, allocations: 80.78 MB / 455.3 MB, free: 15.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.4534, allocations: 71.97 kB / 455.4 MB, free: 15.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07382/0.5272, allocations: 13.73 MB / 469.1 MB, free: 2.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.427e-06/0.5273, allocations: 4 kB / 469.1 MB, free: 2.141 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.891e-05/0.5274, allocations: 8 kB / 469.1 MB, free: 2.133 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.005461/0.5329, allocations: 1.172 MB / 470.3 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/0.533, allocations: 12.03 kB / 470.3 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004308/0.5334, allocations: 75.16 kB / 470.4 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.5349, allocations: 0.4911 MB / 470.9 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.96e-05/0.535, allocations: 29 kB / 470.9 MB, free: 272 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002775/0.5353, allocations: 36 kB / 470.9 MB, free: 236 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003783/0.5391, allocations: 0.9581 MB / 471.9 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.056e-05/0.5392, allocations: 3.906 kB / 471.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001919/0.5394, allocations: 23.92 kB / 471.9 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.556e-05/0.5394, allocations: 12 kB / 471.9 MB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005082/0.5445, allocations: 1.193 MB / 473.1 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009877/0.5544, allocations: 2.409 MB / 475.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003073/0.5576, allocations: 0.7601 MB / 476.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000205/0.5578, allocations: 4 kB / 476.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003037/0.5609, allocations: 0.8338 MB / 477.1 MB, free: 9.902 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 3.848e-06/0.5609, allocations: 0 / 477.1 MB, free: 9.902 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.02376/0.5847, allocations: 5.122 MB / 482.3 MB, free: 4.625 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.5848, allocations: 85.11 kB / 482.3 MB, free: 4.523 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001091/0.5859, allocations: 0.5345 MB / 482.9 MB, free: 3.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000364/0.5863, allocations: 49.69 kB / 482.9 MB, free: 3.926 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.5866, allocations: 314.9 kB / 483.2 MB, free: 3.613 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003285/0.5869, allocations: 169.7 kB / 483.4 MB, free: 3.445 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.5871, allocations: 16 kB / 483.4 MB, free: 3.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.5873, allocations: 338.8 kB / 483.7 MB, free: 3.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002334/0.5896, allocations: 0.5946 MB / 484.3 MB, free: 2.496 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002409/0.5921, allocations: 0.6862 MB / 485 MB, free: 1.777 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002265/0.5944, allocations: 0.5097 MB / 485.5 MB, free: 1.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.368e-06/0.5944, allocations: 8 kB / 485.5 MB, free: 1.262 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.007416/0.6019, allocations: 1.807 MB / 487.4 MB, free: 15.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.6019, allocations: 8 kB / 487.4 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.277e-05/0.602, allocations: 8 kB / 487.4 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009068/0.6111, allocations: 4.184 MB / 491.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.6122, allocations: 119.8 kB / 491.7 MB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01238/0.6246, allocations: 5.413 MB / 497.1 MB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002847/0.6274, allocations: 299.6 kB / 497.4 MB, free: 5.105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002546/0.6277, allocations: 99.98 kB / 497.5 MB, free: 5.008 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.0007426/0.6285, allocations: 256 kB / 497.7 MB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.6287, allocations: 71.16 kB / 497.8 MB, free: 4.676 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006054/0.6348, allocations: 1.575 MB / 499.4 MB, free: 3.078 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.6349, allocations: 4 kB / 499.4 MB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.6349, allocations: 4 kB / 499.4 MB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.6349, allocations: 3.984 kB / 499.4 MB, free: 3.066 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009157/0.6441, allocations: 2.614 MB / 0.4902 GB, free: 388 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/0.6441, allocations: 4 kB / 0.4902 GB, free: 384 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009944/0.6451, allocations: 95.91 kB / 0.4903 GB, free: 288 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2673/0.9124, allocations: 4.198 MB / 0.4944 GB, free: 111.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002221/0.9127, allocations: 40.73 kB / 0.4945 GB, free: 111.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01018/0.9229, allocations: 5.154 MB / 0.4995 GB, free: 108.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.9229, allocations: 1.688 kB / 0.4995 GB, free: 108.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009429/0.9324, allocations: 2.491 MB / 0.5019 GB, free: 108 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009565/0.9334, allocations: 320.7 kB / 0.5022 GB, free: 107.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003145/0.9337, allocations: 23.56 kB / 0.5023 GB, free: 107.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00283/0.9366, allocations: 303.2 kB / 0.5025 GB, free: 107.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002603/0.9392, allocations: 0.6516 MB / 0.5032 GB, free: 107.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002451/0.9395, allocations: 94.06 kB / 0.5033 GB, free: 107.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009237/0.9404, allocations: 0.5168 MB / 0.5038 GB, free: 107.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.9404, allocations: 0 / 0.5038 GB, free: 107.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001307/0.9418, allocations: 238.1 kB / 0.504 GB, free: 107.5 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.0004246/0.9422, allocations: 157.3 kB / 0.5042 GB, free: 107.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004979/0.9472, allocations: 1.523 MB / 0.5056 GB, free: 106.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/0.9473, allocations: 4.375 kB / 0.5056 GB, free: 106.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002791/0.9501, allocations: 0.8741 MB / 0.5065 GB, free: 106.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008955/0.951, allocations: 69.14 kB / 0.5066 GB, free: 106.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007217/0.9583, allocations: 2.263 MB / 0.5088 GB, free: 105 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.9588, allocations: 0.9384 MB / 0.5097 GB, free: 104.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002789/0.9591, allocations: 38.7 kB / 0.5097 GB, free: 104.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.392e-06/0.9591, allocations: 0 / 0.5097 GB, free: 104.2 MB / 378.7 MB Notification: Performance of Templates: time 0.02782/0.9869, allocations: 14.97 MB / 0.5243 GB, free: 90.33 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches