Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.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.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad") translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00238/0.00238, allocations: 177.8 kB / 8.36 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 1.972/1.972, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.00111/0.001109, allocations: 94.67 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.654e-05/2.665e-05, allocations: 7.984 kB / 314.8 MB, free: 9.145 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.33, allocations: 47.55 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.131/0.461, allocations: 77.22 MB / 439.5 MB, free: 9.094 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003482/0.4614, allocations: 67.97 kB / 439.6 MB, free: 9.027 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05207/0.5135, allocations: 9.207 MB / 448.8 MB, free: 15.88 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5136, allocations: 0 / 448.8 MB, free: 15.88 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.719e-05/0.5136, allocations: 15.98 kB / 448.8 MB, free: 15.86 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.002083/0.5157, allocations: 0.7079 MB / 449.5 MB, free: 15.11 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.5158, allocations: 12.59 kB / 449.6 MB, free: 15.1 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002352/0.516, allocations: 59.28 kB / 449.6 MB, free: 15.04 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005865/0.5166, allocations: 314.1 kB / 449.9 MB, free: 14.69 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.024e-05/0.5167, allocations: 16 kB / 449.9 MB, free: 14.68 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.5168, allocations: 28 kB / 450 MB, free: 14.65 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001051/0.5179, allocations: 350.5 kB / 450.3 MB, free: 14.31 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009509/0.5188, allocations: 333.5 kB / 450.6 MB, free: 13.97 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.785e-05/0.5189, allocations: 11.98 kB / 450.6 MB, free: 13.96 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.125e-05/0.519, allocations: 0 / 450.6 MB, free: 13.96 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/0.519, allocations: 12 kB / 450.7 MB, free: 13.95 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003753/0.5228, allocations: 1.306 MB / 452 MB, free: 12.6 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.5239, allocations: 476.5 kB / 452.4 MB, free: 12.12 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009266/0.5249, allocations: 303.2 kB / 452.7 MB, free: 11.82 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.869e-05/0.525, allocations: 12.52 kB / 452.7 MB, free: 11.81 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.525, allocations: 43.06 kB / 452.8 MB, free: 11.76 MB / 347.1 MB Notification: Performance of pre-optimization done (n=67): time 3.146e-06/0.525, allocations: 0 / 452.8 MB, free: 11.76 MB / 347.1 MB Notification: Performance of matching and sorting (n=103): time 0.006244/0.5313, allocations: 2.217 MB / 455 MB, free: 9.453 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.5314, allocations: 68.67 kB / 455.1 MB, free: 9.375 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.5317, allocations: 194.4 kB / 455.2 MB, free: 9.176 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 6.579e-05/0.5318, allocations: 29.7 kB / 455.3 MB, free: 9.141 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001777/0.532, allocations: 259.5 kB / 455.5 MB, free: 8.883 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003584/0.5324, allocations: 327 kB / 455.8 MB, free: 8.559 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.4e-05/0.5324, allocations: 0 / 455.8 MB, free: 8.559 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.5326, allocations: 347.8 kB / 456.2 MB, free: 8.211 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005689/0.5332, allocations: 206.6 kB / 456.4 MB, free: 8.012 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006651/0.5339, allocations: 286.3 kB / 456.7 MB, free: 7.723 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000642/0.5345, allocations: 238.3 kB / 456.9 MB, free: 7.496 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5345, allocations: 0 / 456.9 MB, free: 7.496 MB / 347.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001619/0.5362, allocations: 0.6099 MB / 457.5 MB, free: 6.879 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.5362, allocations: 10.66 kB / 457.5 MB, free: 6.871 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.5362, allocations: 0 / 457.5 MB, free: 6.871 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.5363, allocations: 4 kB / 457.5 MB, free: 6.867 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.5379, allocations: 219.8 kB / 457.7 MB, free: 6.652 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.5379, allocations: 7.984 kB / 457.7 MB, free: 6.645 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006635/0.5386, allocations: 53.27 kB / 457.8 MB, free: 6.594 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-05/0.5387, allocations: 31.98 kB / 457.8 MB, free: 6.562 MB / 347.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001947/0.5389, allocations: 112.9 kB / 457.9 MB, free: 6.445 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.5391, allocations: 47.44 kB / 458 MB, free: 6.398 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002176/0.5393, allocations: 61.36 kB / 458 MB, free: 6.336 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.977e-05/0.5393, allocations: 12 kB / 458.1 MB, free: 6.324 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.5393, allocations: 0 / 458.1 MB, free: 6.324 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.5394, allocations: 3.984 kB / 458.1 MB, free: 6.32 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/0.5435, allocations: 1.749 MB / 459.8 MB, free: 4.469 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.5435, allocations: 4 kB / 459.8 MB, free: 4.465 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/0.5452, allocations: 215.7 kB / 460 MB, free: 4.254 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-05/0.5453, allocations: 8 kB / 460 MB, free: 4.246 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.729e-05/0.5453, allocations: 12.17 kB / 460 MB, free: 4.234 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.388e-05/0.5454, allocations: 12 kB / 460.1 MB, free: 4.223 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.497e-05/0.5454, allocations: 11.94 kB / 460.1 MB, free: 4.211 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002726/0.5481, allocations: 1.385 MB / 461.5 MB, free: 2.641 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.5484, allocations: 132.5 kB / 461.6 MB, free: 2.492 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.5485, allocations: 4 kB / 461.6 MB, free: 2.488 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007307/0.5492, allocations: 47.95 kB / 461.6 MB, free: 2.441 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.5494, allocations: 68.59 kB / 461.7 MB, free: 2.375 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.068e-05/0.5495, allocations: 35.98 kB / 461.7 MB, free: 2.34 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002149/0.5497, allocations: 158 kB / 461.9 MB, free: 2.184 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5497, allocations: 0 / 461.9 MB, free: 2.184 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007796/0.5505, allocations: 124 kB / 462 MB, free: 2.062 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002231/0.5508, allocations: 115 kB / 462.1 MB, free: 1.938 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.5523, allocations: 0.5887 MB / 462.7 MB, free: 1.348 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.5524, allocations: 0 / 462.7 MB, free: 1.348 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009289/0.5533, allocations: 371.9 kB / 463.1 MB, free: 0.9844 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009802/0.5543, allocations: 82.75 kB / 463.2 MB, free: 0.9102 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003327/0.5577, allocations: 1.253 MB / 464.4 MB, free: 15.57 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005957/0.5583, allocations: 0.8844 MB / 465.3 MB, free: 14.66 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004208/0.5587, allocations: 63.41 kB / 465.4 MB, free: 14.59 MB / 363.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5587, allocations: 0 / 465.4 MB, free: 14.59 MB / 363.1 MB Notification: Performance of Templates: time 0.01739/0.5761, allocations: 6.894 MB / 472.3 MB, free: 7.727 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches