Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009619/0.000962, allocations: 200.5 kB / 18.1 MB, free: 3.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007635/0.0007636, allocations: 94.8 kB / 297.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003317, allocations: 8 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2209, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09369/0.3146, allocations: 84.01 MB / 493.4 MB, free: 7.477 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.3149, allocations: 75.95 kB / 493.5 MB, free: 7.402 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04294/0.3578, allocations: 15.05 MB / 0.4966 GB, free: 8.328 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3579, allocations: 0 / 0.4966 GB, free: 8.328 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.652e-05/0.3579, allocations: 12 kB / 0.4966 GB, free: 8.316 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002821/0.3607, allocations: 1.203 MB / 0.4978 GB, free: 7.059 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.3608, allocations: 8.031 kB / 0.4978 GB, free: 7.051 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005027/0.3613, allocations: 99.98 kB / 0.4979 GB, free: 6.953 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006838/0.362, allocations: 479.6 kB / 0.4983 GB, free: 6.445 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.516e-05/0.3621, allocations: 29.38 kB / 0.4984 GB, free: 6.418 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.3622, allocations: 40.38 kB / 0.4984 GB, free: 6.379 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.3636, allocations: 0.6386 MB / 0.499 GB, free: 5.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.3636, allocations: 192 / 0.499 GB, free: 5.723 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.279e-05/0.3637, allocations: 23.92 kB / 0.499 GB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.3637, allocations: 12 kB / 0.4991 GB, free: 5.688 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.3655, allocations: 0.721 MB / 0.4998 GB, free: 4.969 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003497/0.369, allocations: 1.756 MB / 0.5015 GB, free: 3.133 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.3702, allocations: 0.5125 MB / 0.502 GB, free: 2.602 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007587/0.371, allocations: 313.6 kB / 0.5023 GB, free: 2.289 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.209e-05/0.371, allocations: 11.94 kB / 0.5023 GB, free: 2.277 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001031/0.3721, allocations: 0.4904 MB / 0.5028 GB, free: 1.766 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 1.813e-06/0.3721, allocations: 0 / 0.5028 GB, free: 1.766 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.1831/0.5552, allocations: 3.036 MB / 0.5057 GB, free: 94.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.5553, allocations: 88.94 kB / 0.5058 GB, free: 93.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/0.5569, allocations: 0.8855 MB / 0.5067 GB, free: 93.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000114/0.557, allocations: 49.06 kB / 0.5067 GB, free: 93.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.5572, allocations: 297.2 kB / 0.507 GB, free: 93.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.5574, allocations: 166.6 kB / 0.5072 GB, free: 93.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.617e-05/0.5574, allocations: 10.42 kB / 0.5072 GB, free: 93.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.5575, allocations: 382.3 kB / 0.5075 GB, free: 93.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008371/0.5584, allocations: 334.5 kB / 0.5079 GB, free: 93.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008781/0.5593, allocations: 427.1 kB / 0.5083 GB, free: 93.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.5606, allocations: 0.5378 MB / 0.5088 GB, free: 93.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.5606, allocations: 1.062 kB / 0.5088 GB, free: 93.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002773/0.5634, allocations: 1.013 MB / 0.5098 GB, free: 93.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.5634, allocations: 10.77 kB / 0.5098 GB, free: 93.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.5634, allocations: 2.406 kB / 0.5098 GB, free: 93.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.5645, allocations: 0.5326 MB / 0.5103 GB, free: 92.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005002/0.565, allocations: 123 kB / 0.5104 GB, free: 92.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004669/0.5697, allocations: 4.484 MB / 0.5148 GB, free: 89.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001313/0.571, allocations: 302.3 kB / 0.5151 GB, free: 89.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.286e-05/0.5711, allocations: 29.77 kB / 0.5151 GB, free: 89.23 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): 58 * 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 7,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004041/0.5715, allocations: 254.6 kB / 0.5154 GB, free: 89.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000163/0.5717, allocations: 79.25 kB / 0.5154 GB, free: 89.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000187/0.5719, allocations: 102.4 kB / 0.5155 GB, free: 88.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.5719, allocations: 7.188 kB / 0.5156 GB, free: 88.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.5719, allocations: 1.406 kB / 0.5156 GB, free: 88.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.5719, allocations: 3.562 kB / 0.5156 GB, free: 88.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002702/0.5746, allocations: 1.541 MB / 0.5171 GB, free: 88.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.5746, allocations: 2.5 kB / 0.5171 GB, free: 88.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004153/0.575, allocations: 98.5 kB / 0.5172 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007638/0.5758, allocations: 0.5002 MB / 0.5176 GB, free: 88.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.616e-05/0.5759, allocations: 26.52 kB / 0.5177 GB, free: 88.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004063/0.58, allocations: 4.18 MB / 0.5218 GB, free: 84.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.58, allocations: 7.5 kB / 0.5218 GB, free: 84.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003041/0.583, allocations: 1.299 MB / 0.523 GB, free: 83.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004007/0.5834, allocations: 256.8 kB / 0.5233 GB, free: 83.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.5836, allocations: 26.38 kB / 0.5233 GB, free: 83.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001353/0.585, allocations: 303.3 kB / 0.5236 GB, free: 83.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001237/0.5862, allocations: 0.6458 MB / 0.5242 GB, free: 83.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.411e-05/0.5863, allocations: 27.84 kB / 0.5242 GB, free: 83.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007659/0.5871, allocations: 0.6453 MB / 0.5249 GB, free: 83.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5871, allocations: 4 kB / 0.5249 GB, free: 83.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000852/0.5879, allocations: 222.5 kB / 0.5251 GB, free: 83.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (34): * Single equations (assignments): 31 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001036/0.589, allocations: 408.6 kB / 0.5255 GB, free: 83.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002451/0.5915, allocations: 0.9782 MB / 0.5264 GB, free: 82.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.5915, allocations: 0 / 0.5264 GB, free: 82.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.5927, allocations: 0.6714 MB / 0.5271 GB, free: 82.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007119/0.5934, allocations: 83.05 kB / 0.5272 GB, free: 82.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003631/0.5971, allocations: 2.274 MB / 0.5294 GB, free: 80.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.5974, allocations: 0.9256 MB / 0.5303 GB, free: 79.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002781/0.5977, allocations: 82.25 kB / 0.5304 GB, free: 79.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.5978, allocations: 42.91 kB / 0.5304 GB, free: 79.43 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5978, allocations: 0 / 0.5304 GB, free: 79.43 MB / 378.7 MB Notification: Performance of Templates: time 0.01917/0.617, allocations: 14.39 MB / 0.5445 GB, free: 65.72 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches