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.00127/0.001269, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001252/0.001252, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.406/1.406, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 49.77 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.11, allocations: 49.44 MB / 350.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004519/0.1146, allocations: 2.615 MB / 353.3 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.1158, allocations: 382.5 kB / 353.7 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003624/0.1162, allocations: 7.938 kB / 353.7 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002462/0.1164, allocations: 55.5 kB / 353.8 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003394/0.1168, allocations: 91.12 kB / 353.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004091/0.1172, allocations: 87.88 kB / 353.9 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005364/0.1178, allocations: 378.4 kB / 354.3 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/0.118, allocations: 107.1 kB / 354.4 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002683/0.1183, allocations: 139.5 kB / 354.6 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002633/0.1186, allocations: 175.3 kB / 354.7 MB, free: 400 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.998e-05/0.1187, allocations: 28 kB / 354.8 MB, free: 372 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.037e-05/0.1188, allocations: 32 kB / 354.8 MB, free: 340 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.612e-05/0.1188, allocations: 63.77 kB / 354.8 MB, free: 276 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.119, allocations: 167.2 kB / 355 MB, free: 108 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004224/0.1195, allocations: 375 kB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1195, allocations: 0 / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1195, allocations: 0 / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.106e-05/0.1195, allocations: 0 / 355.4 MB, free: 15.73 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.001341/0.1209, allocations: 0.6158 MB / 356 MB, free: 15.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.1209, allocations: 12.03 kB / 356 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.121, allocations: 32.56 kB / 356 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.1214, allocations: 279.4 kB / 356.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.1215, allocations: 20.94 kB / 356.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.231e-05/0.1215, allocations: 32.28 kB / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006004/0.1221, allocations: 273.4 kB / 356.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.525e-05/0.1222, allocations: 4.188 kB / 356.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.195e-05/0.1222, allocations: 15.88 kB / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.1223, allocations: 11.94 kB / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005978/0.1229, allocations: 274 kB / 356.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.1243, allocations: 0.7913 MB / 357.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006088/0.1249, allocations: 362.6 kB / 358.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003419/0.1253, allocations: 192.8 kB / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.722e-05/0.1253, allocations: 4 kB / 358.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.1253, allocations: 38.56 kB / 358.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.983e-06/0.1253, allocations: 0 / 358.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.00438/0.1297, allocations: 1.976 MB / 360.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.1298, allocations: 59.97 kB / 360.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.13, allocations: 195 kB / 360.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.13, allocations: 33.7 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.1302, allocations: 148.9 kB / 360.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001841/0.1303, allocations: 208.9 kB / 360.9 MB, free: 9.914 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.1305, allocations: 94.23 kB / 361 MB, free: 9.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1307, allocations: 346.8 kB / 361.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003444/0.131, allocations: 165 kB / 361.5 MB, free: 9.305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003349/0.1314, allocations: 173 kB / 361.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007014/0.1321, allocations: 376 kB / 362 MB, free: 8.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1321, allocations: 0 / 362 MB, free: 8.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.000867/0.133, allocations: 486.7 kB / 362.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.133, allocations: 4 kB / 362.5 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.133, allocations: 0 / 362.5 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.133, allocations: 4 kB / 362.5 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004662/0.1335, allocations: 119.8 kB / 362.6 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.1335, allocations: 4 kB / 362.6 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002213/0.1338, allocations: 27.98 kB / 362.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.1338, allocations: 19.94 kB / 362.7 MB, free: 8.109 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.0001771/0.134, allocations: 161.7 kB / 362.8 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.002e-05/0.1341, allocations: 39.53 kB / 362.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.1342, allocations: 43.34 kB / 362.9 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.1342, allocations: 4 kB / 362.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.1342, allocations: 4 kB / 362.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.1342, allocations: 7.969 kB / 362.9 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.1364, allocations: 1.317 MB / 364.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.1364, allocations: 7.938 kB / 364.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005344/0.1369, allocations: 127.9 kB / 364.4 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.23e-05/0.1369, allocations: 12.44 kB / 364.4 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.352e-05/0.137, allocations: 23.94 kB / 364.4 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.205e-05/0.137, allocations: 8 kB / 364.4 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.294e-05/0.1371, allocations: 4 kB / 364.4 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001513/0.1386, allocations: 0.8822 MB / 365.3 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.1387, allocations: 108.7 kB / 365.4 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.512e-05/0.1388, allocations: 24.03 kB / 365.4 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002899/0.1391, allocations: 27.98 kB / 365.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.1392, allocations: 47.83 kB / 365.5 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.203e-05/0.1393, allocations: 20 kB / 365.5 MB, free: 5.035 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001294/0.1394, allocations: 140.6 kB / 365.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1394, allocations: 0 / 365.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004362/0.1398, allocations: 96 kB / 365.8 MB, free: 4.805 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.0001626/0.14, allocations: 127 kB / 365.9 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.141, allocations: 466.6 kB / 366.4 MB, free: 4.219 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.141, allocations: 4 kB / 366.4 MB, free: 4.215 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004437/0.1415, allocations: 247.6 kB / 366.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000775/0.1423, allocations: 88.84 kB / 366.7 MB, free: 3.887 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.1443, allocations: 1.045 MB / 367.7 MB, free: 2.754 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004354/0.1447, allocations: 0.7933 MB / 368.5 MB, free: 1.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.1449, allocations: 43.36 kB / 368.6 MB, free: 1.895 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1449, allocations: 0 / 368.6 MB, free: 1.895 MB / 302.1 MB Notification: Performance of Templates: time 0.1991/0.344, allocations: 4.542 MB / 373.1 MB, free: 24.48 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/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