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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008887/0.0008887, allocations: 92.11 kB / 16.65 MB, free: 6.535 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.0009303/0.0009306, allocations: 175.1 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 223.3 MB / 241.6 MB, free: 112 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002643/0.0002643, allocations: 8 kB / 301.4 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08772/0.08799, allocations: 50.42 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002712/0.09075, allocations: 2.279 MB / 354.1 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008175/0.09159, allocations: 378.6 kB / 354.5 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001699/0.09178, allocations: 11.94 kB / 354.5 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.09194, allocations: 35.75 kB / 354.5 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002098/0.09216, allocations: 87.31 kB / 354.6 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003001/0.09247, allocations: 75.8 kB / 354.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003599/0.09284, allocations: 358.4 kB / 355 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.09303, allocations: 91.59 kB / 355.1 MB, free: 400 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.09319, allocations: 119.6 kB / 355.2 MB, free: 280 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.09337, allocations: 143.3 kB / 355.4 MB, free: 136 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.964e-05/0.09342, allocations: 19.98 kB / 355.4 MB, free: 116 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.137e-05/0.09349, allocations: 16 kB / 355.4 MB, free: 100 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.834e-05/0.09355, allocations: 55.77 kB / 355.5 MB, free: 44 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000166/0.09372, allocations: 177 kB / 355.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.09402, allocations: 346.7 kB / 356 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.09403, allocations: 4 kB / 356 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.09404, allocations: 0 / 356 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.605e-06/0.09405, allocations: 0 / 356 MB, free: 15.52 MB / 302.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.0009668/0.09503, allocations: 0.5965 MB / 356.6 MB, free: 14.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.09507, allocations: 8.031 kB / 356.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.221e-05/0.09515, allocations: 36.56 kB / 356.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000278/0.09543, allocations: 271.4 kB / 356.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.112e-05/0.09547, allocations: 20.94 kB / 356.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.305e-05/0.09554, allocations: 28.38 kB / 356.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000557/0.0961, allocations: 281.4 kB / 357.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.09613, allocations: 8.094 kB / 357.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.09617, allocations: 19.92 kB / 357.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.09618, allocations: 8 kB / 357.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005952/0.09678, allocations: 282.1 kB / 357.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001256/0.09805, allocations: 0.7952 MB / 358.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006225/0.09868, allocations: 378.5 kB / 358.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003593/0.09906, allocations: 204.8 kB / 358.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.09909, allocations: 4 kB / 358.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.09913, allocations: 38.56 kB / 358.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.713e-06/0.09914, allocations: 4 kB / 358.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.004421/0.1036, allocations: 2.046 MB / 361 MB, free: 10.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.1036, allocations: 55.97 kB / 361 MB, free: 10.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.1038, allocations: 187 kB / 361.2 MB, free: 10 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.1038, allocations: 37.7 kB / 361.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.104, allocations: 157 kB / 361.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/0.1041, allocations: 216.8 kB / 361.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.124e-05/0.1042, allocations: 49.69 kB / 361.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1044, allocations: 350.7 kB / 362 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003563/0.1047, allocations: 169 kB / 362.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003548/0.1051, allocations: 181 kB / 362.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007652/0.1059, allocations: 392 kB / 362.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1059, allocations: 0 / 362.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008685/0.1067, allocations: 0.4947 MB / 363.2 MB, free: 7.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.1068, allocations: 4 kB / 363.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.1068, allocations: 3.984 kB / 363.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.1068, allocations: 4 kB / 363.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004809/0.1073, allocations: 119.9 kB / 363.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.1073, allocations: 4 kB / 363.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.1075, allocations: 31.98 kB / 363.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.1076, allocations: 23.92 kB / 363.4 MB, free: 7.766 MB / 302.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.0001863/0.1078, allocations: 161.7 kB / 363.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.1078, allocations: 31.62 kB / 363.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.108, allocations: 47.33 kB / 363.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.108, allocations: 12 kB / 363.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.108, allocations: 0 / 363.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.108, allocations: 0 / 363.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00206/0.1101, allocations: 1.337 MB / 365 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/0.1101, allocations: 4 kB / 365 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005106/0.1106, allocations: 135.8 kB / 365.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.1106, allocations: 7.938 kB / 365.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.1107, allocations: 16.47 kB / 365.2 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.027e-06/0.1107, allocations: 15.94 kB / 365.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1107, allocations: 4 kB / 365.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.112, allocations: 0.9096 MB / 366.1 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8e-05/0.1121, allocations: 112.8 kB / 366.2 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.011e-05/0.1122, allocations: 20.03 kB / 366.2 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002696/0.1125, allocations: 35.98 kB / 366.3 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.792e-05/0.1125, allocations: 47.83 kB / 366.3 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.227e-05/0.1126, allocations: 23.98 kB / 366.3 MB, free: 4.645 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001114/0.1127, allocations: 136.6 kB / 366.5 MB, free: 4.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.303e-06/0.1127, allocations: 8 kB / 366.5 MB, free: 4.504 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003842/0.1131, allocations: 95.94 kB / 366.6 MB, free: 4.41 MB / 302.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.0001298/0.1132, allocations: 130.4 kB / 366.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008471/0.1141, allocations: 454.6 kB / 367.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1141, allocations: 0 / 367.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004454/0.1146, allocations: 260.7 kB / 367.4 MB, free: 3.578 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007225/0.1153, allocations: 83.73 kB / 367.5 MB, free: 3.496 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.117, allocations: 1.24 MB / 368.7 MB, free: 2.176 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/0.1174, allocations: 0.7896 MB / 369.5 MB, free: 1.363 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002031/0.1176, allocations: 47.25 kB / 369.5 MB, free: 1.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.1177, allocations: 39.42 kB / 369.6 MB, free: 1.273 MB / 302.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1177, allocations: 0 / 369.6 MB, free: 1.273 MB / 302.1 MB Notification: Performance of Templates: time 0.1608/0.2785, allocations: 3.791 MB / 373.4 MB, free: 23.38 MB / 302.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches