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.0009993/0.0009994, allocations: 181.7 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.624/1.624, allocations: 205.4 MB / 223.6 MB, free: 8.93 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.0007693/0.0007695, allocations: 90.3 kB / 271.9 MB, free: 8.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.0003441, allocations: 12 kB / 328.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.2998, allocations: 47.57 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09798/0.3978, allocations: 76.39 MB / 452.1 MB, free: 4.219 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.3981, allocations: 67.95 kB / 452.2 MB, free: 4.152 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01564/0.4137, allocations: 5.719 MB / 457.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4138, allocations: 0 / 457.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.104e-05/0.4138, allocations: 12 kB / 457.9 MB, free: 14.4 MB / 346.7 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.0008904/0.4147, allocations: 0.5699 MB / 458.5 MB, free: 13.78 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.4148, allocations: 12.03 kB / 458.5 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.117e-05/0.4148, allocations: 36.56 kB / 458.5 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.4151, allocations: 262 kB / 458.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.945e-05/0.4152, allocations: 20.92 kB / 458.8 MB, free: 13.42 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.49e-05/0.4152, allocations: 32.28 kB / 458.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005492/0.4158, allocations: 289.3 kB / 459.1 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.4158, allocations: 4.188 kB / 459.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/0.4159, allocations: 15.94 kB / 459.1 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.4159, allocations: 4 kB / 459.1 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005722/0.4165, allocations: 282.1 kB / 459.4 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.4177, allocations: 0.799 MB / 460.2 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00061/0.4184, allocations: 377.1 kB / 460.6 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003546/0.4187, allocations: 205.4 kB / 460.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.299e-05/0.4188, allocations: 8 kB / 460.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.4188, allocations: 42.5 kB / 460.8 MB, free: 11.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.723e-06/0.4188, allocations: 0 / 460.8 MB, free: 11.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=63): time 0.004123/0.4229, allocations: 2.035 MB / 462.9 MB, free: 9.184 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.423, allocations: 55.97 kB / 462.9 MB, free: 9.117 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/0.4232, allocations: 198.9 kB / 463.1 MB, free: 8.91 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.303e-05/0.4232, allocations: 37.7 kB / 463.2 MB, free: 8.867 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.079e-05/0.4233, allocations: 145 kB / 463.3 MB, free: 8.723 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.4235, allocations: 224.8 kB / 463.5 MB, free: 8.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.285e-05/0.4235, allocations: 12 kB / 463.5 MB, free: 8.488 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.4237, allocations: 342.8 kB / 463.9 MB, free: 8.145 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/0.424, allocations: 169 kB / 464 MB, free: 7.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.4243, allocations: 177 kB / 464.2 MB, free: 7.805 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006743/0.425, allocations: 388 kB / 464.6 MB, free: 7.426 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.425, allocations: 0 / 464.6 MB, free: 7.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008154/0.4259, allocations: 498.7 kB / 465.1 MB, free: 6.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.4259, allocations: 4 kB / 465.1 MB, free: 6.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.4259, allocations: 0 / 465.1 MB, free: 6.926 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.4259, allocations: 7.938 kB / 465.1 MB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004645/0.4264, allocations: 123.8 kB / 465.2 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.4264, allocations: 4 kB / 465.2 MB, free: 6.797 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.4266, allocations: 35.98 kB / 465.2 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.361e-05/0.4267, allocations: 23.92 kB / 465.3 MB, free: 6.738 MB / 346.7 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 () * Number of clocked 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.0001809/0.4268, allocations: 158.6 kB / 465.4 MB, free: 6.574 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.109e-05/0.4269, allocations: 35.53 kB / 465.5 MB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.427, allocations: 43.34 kB / 465.5 MB, free: 6.496 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.427, allocations: 8 kB / 465.5 MB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.4271, allocations: 4 kB / 465.5 MB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.4271, allocations: 3.984 kB / 465.5 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001908/0.429, allocations: 1.325 MB / 466.8 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.429, allocations: 4 kB / 466.8 MB, free: 5.039 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004793/0.4295, allocations: 131.8 kB / 467 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.4295, allocations: 11.88 kB / 467 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.4295, allocations: 16.41 kB / 467 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.807e-06/0.4296, allocations: 8 kB / 467 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.4296, allocations: 11.94 kB / 467 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.4309, allocations: 0.8981 MB / 467.9 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.479e-05/0.431, allocations: 116.8 kB / 468 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.02e-05/0.431, allocations: 16.05 kB / 468 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002401/0.4313, allocations: 39.97 kB / 468.1 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.225e-05/0.4314, allocations: 47.83 kB / 468.1 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.059e-05/0.4314, allocations: 20 kB / 468.2 MB, free: 3.645 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001215/0.4315, allocations: 148.1 kB / 468.3 MB, free: 3.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4315, allocations: 0 / 468.3 MB, free: 3.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003757/0.4319, allocations: 104 kB / 468.4 MB, free: 3.398 MB / 346.7 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 () * Number of clocked 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.0001746/0.4321, allocations: 123.1 kB / 468.5 MB, free: 3.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007845/0.4329, allocations: 446.7 kB / 469 MB, free: 2.828 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4329, allocations: 0 / 469 MB, free: 2.828 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004181/0.4333, allocations: 265 kB / 469.2 MB, free: 2.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006716/0.434, allocations: 75.75 kB / 469.3 MB, free: 2.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.4358, allocations: 1.238 MB / 470.5 MB, free: 1.172 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.4362, allocations: 0.7935 MB / 471.3 MB, free: 364 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.4363, allocations: 39.42 kB / 471.4 MB, free: 324 kB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4363, allocations: 0 / 471.4 MB, free: 324 kB / 346.7 MB Notification: Performance of Templates: time 0.006559/0.4429, allocations: 4.491 MB / 475.8 MB, free: 11.84 MB / 362.7 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