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.001607/0.001607, allocations: 109.7 kB / 17.16 MB, free: 6.324 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.001738/0.001738, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.438/1.438, allocations: 222.9 MB / 241.8 MB, free: 13.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 48.27 kB / 300.6 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09965/0.1009, allocations: 49.44 MB / 350 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004185/0.1051, allocations: 2.653 MB / 352.7 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.1062, allocations: 390.6 kB / 353.1 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002976/0.1065, allocations: 7.938 kB / 353.1 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00022/0.1067, allocations: 35.7 kB / 353.1 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003042/0.1071, allocations: 83.3 kB / 353.2 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003794/0.1074, allocations: 79.88 kB / 353.3 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000491/0.1079, allocations: 350.4 kB / 353.6 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.1082, allocations: 95.59 kB / 353.7 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.1084, allocations: 123.6 kB / 353.8 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.1087, allocations: 167.3 kB / 354 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.531e-05/0.1088, allocations: 20 kB / 354 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.858e-05/0.1088, allocations: 20 kB / 354 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.298e-05/0.1089, allocations: 59.75 kB / 354.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.1091, allocations: 151.2 kB / 354.2 MB, free: 412 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002494/0.1093, allocations: 275.5 kB / 354.5 MB, free: 136 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1094, allocations: 0 / 354.5 MB, free: 136 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1094, allocations: 4 kB / 354.5 MB, free: 132 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.1094, allocations: 0 / 354.5 MB, free: 132 kB / 286.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.001233/0.1106, allocations: 0.6199 MB / 355.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.1107, allocations: 12.02 kB / 355.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.76e-05/0.1108, allocations: 36.56 kB / 355.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.1111, allocations: 271.5 kB / 355.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.295e-05/0.1111, allocations: 24.94 kB / 355.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.777e-05/0.1112, allocations: 32.28 kB / 355.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005695/0.1118, allocations: 269.4 kB / 355.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.1118, allocations: 192 / 355.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.1118, allocations: 19.94 kB / 355.8 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1119, allocations: 11.94 kB / 355.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005667/0.1124, allocations: 266.1 kB / 356.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.1138, allocations: 0.7913 MB / 356.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006215/0.1144, allocations: 366.5 kB / 357.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003482/0.1148, allocations: 204.8 kB / 357.4 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.007e-05/0.1149, allocations: 4 kB / 357.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.1149, allocations: 34.56 kB / 357.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.633e-06/0.1149, allocations: 0 / 357.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.004335/0.1192, allocations: 1.956 MB / 359.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.1193, allocations: 63.91 kB / 359.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.1195, allocations: 195 kB / 359.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.1195, allocations: 33.7 kB / 359.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.55e-05/0.1196, allocations: 152.9 kB / 359.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.1198, allocations: 216.8 kB / 360.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.1199, allocations: 90.25 kB / 360.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1201, allocations: 346.7 kB / 360.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/0.1204, allocations: 161 kB / 360.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/0.1208, allocations: 169 kB / 360.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006867/0.1215, allocations: 380 kB / 361.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1215, allocations: 0 / 361.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008603/0.1223, allocations: 482.6 kB / 361.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.1224, allocations: 4 kB / 361.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1224, allocations: 0 / 361.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.1224, allocations: 4 kB / 361.7 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004822/0.1229, allocations: 127.8 kB / 361.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.759e-05/0.1229, allocations: 7.984 kB / 361.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.1232, allocations: 23.98 kB / 361.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.1232, allocations: 19.94 kB / 361.8 MB, free: 8.5 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.0001726/0.1234, allocations: 153.8 kB / 362 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.988e-05/0.1235, allocations: 35.53 kB / 362 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.1236, allocations: 51.33 kB / 362.1 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.1236, allocations: 8 kB / 362.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.1236, allocations: 0 / 362.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.1236, allocations: 3.984 kB / 362.1 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.1257, allocations: 1.325 MB / 363.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.1257, allocations: 8.062 kB / 363.4 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004978/0.1262, allocations: 119.8 kB / 363.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.818e-05/0.1263, allocations: 11.94 kB / 363.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/0.1263, allocations: 16 kB / 363.6 MB, free: 6.652 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.681e-05/0.1264, allocations: 15.92 kB / 363.6 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.1264, allocations: 7.938 kB / 363.6 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.1277, allocations: 0.8823 MB / 364.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.1279, allocations: 120.6 kB / 364.6 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.353e-05/0.1279, allocations: 16 kB / 364.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.1282, allocations: 23.98 kB / 364.6 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.1283, allocations: 55.81 kB / 364.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/0.1284, allocations: 20 kB / 364.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000141/0.1285, allocations: 140.6 kB / 364.8 MB, free: 5.293 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1285, allocations: 0 / 364.8 MB, free: 5.293 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004823/0.129, allocations: 96 kB / 364.9 MB, free: 5.199 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.0001955/0.1292, allocations: 119.1 kB / 365 MB, free: 5.074 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009098/0.1301, allocations: 442.7 kB / 365.5 MB, free: 4.641 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1302, allocations: 0 / 365.5 MB, free: 4.641 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004358/0.1306, allocations: 244.7 kB / 365.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007425/0.1314, allocations: 92.7 kB / 365.8 MB, free: 4.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.1332, allocations: 1.187 MB / 367 MB, free: 3.043 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003601/0.1336, allocations: 0.7896 MB / 367.8 MB, free: 2.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.1337, allocations: 43.42 kB / 367.8 MB, free: 2.188 MB / 302.1 MB Notification: Performance of SimCode: time 1.813e-06/0.1337, allocations: 0 / 367.8 MB, free: 2.188 MB / 302.1 MB Notification: Performance of Templates: time 0.1789/0.3126, allocations: 4.539 MB / 372.4 MB, free: 24.15 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