Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008811/0.0008808, allocations: 98.02 kB / 17 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 194.6 kB / 17.9 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001989/0.0001989, allocations: 4 kB / 307.1 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08803/0.08825, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002324/0.09062, allocations: 2.235 MB / 360.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009467/0.09158, allocations: 0.7018 MB / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.0917, allocations: 4 kB / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.09182, allocations: 35.7 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001496/0.09198, allocations: 91.23 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002262/0.09221, allocations: 71.92 kB / 361.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003085/0.09253, allocations: 358.3 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.0927, allocations: 89.62 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.09282, allocations: 119.6 kB / 362.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001786/0.09301, allocations: 147.3 kB / 362.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/0.09306, allocations: 16 kB / 362.5 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.098e-05/0.09311, allocations: 16 kB / 362.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.824e-05/0.09317, allocations: 51.81 kB / 362.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.368e-05/0.09324, allocations: 85.52 kB / 362.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00023/0.09347, allocations: 275.5 kB / 362.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.09348, allocations: 0 / 362.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09349, allocations: 0 / 362.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.0935, allocations: 0 / 362.9 MB, free: 9.344 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0007954/0.0943, allocations: 0.573 MB / 363.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.09434, allocations: 12.03 kB / 363.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.156e-05/0.09441, allocations: 35.53 kB / 363.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002932/0.09471, allocations: 263.5 kB / 363.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.09474, allocations: 24.66 kB / 363.8 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.761e-05/0.09479, allocations: 27.95 kB / 363.8 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004273/0.09523, allocations: 262.1 kB / 364.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.09525, allocations: 7.938 kB / 364.1 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.09528, allocations: 12 kB / 364.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.0953, allocations: 4 kB / 364.1 MB, free: 8.039 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003893/0.0957, allocations: 230.5 kB / 364.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.09689, allocations: 0.8078 MB / 365.1 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004804/0.09739, allocations: 348.4 kB / 365.5 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002586/0.09766, allocations: 181.5 kB / 365.7 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.0977, allocations: 4.375 kB / 365.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.09773, allocations: 38.94 kB / 365.7 MB, free: 6.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.523e-06/0.09774, allocations: 0 / 365.7 MB, free: 6.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003565/0.1013, allocations: 1.919 MB / 367.6 MB, free: 4.375 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.1014, allocations: 59.97 kB / 367.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.1016, allocations: 208.1 kB / 367.9 MB, free: 4.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.425e-05/0.1016, allocations: 41.7 kB / 367.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.612e-05/0.1017, allocations: 152.9 kB / 368.1 MB, free: 3.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.1019, allocations: 216.8 kB / 368.3 MB, free: 3.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-05/0.1019, allocations: 12 kB / 368.3 MB, free: 3.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.102, allocations: 350.8 kB / 368.6 MB, free: 3.309 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002325/0.1023, allocations: 141.2 kB / 368.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.1025, allocations: 149.8 kB / 368.9 MB, free: 3.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/0.1028, allocations: 163.2 kB / 369.1 MB, free: 2.863 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1028, allocations: 0 / 369.1 MB, free: 2.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006321/0.1034, allocations: 464.9 kB / 369.5 MB, free: 2.402 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.834e-05/0.1035, allocations: 7.984 kB / 369.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1035, allocations: 0 / 369.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1035, allocations: 4 kB / 369.5 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.104, allocations: 111.9 kB / 369.7 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.104, allocations: 3.938 kB / 369.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.1042, allocations: 19.98 kB / 369.7 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.764e-05/0.1042, allocations: 16 kB / 369.7 MB, free: 2.242 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 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001539/0.1044, allocations: 166.4 kB / 369.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.981e-05/0.1044, allocations: 39.53 kB / 369.9 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.1045, allocations: 47.33 kB / 369.9 MB, free: 1.988 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1046, allocations: 8 kB / 369.9 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1046, allocations: 0 / 369.9 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.066e-06/0.1046, allocations: 3.984 kB / 369.9 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.1064, allocations: 1.298 MB / 371.2 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.1064, allocations: 8 kB / 371.3 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004419/0.1068, allocations: 119.8 kB / 371.4 MB, free: 444 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.335e-06/0.1069, allocations: 8 kB / 371.4 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.495e-05/0.1069, allocations: 19.98 kB / 371.4 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.105e-06/0.1069, allocations: 15.88 kB / 371.4 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/0.1069, allocations: 4 kB / 371.4 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1647/0.2716, allocations: 0.8345 MB / 372.3 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.2717, allocations: 112.6 kB / 372.4 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.972e-05/0.2718, allocations: 19.95 kB / 372.4 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002937/0.2721, allocations: 20.03 kB / 372.4 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.42e-05/0.2722, allocations: 50.98 kB / 372.5 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.802e-05/0.2723, allocations: 24.34 kB / 372.5 MB, free: 19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001323/0.2724, allocations: 150.2 kB / 372.6 MB, free: 18.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2724, allocations: 1.344 kB / 372.6 MB, free: 18.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004973/0.2729, allocations: 97.25 kB / 372.7 MB, free: 18.93 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 (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001265/0.2731, allocations: 123.2 kB / 372.8 MB, free: 18.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007469/0.2738, allocations: 402.9 kB / 373.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2738, allocations: 1.031 kB / 373.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003777/0.2742, allocations: 238.7 kB / 373.5 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007111/0.2749, allocations: 83.72 kB / 373.5 MB, free: 18.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.2766, allocations: 1.203 MB / 374.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.2769, allocations: 0.7977 MB / 375.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000239/0.2771, allocations: 53.53 kB / 375.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.2772, allocations: 39.25 kB / 375.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2772, allocations: 0 / 375.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of Templates: time 0.008556/0.2858, allocations: 3.864 MB / 379.5 MB, free: 17.14 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches