Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 108 kB / 18.4 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003439/0.00344, allocations: 186.3 kB / 19.33 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.489/2.489, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002305/0.002305, allocations: 51.94 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1459, allocations: 46.61 MB / 375.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.005256/0.1512, allocations: 2.604 MB / 378.4 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.1528, allocations: 370.8 kB / 378.8 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004566/0.1533, allocations: 7.938 kB / 378.8 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003786/0.1537, allocations: 43.52 kB / 378.8 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004685/0.1542, allocations: 103.1 kB / 378.9 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004973/0.1548, allocations: 87.83 kB / 379 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006055/0.1554, allocations: 378.3 kB / 379.4 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003217/0.1557, allocations: 123 kB / 379.5 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002662/0.156, allocations: 135.6 kB / 379.6 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000314/0.1563, allocations: 171.3 kB / 379.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.369e-05/0.1564, allocations: 28 kB / 379.8 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.819e-05/0.1565, allocations: 28 kB / 379.8 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.782e-05/0.1566, allocations: 67.77 kB / 379.9 MB, free: 488 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002215/0.1568, allocations: 179.1 kB / 380.1 MB, free: 308 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4461/0.6029, allocations: 363.8 kB / 380.4 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.211e-05/0.603, allocations: 1.062 kB / 380.4 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.367e-06/0.603, allocations: 0 / 380.4 MB, free: 10.53 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.563e-05/0.6031, allocations: 0 / 380.4 MB, free: 10.53 MB / 318.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.002428/0.6055, allocations: 0.6182 MB / 381.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.769e-05/0.6056, allocations: 10.61 kB / 381.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002291/0.6059, allocations: 33.53 kB / 381.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008145/0.6067, allocations: 274.3 kB / 381.4 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.278e-05/0.6068, allocations: 24.81 kB / 381.4 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/0.607, allocations: 33.39 kB / 381.4 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.6082, allocations: 272.9 kB / 381.7 MB, free: 9.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.061e-05/0.6083, allocations: 1.562 kB / 381.7 MB, free: 9.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.93e-05/0.6083, allocations: 16.12 kB / 381.7 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.012e-05/0.6084, allocations: 6.875 kB / 381.7 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001229/0.6096, allocations: 268.3 kB / 382 MB, free: 9.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006756/0.6164, allocations: 0.7925 MB / 382.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.6179, allocations: 363.6 kB / 383.1 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008221/0.6188, allocations: 200.3 kB / 383.3 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.323e-05/0.6189, allocations: 8.906 kB / 383.3 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/0.6189, allocations: 34.56 kB / 383.4 MB, free: 9.422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 6.292e-06/0.619, allocations: 2.094 kB / 383.4 MB, free: 9.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.007777/0.6268, allocations: 1.967 MB / 385.3 MB, free: 8.734 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.6269, allocations: 57.44 kB / 385.4 MB, free: 8.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004263/0.6273, allocations: 194.3 kB / 385.6 MB, free: 8.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.894e-05/0.6274, allocations: 36.02 kB / 385.6 MB, free: 8.504 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.6276, allocations: 150.9 kB / 385.8 MB, free: 8.371 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002506/0.6278, allocations: 216.6 kB / 386 MB, free: 8.203 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/0.6281, allocations: 91.45 kB / 386.1 MB, free: 8.152 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.6283, allocations: 348.8 kB / 386.4 MB, free: 7.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006964/0.629, allocations: 163.1 kB / 386.6 MB, free: 7.762 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006986/0.6297, allocations: 167 kB / 386.7 MB, free: 7.707 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.6312, allocations: 380.1 kB / 387.1 MB, free: 7.539 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.6312, allocations: 0 / 387.1 MB, free: 7.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001665/0.6329, allocations: 491.4 kB / 387.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.487e-05/0.6329, allocations: 6.359 kB / 387.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.633, allocations: 0 / 387.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.557e-05/0.633, allocations: 2.375 kB / 387.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.634, allocations: 122 kB / 387.7 MB, free: 7.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.263e-05/0.6341, allocations: 2.469 kB / 387.7 MB, free: 7.336 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004925/0.6346, allocations: 28.05 kB / 387.7 MB, free: 7.324 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.375e-05/0.6347, allocations: 21.58 kB / 387.8 MB, free: 7.316 MB / 318.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 (elastoGap2.contact,elastoGap1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003092/0.635, allocations: 156.1 kB / 387.9 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001672/0.6352, allocations: 36.45 kB / 387.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001984/0.6354, allocations: 47.03 kB / 388 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.592e-05/0.6355, allocations: 6.469 kB / 388 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.167e-05/0.6355, allocations: 0.9844 kB / 388 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/0.6355, allocations: 9.906 kB / 388 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004055/0.6396, allocations: 1.316 MB / 389.3 MB, free: 6.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.279e-05/0.6397, allocations: 3.844 kB / 389.3 MB, free: 6.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009224/0.6406, allocations: 123.1 kB / 389.4 MB, free: 6.332 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.608e-05/0.6406, allocations: 9.875 kB / 389.5 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.392e-05/0.6407, allocations: 18.42 kB / 389.5 MB, free: 6.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.01e-05/0.6408, allocations: 7.969 kB / 389.5 MB, free: 6.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.108e-05/0.6408, allocations: 9.188 kB / 389.5 MB, free: 6.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006552/0.6473, allocations: 0.8786 MB / 390.4 MB, free: 5.781 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002781/0.6477, allocations: 120.5 kB / 390.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/0.6479, allocations: 16.86 kB / 390.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005784/0.6485, allocations: 30.14 kB / 390.5 MB, free: 5.645 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.6487, allocations: 53.47 kB / 390.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.52e-05/0.6488, allocations: 23.66 kB / 390.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000213/0.649, allocations: 144.4 kB / 390.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.649, allocations: 0 / 390.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008938/0.65, allocations: 93.91 kB / 390.8 MB, free: 5.512 MB / 318.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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002143/0.6502, allocations: 117.1 kB / 391 MB, free: 5.414 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001861/0.6521, allocations: 442.4 kB / 391.4 MB, free: 5.289 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.566e-05/0.6521, allocations: 0 / 391.4 MB, free: 5.289 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.6532, allocations: 261.1 kB / 391.6 MB, free: 5.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005638/0.6588, allocations: 82.83 kB / 391.7 MB, free: 5.195 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003752/0.6626, allocations: 1.029 MB / 392.7 MB, free: 4.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006007/0.6633, allocations: 0.7918 MB / 393.5 MB, free: 3.781 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003664/0.6637, allocations: 42.41 kB / 393.6 MB, free: 3.773 MB / 318.1 MB Notification: Performance of SimCode: time 2.194e-06/0.6637, allocations: 0 / 393.6 MB, free: 3.773 MB / 318.1 MB Notification: Performance of Templates: time 0.03442/0.6982, allocations: 4.644 MB / 398.2 MB, free: 3.203 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches