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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001475/0.001475, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001763/0.001763, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.066/1.066, allocations: 177 MB / 204.8 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] 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=500,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=500,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.839e-05/1.967e-05, allocations: 2.312 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002687/0.002706, allocations: 2.661 MB / 275.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00095/0.003656, allocations: 0.7208 MB / 276.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.003782, allocations: 7.938 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001448/0.003927, allocations: 51.45 kB / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.004087, allocations: 111 kB / 276.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.004344, allocations: 99.72 kB / 276.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002954/0.004639, allocations: 402 kB / 276.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.004806, allocations: 75.62 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.00499, allocations: 223.5 kB / 277.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.00518, allocations: 131.6 kB / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.693e-05/0.005237, allocations: 32 kB / 277.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.432e-05/0.005281, allocations: 28 kB / 277.4 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.625e-05/0.005338, allocations: 75.72 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.444e-05/0.005432, allocations: 115.8 kB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002575/0.00569, allocations: 270.9 kB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.005693, allocations: 0 / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.005694, allocations: 0 / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.0057, allocations: 0 / 277.9 MB, free: 12.48 MB / 266.7 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.001035/0.006735, allocations: 0.6597 MB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.00678, allocations: 11.98 kB / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.016e-05/0.006871, allocations: 64.7 kB / 278.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.007149, allocations: 220.9 kB / 278.8 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.244e-05/0.007181, allocations: 21.03 kB / 278.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/0.007234, allocations: 28.38 kB / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.007532, allocations: 219.1 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.007549, allocations: 4 kB / 279.1 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.007571, allocations: 8 kB / 279.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.007584, allocations: 15.94 kB / 279.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002084/0.007792, allocations: 143.8 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008156/0.008608, allocations: 0.6781 MB / 279.9 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.008917, allocations: 264.9 kB / 280.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.009052, allocations: 116.3 kB / 280.3 MB, free: 9.922 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.009085, allocations: 12.36 kB / 280.3 MB, free: 9.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.009109, allocations: 45.77 kB / 280.4 MB, free: 9.855 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.633e-06/0.009111, allocations: 0 / 280.4 MB, free: 9.855 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002201/0.01131, allocations: 1.437 MB / 281.8 MB, free: 8.359 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.01135, allocations: 60.06 kB / 281.8 MB, free: 8.289 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.01153, allocations: 245.6 kB / 282.1 MB, free: 8.031 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.01156, allocations: 37.7 kB / 282.1 MB, free: 7.988 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.64e-05/0.01166, allocations: 203.8 kB / 282.3 MB, free: 7.785 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.01178, allocations: 229.9 kB / 282.5 MB, free: 7.559 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.01189, allocations: 100 kB / 282.6 MB, free: 7.453 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.01203, allocations: 0.5235 MB / 283.2 MB, free: 6.918 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.01215, allocations: 77.27 kB / 283.2 MB, free: 6.844 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.01228, allocations: 97.84 kB / 283.3 MB, free: 6.746 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.01259, allocations: 244.7 kB / 283.6 MB, free: 6.504 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.01259, allocations: 0 / 283.6 MB, free: 6.504 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004163/0.01301, allocations: 385 kB / 284 MB, free: 6.121 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.01303, allocations: 4 kB / 284 MB, free: 6.117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.01303, allocations: 0 / 284 MB, free: 6.117 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.01306, allocations: 4 kB / 284 MB, free: 6.113 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.01334, allocations: 115.8 kB / 284.1 MB, free: 6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.01335, allocations: 4 kB / 284.1 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.02e-05/0.01343, allocations: 16 kB / 284.1 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.522e-05/0.01345, allocations: 23.92 kB / 284.1 MB, free: 5.957 MB / 266.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 (71): * Single equations (assignments): 71 * 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.0001263/0.01358, allocations: 184.5 kB / 284.3 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.973e-05/0.01364, allocations: 59.77 kB / 284.4 MB, free: 5.707 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.082e-05/0.01372, allocations: 47.33 kB / 284.4 MB, free: 5.656 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.01372, allocations: 4 kB / 284.4 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.01373, allocations: 4 kB / 284.4 MB, free: 5.648 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.01374, allocations: 0 / 284.4 MB, free: 5.648 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.01518, allocations: 1.125 MB / 285.5 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.01519, allocations: 4.562 kB / 285.5 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002454/0.01543, allocations: 123.8 kB / 285.7 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.01544, allocations: 8 kB / 285.7 MB, free: 4.273 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.01546, allocations: 19.94 kB / 285.7 MB, free: 4.254 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-06/0.01547, allocations: 15.92 kB / 285.7 MB, free: 4.238 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.01547, allocations: 4 kB / 285.7 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006431/0.01612, allocations: 0.7791 MB / 286.5 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.51e-05/0.01615, allocations: 43.75 kB / 286.5 MB, free: 3.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.01618, allocations: 23.94 kB / 286.6 MB, free: 3.297 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.0163, allocations: 19.98 kB / 286.6 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.822e-05/0.01637, allocations: 52.3 kB / 286.6 MB, free: 3.227 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.01639, allocations: 24 kB / 286.6 MB, free: 3.203 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.978e-05/0.01647, allocations: 168.5 kB / 286.8 MB, free: 3.039 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01647, allocations: 0 / 286.8 MB, free: 3.039 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002453/0.01672, allocations: 100 kB / 286.9 MB, free: 2.941 MB / 266.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 (65): * Single equations (assignments): 65 * 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.0001159/0.01683, allocations: 119.1 kB / 287 MB, free: 2.812 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004009/0.01723, allocations: 321.1 kB / 287.3 MB, free: 2.492 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.01724, allocations: 7.938 kB / 287.3 MB, free: 2.484 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001856/0.01742, allocations: 183.6 kB / 287.5 MB, free: 2.305 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.01786, allocations: 108.6 kB / 287.6 MB, free: 2.203 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.01887, allocations: 0.9419 MB / 288.6 MB, free: 1.156 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.099e-05/0.01895, allocations: 106.8 kB / 288.7 MB, free: 1.035 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001192/0.01907, allocations: 59.27 kB / 288.7 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.878e-05/0.01915, allocations: 36.5 kB / 288.8 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.01915, allocations: 3.938 kB / 288.8 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of Templates: time 0.006847/0.026, allocations: 4.429 MB / 293.2 MB, free: 12.58 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.181509763933718]