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.001612/0.001612, allocations: 117.9 kB / 18.5 MB, free: 4.52 MB / 14.72 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.00167/0.00167, allocations: 214.5 kB / 21.46 MB, free: 1.566 MB / 14.72 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.505/1.505, allocations: 230.2 MB / 254.5 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001867/0.001867, allocations: 63.89 kB / 373.8 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.113, allocations: 53.32 MB / 427.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003999/0.117, allocations: 2.686 MB / 429.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.1183, allocations: 0.7287 MB / 430.6 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.1184, allocations: 4 kB / 430.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.1186, allocations: 51.44 kB / 430.6 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002115/0.1188, allocations: 107.1 kB / 430.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003012/0.1191, allocations: 91.83 kB / 430.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003997/0.1195, allocations: 394.2 kB / 431.2 MB, free: 428 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.1197, allocations: 79.11 kB / 431.3 MB, free: 340 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.1199, allocations: 143.5 kB / 431.4 MB, free: 196 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.1201, allocations: 175.2 kB / 431.6 MB, free: 20 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2409/0.361, allocations: 33.39 kB / 431.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.3611, allocations: 31.5 kB / 431.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.54e-05/0.3612, allocations: 65.66 kB / 431.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002164/0.3614, allocations: 178.1 kB / 431.9 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005408/0.3619, allocations: 379.4 kB / 432.3 MB, free: 8.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3619, allocations: 0 / 432.3 MB, free: 8.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3619, allocations: 2 kB / 432.3 MB, free: 8.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.362, allocations: 0.5 kB / 432.3 MB, free: 8.305 MB / 350.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.0009402/0.3629, allocations: 0.6271 MB / 432.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.3629, allocations: 10.81 kB / 432.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.062e-05/0.363, allocations: 39.73 kB / 432.9 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003121/0.3633, allocations: 274.3 kB / 433.2 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.3633, allocations: 21.78 kB / 433.2 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.188e-05/0.3634, allocations: 40.5 kB / 433.3 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000415/0.3638, allocations: 258.9 kB / 433.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.3638, allocations: 1.5 kB / 433.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.3638, allocations: 13.16 kB / 433.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.3639, allocations: 7.844 kB / 433.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003567/0.3642, allocations: 232.8 kB / 433.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.3652, allocations: 0.7971 MB / 434.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004557/0.3657, allocations: 319.8 kB / 434.9 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002446/0.3659, allocations: 161.3 kB / 435 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.366, allocations: 5.531 kB / 435 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.457e-05/0.366, allocations: 38.09 kB / 435.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.463e-06/0.366, allocations: 0 / 435.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003567/0.3695, allocations: 1.904 MB / 437 MB, free: 6.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.3696, allocations: 62.69 kB / 437 MB, free: 6.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/0.3698, allocations: 212.3 kB / 437.2 MB, free: 6.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.3698, allocations: 38.86 kB / 437.3 MB, free: 6.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.389e-05/0.3699, allocations: 150.4 kB / 437.4 MB, free: 6.277 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.37, allocations: 238.4 kB / 437.7 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.3701, allocations: 95.19 kB / 437.8 MB, free: 6.098 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.295e-05/0.3702, allocations: 349.9 kB / 438.1 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002475/0.3705, allocations: 143.8 kB / 438.2 MB, free: 5.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002372/0.3707, allocations: 153.9 kB / 438.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005139/0.3712, allocations: 358.6 kB / 438.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.3712, allocations: 0 / 438.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006961/0.3719, allocations: 460 kB / 439.2 MB, free: 5.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.3719, allocations: 5.469 kB / 439.2 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3719, allocations: 0.7031 kB / 439.2 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3719, allocations: 2.281 kB / 439.2 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004699/0.3724, allocations: 117.2 kB / 439.3 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.3724, allocations: 10.22 kB / 439.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.3726, allocations: 18.25 kB / 439.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.3726, allocations: 17.91 kB / 439.4 MB, free: 5.262 MB / 350.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 (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.0001258/0.3727, allocations: 157.1 kB / 439.5 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.912e-05/0.3728, allocations: 43.31 kB / 439.5 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.3729, allocations: 47.3 kB / 439.6 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.3729, allocations: 7.906 kB / 439.6 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.3729, allocations: 3.938 kB / 439.6 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.3729, allocations: 10.73 kB / 439.6 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.3746, allocations: 1.288 MB / 440.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.3746, allocations: 4.625 kB / 440.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000463/0.3751, allocations: 120.8 kB / 441 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.428e-06/0.3751, allocations: 7.672 kB / 441 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.696e-05/0.3751, allocations: 17.59 kB / 441.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.136e-05/0.3751, allocations: 10.67 kB / 441.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/0.3751, allocations: 9.75 kB / 441.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.3762, allocations: 0.8358 MB / 441.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.592e-05/0.3763, allocations: 121.5 kB / 442 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.428e-05/0.3763, allocations: 21.48 kB / 442 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.3766, allocations: 17.39 kB / 442.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.373e-05/0.3767, allocations: 51.66 kB / 442.1 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.455e-05/0.3767, allocations: 23.53 kB / 442.1 MB, free: 3.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001142/0.3768, allocations: 146.9 kB / 442.3 MB, free: 3.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3768, allocations: 4 kB / 442.3 MB, free: 3.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003989/0.3772, allocations: 96.72 kB / 442.4 MB, free: 3.465 MB / 350.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 (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.0001267/0.3773, allocations: 122.8 kB / 442.5 MB, free: 3.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006437/0.378, allocations: 386.2 kB / 442.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.378, allocations: 5.031 kB / 442.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003331/0.3783, allocations: 228.8 kB / 443.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006509/0.379, allocations: 91 kB / 443.2 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.3803, allocations: 1.026 MB / 444.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.3806, allocations: 0.8011 MB / 445 MB, free: 1.742 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001784/0.3808, allocations: 49.3 kB / 445.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.3809, allocations: 37.45 kB / 445.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3809, allocations: 1.062 kB / 445.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of Templates: time 0.01038/0.3912, allocations: 4.47 MB / 449.6 MB, free: 1.422 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.645590538159013]