Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.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.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002581/0.00258, allocations: 178.2 kB / 8.363 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.296/2.296, 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.001116/0.001115, allocations: 85.73 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.06e-05/2.068e-05, allocations: 0 / 314.8 MB, free: 9.148 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4088/0.4088, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1218/0.5307, allocations: 75.61 MB / 437.9 MB, free: 10.68 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.531, allocations: 66.98 kB / 438 MB, free: 10.62 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02579/0.5568, allocations: 5.667 MB / 443.7 MB, free: 4.996 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5568, allocations: 0 / 443.7 MB, free: 4.996 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.905e-05/0.5569, allocations: 12 kB / 443.7 MB, free: 4.984 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001319/0.5582, allocations: 0.5524 MB / 444.2 MB, free: 4.391 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.5583, allocations: 12.03 kB / 444.3 MB, free: 4.379 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.5584, allocations: 36.28 kB / 444.3 MB, free: 4.344 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.5588, allocations: 245 kB / 444.5 MB, free: 4.066 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.613e-05/0.5589, allocations: 12 kB / 444.5 MB, free: 4.055 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.273e-05/0.559, allocations: 16 kB / 444.6 MB, free: 4.039 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006374/0.5596, allocations: 217 kB / 444.8 MB, free: 3.828 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005789/0.5602, allocations: 207.8 kB / 445 MB, free: 3.617 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.5603, allocations: 3.906 kB / 445 MB, free: 3.613 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.672e-05/0.5603, allocations: 4 kB / 445 MB, free: 3.609 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.5603, allocations: 10.53 kB / 445 MB, free: 3.602 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002245/0.5626, allocations: 0.7424 MB / 445.7 MB, free: 2.824 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007836/0.5634, allocations: 323.2 kB / 446 MB, free: 2.492 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003942/0.5638, allocations: 164.8 kB / 446.2 MB, free: 2.328 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.882e-05/0.5639, allocations: 4 kB / 446.2 MB, free: 2.324 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.151e-05/0.564, allocations: 41.14 kB / 446.3 MB, free: 2.277 MB / 331.1 MB Notification: Performance of pre-optimization done (n=43): time 2.845e-06/0.564, allocations: 0 / 446.3 MB, free: 2.277 MB / 331.1 MB Notification: Performance of matching and sorting (n=63): time 0.004159/0.5681, allocations: 1.479 MB / 447.7 MB, free: 0.707 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.5682, allocations: 55.97 kB / 447.8 MB, free: 0.6406 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.5685, allocations: 156 kB / 447.9 MB, free: 488 kB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 4.237e-05/0.5685, allocations: 25.7 kB / 448 MB, free: 456 kB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.5687, allocations: 207.4 kB / 448.2 MB, free: 248 kB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002298/0.5689, allocations: 208.8 kB / 448.4 MB, free: 36 kB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.656e-05/0.569, allocations: 0 / 448.4 MB, free: 36 kB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.5691, allocations: 334.8 kB / 448.7 MB, free: 15.7 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003482/0.5695, allocations: 133.1 kB / 448.8 MB, free: 15.57 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003454/0.5699, allocations: 127.9 kB / 448.9 MB, free: 15.44 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004176/0.5703, allocations: 150.1 kB / 449.1 MB, free: 15.3 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.5703, allocations: 0 / 449.1 MB, free: 15.3 MB / 347.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009712/0.5713, allocations: 386.8 kB / 449.5 MB, free: 14.91 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.5713, allocations: 4 kB / 449.5 MB, free: 14.91 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.487e-06/0.5713, allocations: 0 / 449.5 MB, free: 14.91 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.5714, allocations: 4 kB / 449.5 MB, free: 14.91 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009461/0.5723, allocations: 130.9 kB / 449.6 MB, free: 14.78 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.5724, allocations: 0 / 449.6 MB, free: 14.78 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003933/0.5728, allocations: 27.97 kB / 449.6 MB, free: 14.75 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.954e-05/0.5728, allocations: 13.64 kB / 449.7 MB, free: 14.74 MB / 347.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0001638/0.573, allocations: 116.8 kB / 449.8 MB, free: 14.62 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.647e-05/0.5731, allocations: 31.62 kB / 449.8 MB, free: 14.59 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001454/0.5733, allocations: 43.95 kB / 449.8 MB, free: 14.55 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.5733, allocations: 8 kB / 449.8 MB, free: 14.54 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.5733, allocations: 0 / 449.8 MB, free: 14.54 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.5733, allocations: 0 / 449.8 MB, free: 14.54 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002708/0.5761, allocations: 1.165 MB / 451 MB, free: 13.28 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/0.5761, allocations: 4 kB / 451 MB, free: 13.27 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009982/0.5771, allocations: 136.4 kB / 451.1 MB, free: 13.14 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.85e-05/0.5772, allocations: 8 kB / 451.2 MB, free: 13.13 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.248e-05/0.5772, allocations: 4 kB / 451.2 MB, free: 13.13 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.269e-05/0.5772, allocations: 8 kB / 451.2 MB, free: 13.12 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-05/0.5773, allocations: 15.88 kB / 451.2 MB, free: 13.11 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001798/0.5791, allocations: 0.975 MB / 452.2 MB, free: 11.95 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001591/0.5793, allocations: 116.8 kB / 452.3 MB, free: 11.81 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.758e-05/0.5794, allocations: 4 kB / 452.3 MB, free: 11.81 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000473/0.5798, allocations: 23.98 kB / 452.3 MB, free: 11.79 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.58, allocations: 55.83 kB / 452.4 MB, free: 11.73 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.936e-05/0.58, allocations: 20 kB / 452.4 MB, free: 11.71 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001531/0.5802, allocations: 123.3 kB / 452.5 MB, free: 11.59 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5802, allocations: 4 kB / 452.5 MB, free: 11.59 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0006162/0.5808, allocations: 79.95 kB / 452.6 MB, free: 11.51 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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.0002146/0.5811, allocations: 124.8 kB / 452.7 MB, free: 11.38 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0009462/0.582, allocations: 357.7 kB / 453 MB, free: 11.03 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5821, allocations: 2.438 kB / 453 MB, free: 11.03 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005438/0.5826, allocations: 216.6 kB / 453.3 MB, free: 10.82 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007728/0.5834, allocations: 56.14 kB / 453.3 MB, free: 10.76 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002135/0.5856, allocations: 0.8245 MB / 454.1 MB, free: 9.852 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/0.5861, allocations: 0.8047 MB / 454.9 MB, free: 9.023 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.5864, allocations: 35.44 kB / 455 MB, free: 8.988 MB / 347.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5864, allocations: 0 / 455 MB, free: 8.988 MB / 347.1 MB Notification: Performance of Templates: time 0.01636/0.6028, allocations: 4.331 MB / 459.3 MB, free: 4.715 MB / 347.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches