Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 186.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001055, allocations: 99.09 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008202/0.0008202, allocations: 31.94 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2691, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004402/0.2736, allocations: 2.649 MB / 402.1 MB, free: 30.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008102/0.2744, allocations: 376 kB / 402.5 MB, free: 30.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001835/0.2746, allocations: 7.938 kB / 402.5 MB, free: 30.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.2748, allocations: 39.69 kB / 402.5 MB, free: 30.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002412/0.2751, allocations: 79.31 kB / 402.6 MB, free: 30.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003746/0.2755, allocations: 83.86 kB / 402.7 MB, free: 30.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004657/0.276, allocations: 362.4 kB / 403 MB, free: 29.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.2763, allocations: 99.64 kB / 403.1 MB, free: 29.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.2764, allocations: 127.5 kB / 403.3 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002112/0.2767, allocations: 159.3 kB / 403.4 MB, free: 29.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.567e-05/0.2767, allocations: 16 kB / 403.4 MB, free: 29.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.452e-05/0.2768, allocations: 20 kB / 403.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.909e-05/0.2769, allocations: 59.77 kB / 403.5 MB, free: 29.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.2771, allocations: 155.2 kB / 403.7 MB, free: 29.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003719/0.2775, allocations: 352.3 kB / 404 MB, free: 28.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2775, allocations: 0 / 404 MB, free: 28.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2775, allocations: 0 / 404 MB, free: 28.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.2775, allocations: 0 / 404 MB, free: 28.8 MB / 298.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.001327/0.2788, allocations: 0.6314 MB / 404.6 MB, free: 28.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.2789, allocations: 12.03 kB / 404.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.059e-05/0.279, allocations: 36.56 kB / 404.7 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003253/0.2794, allocations: 267.6 kB / 405 MB, free: 27.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/0.2794, allocations: 20.94 kB / 405 MB, free: 27.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.586e-05/0.2795, allocations: 36.28 kB / 405 MB, free: 27.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007511/0.2803, allocations: 269.4 kB / 405.3 MB, free: 27.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.2803, allocations: 192 / 405.3 MB, free: 27.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/0.2804, allocations: 15.94 kB / 405.3 MB, free: 27.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.2804, allocations: 4 kB / 405.3 MB, free: 27.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009252/0.2813, allocations: 270.1 kB / 405.6 MB, free: 27.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.283, allocations: 0.8029 MB / 406.4 MB, free: 26.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008498/0.2839, allocations: 350.7 kB / 406.7 MB, free: 25.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005365/0.2844, allocations: 204.6 kB / 406.9 MB, free: 25.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.736e-05/0.2845, allocations: 8 kB / 406.9 MB, free: 25.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.2845, allocations: 34.56 kB / 406.9 MB, free: 25.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 3.226e-06/0.2845, allocations: 0 / 406.9 MB, free: 25.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.006256/0.2908, allocations: 1.964 MB / 408.9 MB, free: 23.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.2909, allocations: 63.91 kB / 409 MB, free: 23.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/0.2911, allocations: 191 kB / 409.2 MB, free: 23.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.2912, allocations: 37.7 kB / 409.2 MB, free: 23.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.049e-05/0.2912, allocations: 156.8 kB / 409.3 MB, free: 23.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.2914, allocations: 212.9 kB / 409.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001774/0.2916, allocations: 90.25 kB / 409.6 MB, free: 22.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.907e-05/0.2917, allocations: 346.7 kB / 410 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005021/0.2922, allocations: 161 kB / 410.1 MB, free: 22.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005055/0.2927, allocations: 173 kB / 410.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.2938, allocations: 376 kB / 410.7 MB, free: 21.83 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2938, allocations: 0 / 410.7 MB, free: 21.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001246/0.2951, allocations: 482.6 kB / 411.1 MB, free: 21.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.2951, allocations: 4 kB / 411.1 MB, free: 21.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.2951, allocations: 8 kB / 411.2 MB, free: 21.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.2952, allocations: 0 / 411.2 MB, free: 21.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007941/0.296, allocations: 123.9 kB / 411.3 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.296, allocations: 0 / 411.3 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003508/0.2964, allocations: 23.98 kB / 411.3 MB, free: 21.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.6e-05/0.2964, allocations: 19.94 kB / 411.3 MB, free: 21.17 MB / 298.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 (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.0002086/0.2967, allocations: 161.7 kB / 411.5 MB, free: 21 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.06e-05/0.2968, allocations: 31.62 kB / 411.5 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001497/0.2969, allocations: 51.33 kB / 411.6 MB, free: 20.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.297, allocations: 8 kB / 411.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.297, allocations: 0 / 411.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.297, allocations: 3.984 kB / 411.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002834/0.2998, allocations: 1.325 MB / 412.9 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.2999, allocations: 4 kB / 412.9 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008379/0.3007, allocations: 123.8 kB / 413 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-05/0.3007, allocations: 7.938 kB / 413 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.81e-05/0.3008, allocations: 27.98 kB / 413.1 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.708e-06/0.3008, allocations: 7.984 kB / 413.1 MB, free: 19.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.3008, allocations: 11.94 kB / 413.1 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007708/0.3086, allocations: 3.398 MB / 416.5 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.988e-05/0.3087, allocations: 112.7 kB / 416.6 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.981e-05/0.3087, allocations: 27.91 kB / 416.6 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004421/0.3092, allocations: 27.98 kB / 416.6 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.3093, allocations: 51.83 kB / 416.7 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.482e-05/0.3094, allocations: 23.98 kB / 416.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001423/0.3095, allocations: 136.6 kB / 416.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3096, allocations: 4 kB / 416.8 MB, free: 15.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000904/0.3105, allocations: 128 kB / 417 MB, free: 15.17 MB / 298.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 (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.0001514/0.3106, allocations: 123.3 kB / 417.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.3119, allocations: 434.6 kB / 417.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3119, allocations: 0 / 417.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000661/0.3126, allocations: 251.8 kB / 417.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.3137, allocations: 88.69 kB / 417.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.3164, allocations: 1.513 MB / 419.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.3167, allocations: 0.8052 MB / 420.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003786/0.3171, allocations: 51.25 kB / 420.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/0.3173, allocations: 43.42 kB / 420.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of SimCode: time 7.71e-07/0.3173, allocations: 0 / 420.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of Templates: time 0.01373/0.3311, allocations: 4.77 MB / 425 MB, free: 7.02 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches