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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001916/0.001916, allocations: 95.88 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001997/0.001997, allocations: 145.1 kB / 24.26 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.577/1.577, allocations: 173.3 MB / 200.8 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 178] 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=500,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=500,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 267.3 MB, free: 6.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.966e-05/3.149e-05, allocations: 6.25 kB / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.006276/0.006308, allocations: 2.561 MB / 269.9 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.007474, allocations: 382.6 kB / 270.2 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.007662, allocations: 11.94 kB / 270.2 MB, free: 3.793 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002407/0.007903, allocations: 55.44 kB / 270.3 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003278/0.008231, allocations: 99.12 kB / 270.4 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004555/0.008686, allocations: 95.73 kB / 270.5 MB, free: 3.547 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007115/0.009398, allocations: 401.9 kB / 270.9 MB, free: 3.152 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000274/0.009672, allocations: 71.39 kB / 271 MB, free: 3.078 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004868/0.01016, allocations: 219.6 kB / 271.2 MB, free: 2.863 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003496/0.01051, allocations: 123.7 kB / 271.3 MB, free: 2.742 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.067e-05/0.0106, allocations: 28 kB / 271.3 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.987e-05/0.0107, allocations: 36 kB / 271.4 MB, free: 2.68 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.01081, allocations: 71.69 kB / 271.4 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002502/0.01106, allocations: 119.7 kB / 271.5 MB, free: 2.492 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007519/0.01181, allocations: 386.7 kB / 271.9 MB, free: 2.113 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.01181, allocations: 0 / 271.9 MB, free: 2.113 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.01181, allocations: 0 / 271.9 MB, free: 2.113 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.01183, allocations: 0 / 271.9 MB, free: 2.113 MB / 250.7 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.001886/0.01371, allocations: 0.6633 MB / 272.6 MB, free: 1.41 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.01376, allocations: 8.922 kB / 272.6 MB, free: 1.402 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000206/0.01397, allocations: 64.75 kB / 272.7 MB, free: 1.34 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005458/0.01452, allocations: 215.8 kB / 272.9 MB, free: 1.102 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.87e-05/0.01458, allocations: 21.03 kB / 272.9 MB, free: 1.078 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.01468, allocations: 28.38 kB / 272.9 MB, free: 1.051 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008956/0.01557, allocations: 262.6 kB / 273.2 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.932e-05/0.0156, allocations: 4.188 kB / 273.2 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/0.01565, allocations: 12.38 kB / 273.2 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.01566, allocations: 8.375 kB / 273.2 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009196/0.01658, allocations: 242.4 kB / 273.4 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002294/0.01888, allocations: 0.7481 MB / 274.2 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009903/0.01987, allocations: 343.1 kB / 274.5 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005635/0.02043, allocations: 171.6 kB / 274.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.577e-05/0.02049, allocations: 8 kB / 274.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.331e-05/0.02054, allocations: 41.39 kB / 274.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 2.375e-06/0.02054, allocations: 0 / 274.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=63): time 0.006131/0.02667, allocations: 1.734 MB / 276.5 MB, free: 13.37 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/0.02675, allocations: 64.06 kB / 276.5 MB, free: 13.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004081/0.02716, allocations: 265.8 kB / 276.8 MB, free: 13.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.531e-05/0.02721, allocations: 33.7 kB / 276.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002194/0.02743, allocations: 199.8 kB / 277 MB, free: 12.78 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003381/0.02777, allocations: 238.1 kB / 277.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002784/0.02805, allocations: 112 kB / 277.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004496/0.0285, allocations: 0.5313 MB / 277.9 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005381/0.02904, allocations: 149.2 kB / 278 MB, free: 11.74 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005381/0.02958, allocations: 161.8 kB / 278.2 MB, free: 11.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001189/0.03076, allocations: 388.7 kB / 278.6 MB, free: 11.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.03077, allocations: 3.938 kB / 278.6 MB, free: 11.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001479/0.03225, allocations: 489.1 kB / 279.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.03227, allocations: 8 kB / 279.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.03228, allocations: 0 / 279.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.0323, allocations: 7.938 kB / 279.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007667/0.03306, allocations: 115.8 kB / 279.2 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.03308, allocations: 4 kB / 279.2 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002873/0.03337, allocations: 20 kB / 279.2 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.952e-05/0.03343, allocations: 19.98 kB / 279.2 MB, free: 10.54 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 (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.0003119/0.03374, allocations: 212.4 kB / 279.4 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/0.0339, allocations: 51.81 kB / 279.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002029/0.03411, allocations: 43.34 kB / 279.5 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.03412, allocations: 8 kB / 279.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.03413, allocations: 0 / 279.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.03414, allocations: 3.984 kB / 279.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003629/0.03777, allocations: 1.335 MB / 280.9 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.066e-05/0.03778, allocations: 4 kB / 280.9 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008207/0.0386, allocations: 120.4 kB / 281 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.712e-05/0.03862, allocations: 8 kB / 281 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.898e-05/0.03867, allocations: 20 kB / 281 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-05/0.03869, allocations: 12 kB / 281 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-05/0.03871, allocations: 11.92 kB / 281 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002418/0.04113, allocations: 0.976 MB / 282 MB, free: 7.508 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.32e-05/0.04121, allocations: 27.81 kB / 282 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.159e-05/0.0413, allocations: 19.98 kB / 282.1 MB, free: 7.461 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004046/0.04171, allocations: 24 kB / 282.1 MB, free: 7.438 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.04187, allocations: 63.58 kB / 282.1 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.668e-05/0.04193, allocations: 20 kB / 282.2 MB, free: 7.355 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002678/0.0422, allocations: 187.9 kB / 282.4 MB, free: 7.172 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.0422, allocations: 0 / 282.4 MB, free: 7.172 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007583/0.04296, allocations: 100 kB / 282.4 MB, free: 7.074 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 (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.0002318/0.04319, allocations: 123 kB / 282.6 MB, free: 6.945 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.04456, allocations: 445.1 kB / 283 MB, free: 6.508 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.04456, allocations: 0 / 283 MB, free: 6.508 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007316/0.04529, allocations: 256.7 kB / 283.3 MB, free: 6.254 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.04639, allocations: 92.39 kB / 283.3 MB, free: 6.168 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.04911, allocations: 0.9825 MB / 284.3 MB, free: 5.082 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/0.04945, allocations: 191.3 kB / 284.5 MB, free: 4.879 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002877/0.04973, allocations: 47.25 kB / 284.6 MB, free: 4.836 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001792/0.04991, allocations: 40.5 kB / 284.6 MB, free: 4.797 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.04992, allocations: 0 / 284.6 MB, free: 4.797 MB / 266.7 MB Notification: Performance of Templates: time 0.01567/0.06558, allocations: 4.177 MB / 288.8 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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_4.0.0_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.652408381924033]