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.001579/0.001579, allocations: 181.3 kB / 13.66 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.057/2.057, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001037/0.001037, allocations: 94.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.533e-05/2.538e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09474/0.09479, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4041/0.4989, allocations: 80.68 MB / 449.8 MB, free: 12.55 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.4993, allocations: 80.02 kB / 449.8 MB, free: 12.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07157/0.5709, allocations: 13.7 MB / 463.5 MB, free: 424 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5709, allocations: 0 / 463.5 MB, free: 424 kB / 330.7 MB Notification: Performance of Transformations before backend: time 5.979e-05/0.571, allocations: 12 kB / 463.6 MB, free: 412 kB / 330.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.005215/0.5762, allocations: 1.083 MB / 464.6 MB, free: 15.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.5763, allocations: 8.031 kB / 464.6 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004688/0.5768, allocations: 79.06 kB / 464.7 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.5781, allocations: 0.492 MB / 465.2 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.728e-05/0.5782, allocations: 28.41 kB / 465.2 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002247/0.5784, allocations: 38.78 kB / 465.3 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002629/0.5811, allocations: 0.8706 MB / 466.2 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.689e-05/0.5812, allocations: 4 kB / 466.2 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001731/0.5814, allocations: 16 kB / 466.2 MB, free: 14.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.5814, allocations: 8 kB / 466.2 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003394/0.5848, allocations: 1.049 MB / 467.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01041/0.5953, allocations: 2.4 MB / 469.6 MB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00196/0.5973, allocations: 0.6466 MB / 470.3 MB, free: 9.809 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/0.5988, allocations: 0.4981 MB / 470.8 MB, free: 9.305 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001554/0.599, allocations: 11.92 kB / 470.8 MB, free: 9.293 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002257/0.6013, allocations: 0.7525 MB / 471.5 MB, free: 8.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.92e-06/0.6013, allocations: 0 / 471.5 MB, free: 8.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.01146/0.6128, allocations: 3.318 MB / 474.9 MB, free: 5.098 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.381e-05/0.6129, allocations: 96.95 kB / 474.9 MB, free: 4.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.6141, allocations: 0.5229 MB / 475.5 MB, free: 4.453 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004157/0.6145, allocations: 53.69 kB / 475.5 MB, free: 4.395 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003285/0.6149, allocations: 306.9 kB / 475.8 MB, free: 4.094 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004534/0.6153, allocations: 169.8 kB / 476 MB, free: 3.926 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.6155, allocations: 20 kB / 476 MB, free: 3.906 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.6157, allocations: 334.8 kB / 476.3 MB, free: 3.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001716/0.6174, allocations: 0.513 MB / 476.8 MB, free: 3.055 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001812/0.6193, allocations: 0.5978 MB / 477.4 MB, free: 2.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.6208, allocations: 443.5 kB / 477.9 MB, free: 1.996 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.6208, allocations: 0 / 477.9 MB, free: 1.996 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.005534/0.6264, allocations: 1.647 MB / 479.5 MB, free: 340 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.6265, allocations: 8 kB / 479.5 MB, free: 332 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.996e-05/0.6265, allocations: 11.98 kB / 479.5 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009031/0.6356, allocations: 4.133 MB / 483.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.6367, allocations: 119.9 kB / 483.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01272/0.6495, allocations: 5.401 MB / 489.2 MB, free: 6.352 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002979/0.6525, allocations: 295.7 kB / 489.5 MB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004723/0.6531, allocations: 107.9 kB / 489.6 MB, free: 5.957 MB / 362.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 () * 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.000456/0.6535, allocations: 143.4 kB / 489.7 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003054/0.6539, allocations: 71.14 kB / 489.8 MB, free: 5.742 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005617/0.6595, allocations: 1.482 MB / 491.3 MB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.121e-05/0.6596, allocations: 7.984 kB / 491.3 MB, free: 4.227 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.6596, allocations: 4 kB / 491.3 MB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.988e-05/0.6596, allocations: 3.953 kB / 491.3 MB, free: 4.219 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009272/0.6689, allocations: 2.525 MB / 493.8 MB, free: 1.621 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/0.669, allocations: 4.094 kB / 493.8 MB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.67, allocations: 91.88 kB / 493.9 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00927/0.6793, allocations: 4.157 MB / 498.1 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002517/0.6796, allocations: 43.95 kB / 498.1 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01153/0.6912, allocations: 5.107 MB / 0.4914 GB, free: 7.914 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.6912, allocations: 0 / 0.4914 GB, free: 7.914 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007479/0.6987, allocations: 2.26 MB / 0.4936 GB, free: 5.594 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.6998, allocations: 312 kB / 0.4939 GB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002471/0.7001, allocations: 28 kB / 0.494 GB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002968/0.7031, allocations: 299.7 kB / 0.4942 GB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002911/0.706, allocations: 0.6588 MB / 0.4949 GB, free: 4.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003131/0.7064, allocations: 91.97 kB / 0.495 GB, free: 4.199 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001084/0.7075, allocations: 0.5108 MB / 0.4955 GB, free: 3.695 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7075, allocations: 0 / 0.4955 GB, free: 3.695 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001457/0.709, allocations: 236 kB / 0.4957 GB, free: 3.465 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) * 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.0004739/0.7095, allocations: 163.1 kB / 0.4959 GB, free: 3.297 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004103/0.7136, allocations: 1.357 MB / 0.4972 GB, free: 1.902 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/0.7137, allocations: 8.062 kB / 0.4972 GB, free: 1.895 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002247/0.7159, allocations: 0.7937 MB / 0.498 GB, free: 1.074 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009541/0.7169, allocations: 58.89 kB / 0.498 GB, free: 1.016 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008448/0.7254, allocations: 1.899 MB / 0.4999 GB, free: 15.07 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000722/0.7262, allocations: 0.9377 MB / 0.5008 GB, free: 14.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.7265, allocations: 31.42 kB / 0.5008 GB, free: 14.08 MB / 394.7 MB Notification: Performance of SimCode: time 1.653e-06/0.7265, allocations: 4 kB / 0.5008 GB, free: 14.07 MB / 394.7 MB Notification: Performance of Templates: time 0.03479/0.7613, allocations: 14.97 MB / 0.5154 GB, free: 15.05 MB / 410.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