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.001152/0.001152, allocations: 180.5 kB / 17.41 MB, free: 4.402 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.616/1.616, allocations: 205.4 MB / 223.6 MB, free: 8.93 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.0008514/0.0008516, allocations: 92.73 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003438/0.0003438, allocations: 8 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2925, allocations: 47.58 MB / 375.7 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1069/0.3994, allocations: 80.83 MB / 456.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.3997, allocations: 79.94 kB / 456.6 MB, free: 15.72 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05077/0.4505, allocations: 13.72 MB / 470.3 MB, free: 1.961 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.838e-06/0.4505, allocations: 0 / 470.3 MB, free: 1.961 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.215e-05/0.4506, allocations: 12 kB / 470.4 MB, free: 1.949 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.00373/0.4543, allocations: 1.165 MB / 471.5 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/0.4544, allocations: 8.031 kB / 471.5 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002621/0.4547, allocations: 76.09 kB / 471.6 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008145/0.4555, allocations: 0.5152 MB / 472.1 MB, free: 92 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.755e-05/0.4556, allocations: 29.38 kB / 472.1 MB, free: 64 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.4557, allocations: 44.27 kB / 472.2 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.4576, allocations: 0.9626 MB / 473.2 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.4576, allocations: 192 / 473.2 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.893e-05/0.4577, allocations: 19.94 kB / 473.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.4577, allocations: 8 kB / 473.2 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002516/0.4603, allocations: 1.209 MB / 474.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004852/0.4651, allocations: 2.417 MB / 476.8 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.4667, allocations: 0.7507 MB / 477.6 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001178/0.4679, allocations: 0.5795 MB / 478.1 MB, free: 9.953 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.273e-05/0.468, allocations: 11.92 kB / 478.2 MB, free: 9.941 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001579/0.4696, allocations: 0.8305 MB / 479 MB, free: 9.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.004e-06/0.4696, allocations: 0 / 479 MB, free: 9.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.01271/0.4824, allocations: 5.134 MB / 484.1 MB, free: 3.797 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.4825, allocations: 85.05 kB / 484.2 MB, free: 3.695 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008336/0.4833, allocations: 0.6017 MB / 484.8 MB, free: 3.086 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001385/0.4834, allocations: 49.69 kB / 484.8 MB, free: 3.031 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/0.4837, allocations: 292.4 kB / 485.1 MB, free: 2.742 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.4839, allocations: 173.7 kB / 485.3 MB, free: 2.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.834e-05/0.484, allocations: 19.98 kB / 485.3 MB, free: 2.551 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.4841, allocations: 378.8 kB / 485.7 MB, free: 2.172 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.4854, allocations: 0.5908 MB / 486.3 MB, free: 1.582 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00128/0.4866, allocations: 0.6824 MB / 487 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/0.4889, allocations: 1.072 MB / 488 MB, free: 15.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.4889, allocations: 4 kB / 488 MB, free: 15.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003966/0.4929, allocations: 1.853 MB / 489.9 MB, free: 13.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.4929, allocations: 11.94 kB / 489.9 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.147e-05/0.493, allocations: 8 kB / 489.9 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005421/0.4984, allocations: 4.18 MB / 494.1 MB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005424/0.4989, allocations: 123.8 kB / 494.2 MB, free: 9.555 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007266/0.5062, allocations: 5.404 MB / 499.6 MB, free: 3.855 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.5077, allocations: 299.6 kB / 499.9 MB, free: 3.562 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/0.5079, allocations: 104 kB / 0.4883 GB, free: 3.461 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.0006135/0.5085, allocations: 252 kB / 0.4885 GB, free: 3.203 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.5086, allocations: 71.16 kB / 0.4886 GB, free: 3.133 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003283/0.5119, allocations: 1.575 MB / 0.4901 GB, free: 1.539 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.512, allocations: 4 kB / 0.4901 GB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.512, allocations: 4.125 kB / 0.4901 GB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.537e-06/0.512, allocations: 7.984 kB / 0.4902 GB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1995/0.7114, allocations: 2.61 MB / 0.4927 GB, free: 111.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/0.7115, allocations: 1.375 kB / 0.4927 GB, free: 111.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004893/0.712, allocations: 95.91 kB / 0.4928 GB, free: 111.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005155/0.7172, allocations: 4.203 MB / 0.4969 GB, free: 111.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001315/0.7173, allocations: 37.81 kB / 0.4969 GB, free: 111.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006106/0.7234, allocations: 5.113 MB / 0.5019 GB, free: 108.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.7235, allocations: 5.531 kB / 0.5019 GB, free: 108.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004697/0.7282, allocations: 2.458 MB / 0.5043 GB, free: 107.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000541/0.7288, allocations: 304.2 kB / 0.5046 GB, free: 107.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.7289, allocations: 23.06 kB / 0.5047 GB, free: 107.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.7302, allocations: 304.7 kB / 0.5049 GB, free: 107.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001394/0.7316, allocations: 0.6603 MB / 0.5056 GB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/0.7317, allocations: 95.25 kB / 0.5057 GB, free: 107.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005654/0.7323, allocations: 0.5198 MB / 0.5062 GB, free: 107.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7323, allocations: 0 / 0.5062 GB, free: 107.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008394/0.7331, allocations: 236.7 kB / 0.5064 GB, free: 107.1 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.0002722/0.7334, allocations: 150.8 kB / 0.5066 GB, free: 107 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002717/0.7362, allocations: 1.529 MB / 0.508 GB, free: 106.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/0.7362, allocations: 2.375 kB / 0.508 GB, free: 106.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.7376, allocations: 0.8768 MB / 0.5089 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000747/0.7384, allocations: 72.53 kB / 0.509 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003739/0.7421, allocations: 2.264 MB / 0.5112 GB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.7425, allocations: 0.9272 MB / 0.5121 GB, free: 103.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.7426, allocations: 38.2 kB / 0.5121 GB, free: 103.6 MB / 378.7 MB Notification: Performance of SimCode: time 8.31e-07/0.7427, allocations: 0 / 0.5121 GB, free: 103.6 MB / 378.7 MB Notification: Performance of Templates: time 0.0156/0.7583, allocations: 15.58 MB / 0.5273 GB, free: 88.01 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