Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001889/0.001889, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002086/0.002086, allocations: 209 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.569/1.569, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 47.92 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2319, allocations: 53.37 MB / 431.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003833/0.2357, allocations: 2.478 MB / 434 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.237, allocations: 0.6937 MB / 434.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.2372, allocations: 7.938 kB / 434.7 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.2374, allocations: 47.52 kB / 434.8 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000216/0.2376, allocations: 115 kB / 434.9 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/0.2379, allocations: 95.81 kB / 435 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004137/0.2383, allocations: 382.2 kB / 435.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002034/0.2385, allocations: 87.52 kB / 435.5 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.2387, allocations: 163.5 kB / 435.6 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.2389, allocations: 163.3 kB / 435.8 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.592e-05/0.239, allocations: 28 kB / 435.8 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.671e-05/0.239, allocations: 32 kB / 435.8 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.807e-05/0.2391, allocations: 67.77 kB / 435.9 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.2392, allocations: 151.2 kB / 436 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004263/0.2397, allocations: 384.7 kB / 436.4 MB, free: 1.836 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2397, allocations: 4 kB / 436.4 MB, free: 1.832 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2397, allocations: 0 / 436.4 MB, free: 1.832 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.2397, allocations: 0 / 436.4 MB, free: 1.832 MB / 334.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.001046/0.2407, allocations: 0.552 MB / 437 MB, free: 1.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2408, allocations: 15.95 kB / 437 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.729e-05/0.2409, allocations: 40.7 kB / 437 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003882/0.2412, allocations: 210.9 kB / 437.2 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.641e-05/0.2413, allocations: 25.03 kB / 437.3 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.38e-05/0.2413, allocations: 35.89 kB / 437.3 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004669/0.2418, allocations: 262 kB / 437.6 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.2418, allocations: 0 / 437.6 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.2419, allocations: 16 kB / 437.6 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.2419, allocations: 8 kB / 437.6 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004087/0.2423, allocations: 230.5 kB / 437.8 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.2436, allocations: 0.6554 MB / 438.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005315/0.2441, allocations: 313.4 kB / 438.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002585/0.2444, allocations: 157.5 kB / 438.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.2444, allocations: 4.375 kB / 438.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.2444, allocations: 46.86 kB / 439 MB, free: 15.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.653e-06/0.2444, allocations: 0 / 439 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003879/0.2483, allocations: 1.76 MB / 440.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.2484, allocations: 64 kB / 440.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002251/0.2486, allocations: 199 kB / 441 MB, free: 13.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.809e-05/0.2486, allocations: 33.7 kB / 441 MB, free: 13.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.2488, allocations: 157.1 kB / 441.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/0.2489, allocations: 234 kB / 441.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.2491, allocations: 90.34 kB / 441.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.2493, allocations: 350.7 kB / 441.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.2495, allocations: 141.3 kB / 442 MB, free: 12.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002587/0.2498, allocations: 153.8 kB / 442.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005698/0.2503, allocations: 353.9 kB / 442.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2503, allocations: 4 kB / 442.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007356/0.2511, allocations: 465.1 kB / 442.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.2511, allocations: 4 kB / 442.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.2511, allocations: 0 / 442.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.2511, allocations: 8 kB / 442.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000481/0.2516, allocations: 115.8 kB / 443 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.2516, allocations: 3.938 kB / 443 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.2518, allocations: 19.98 kB / 443.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.238e-05/0.2518, allocations: 16 kB / 443.1 MB, free: 10.95 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.0001898/0.252, allocations: 161.7 kB / 443.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.068e-05/0.2521, allocations: 35.77 kB / 443.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000122/0.2522, allocations: 51.33 kB / 443.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.2522, allocations: 4 kB / 443.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.2522, allocations: 7.938 kB / 443.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.2522, allocations: 7.969 kB / 443.3 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.2541, allocations: 1.149 MB / 444.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.2541, allocations: 7.938 kB / 444.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004771/0.2546, allocations: 115.8 kB / 444.6 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.2546, allocations: 4 kB / 444.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.011e-05/0.2547, allocations: 23.98 kB / 444.6 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.762e-06/0.2547, allocations: 4 kB / 444.6 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.2547, allocations: 7.938 kB / 444.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.2559, allocations: 0.8418 MB / 445.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.256, allocations: 43.7 kB / 445.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.865e-05/0.256, allocations: 20 kB / 445.6 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.2563, allocations: 20.03 kB / 445.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.375e-05/0.2564, allocations: 56.23 kB / 445.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.433e-05/0.2564, allocations: 20 kB / 445.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001322/0.2565, allocations: 140.6 kB / 445.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2565, allocations: 0 / 445.8 MB, free: 8.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004074/0.2569, allocations: 96 kB / 445.9 MB, free: 7.973 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.0001438/0.2571, allocations: 123.1 kB / 446 MB, free: 7.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006578/0.2577, allocations: 387.7 kB / 446.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2578, allocations: 0 / 446.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000364/0.2581, allocations: 223.2 kB / 446.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006685/0.2588, allocations: 99.95 kB / 446.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.2605, allocations: 1.03 MB / 447.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001982/0.2607, allocations: 191.3 kB / 447.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001826/0.2609, allocations: 51.28 kB / 448 MB, free: 5.777 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.261, allocations: 35.44 kB / 448 MB, free: 5.742 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.261, allocations: 0 / 448 MB, free: 5.742 MB / 350.1 MB Notification: Performance of Templates: time 0.0106/0.2716, allocations: 4.989 MB / 453 MB, free: 0.8398 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.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.708004366606474]