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.002121/0.002121, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.101/2.101, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001122/0.001122, allocations: 89.02 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.408e-05/2.418e-05, allocations: 8 kB / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3423, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1307/0.4731, allocations: 80.02 MB / 442.4 MB, free: 6.293 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.4734, allocations: 68.97 kB / 442.4 MB, free: 6.227 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07278/0.5462, allocations: 13.62 MB / 456 MB, free: 8.645 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5463, allocations: 0 / 456 MB, free: 8.645 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.969e-05/0.5463, allocations: 12 kB / 456.1 MB, free: 8.633 MB / 347.1 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.004923/0.5513, allocations: 1.082 MB / 457.1 MB, free: 7.508 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.5514, allocations: 8.031 kB / 457.1 MB, free: 7.5 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004361/0.5518, allocations: 83.05 kB / 457.2 MB, free: 7.418 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001496/0.5533, allocations: 498.9 kB / 457.7 MB, free: 6.887 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.752e-05/0.5534, allocations: 16 kB / 457.7 MB, free: 6.871 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002294/0.5537, allocations: 22.06 kB / 457.7 MB, free: 6.852 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003187/0.5569, allocations: 1.024 MB / 458.8 MB, free: 5.824 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002414/0.5593, allocations: 0.8172 MB / 459.6 MB, free: 4.988 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.83e-05/0.5594, allocations: 7.906 kB / 459.6 MB, free: 4.98 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001508/0.5596, allocations: 4 kB / 459.6 MB, free: 4.977 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.259e-05/0.5596, allocations: 8 kB / 459.6 MB, free: 4.969 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009524/0.5691, allocations: 2.341 MB / 462 MB, free: 2.559 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/0.5709, allocations: 0.6142 MB / 462.6 MB, free: 1.926 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/0.5723, allocations: 0.4897 MB / 463.1 MB, free: 1.43 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000136/0.5725, allocations: 11.98 kB / 463.1 MB, free: 1.418 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001936/0.5745, allocations: 0.728 MB / 463.8 MB, free: 0.6719 MB / 347.1 MB Notification: Performance of pre-optimization done (n=49): time 3.677e-06/0.5745, allocations: 0 / 463.8 MB, free: 0.6719 MB / 347.1 MB Notification: Performance of matching and sorting (n=51): time 0.01112/0.5856, allocations: 3.271 MB / 467.1 MB, free: 13.3 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/0.5857, allocations: 86.17 kB / 467.1 MB, free: 13.2 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009789/0.5867, allocations: 0.4955 MB / 467.6 MB, free: 12.7 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003387/0.5871, allocations: 41.7 kB / 467.7 MB, free: 12.65 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003049/0.5874, allocations: 302.9 kB / 468 MB, free: 12.35 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003499/0.5878, allocations: 161.8 kB / 468.1 MB, free: 12.19 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.5879, allocations: 0 / 468.1 MB, free: 12.19 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.5881, allocations: 342.8 kB / 468.5 MB, free: 11.85 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001482/0.5896, allocations: 0.4958 MB / 469 MB, free: 11.36 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001575/0.5912, allocations: 0.5885 MB / 469.6 MB, free: 10.73 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.5927, allocations: 431.5 kB / 470 MB, free: 10.31 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/0.5927, allocations: 4 kB / 470 MB, free: 10.31 MB / 363.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005535/0.5983, allocations: 1.595 MB / 471.6 MB, free: 8.699 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.922e-05/0.5983, allocations: 8 kB / 471.6 MB, free: 8.691 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.275e-05/0.5984, allocations: 11.94 kB / 471.6 MB, free: 8.68 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009094/0.6075, allocations: 4.13 MB / 475.7 MB, free: 4.535 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.6086, allocations: 111.9 kB / 475.8 MB, free: 4.426 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01242/0.6211, allocations: 5.473 MB / 481.3 MB, free: 14.7 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0029/0.624, allocations: 287.8 kB / 481.6 MB, free: 14.41 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003487/0.6244, allocations: 104 kB / 481.7 MB, free: 14.31 MB / 379.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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.0005201/0.625, allocations: 150.5 kB / 481.8 MB, free: 14.17 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002734/0.6253, allocations: 63.25 kB / 481.9 MB, free: 14.11 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005097/0.6304, allocations: 1.474 MB / 483.4 MB, free: 12.62 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.987e-05/0.6304, allocations: 4 kB / 483.4 MB, free: 12.61 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.6305, allocations: 0 / 483.4 MB, free: 12.61 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.6305, allocations: 0 / 483.4 MB, free: 12.61 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00823/0.6387, allocations: 2.449 MB / 485.8 MB, free: 10.11 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/0.6388, allocations: 0 / 485.8 MB, free: 10.11 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009971/0.6398, allocations: 99.97 kB / 485.9 MB, free: 10.01 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009005/0.6488, allocations: 4.149 MB / 490.1 MB, free: 5.844 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002719/0.6492, allocations: 27.97 kB / 490.1 MB, free: 5.816 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01122/0.6604, allocations: 5.142 MB / 495.2 MB, free: 420 kB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/0.6605, allocations: 6.172 kB / 495.3 MB, free: 416 kB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006996/0.6675, allocations: 2.224 MB / 497.5 MB, free: 14.12 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/0.6686, allocations: 308.2 kB / 497.8 MB, free: 13.8 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002714/0.6689, allocations: 16 kB / 497.8 MB, free: 13.79 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002983/0.6719, allocations: 295.7 kB / 498.1 MB, free: 13.5 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002955/0.6749, allocations: 0.6587 MB / 498.7 MB, free: 12.84 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003515/0.6754, allocations: 95.97 kB / 498.8 MB, free: 12.75 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001003/0.6764, allocations: 491.8 kB / 499.3 MB, free: 12.27 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6764, allocations: 0 / 499.3 MB, free: 12.27 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00149/0.6779, allocations: 215.9 kB / 499.5 MB, free: 12.06 MB / 395.1 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.000492/0.6784, allocations: 143.2 kB / 499.7 MB, free: 11.91 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003664/0.6821, allocations: 1.321 MB / 0.4892 GB, free: 10.56 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.6822, allocations: 0 / 0.4892 GB, free: 10.56 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002138/0.6843, allocations: 0.7686 MB / 0.49 GB, free: 9.773 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000871/0.6852, allocations: 53.67 kB / 0.49 GB, free: 9.727 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008376/0.6936, allocations: 1.877 MB / 0.4919 GB, free: 7.805 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007827/0.6945, allocations: 0.9419 MB / 0.4928 GB, free: 6.836 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.6948, allocations: 35.42 kB / 0.4928 GB, free: 6.801 MB / 395.1 MB Notification: Performance of SimCode: time 1.192e-06/0.6948, allocations: 0 / 0.4928 GB, free: 6.801 MB / 395.1 MB Notification: Performance of Templates: time 0.2938/0.9886, allocations: 14.91 MB / 0.5074 GB, free: 124 MB / 395.1 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