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.001639/0.001639, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001798/0.001798, allocations: 187.3 kB / 24.45 MB, free: 3.961 MB / 14.72 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.462/1.462, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 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 0.001574/0.001574, allocations: 43.92 kB / 371.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2473, allocations: 52.17 MB / 423.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004249/0.2516, allocations: 2.428 MB / 426.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007886/0.2524, allocations: 378.5 kB / 426.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.2525, allocations: 7.938 kB / 426.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.2527, allocations: 51.5 kB / 426.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002095/0.2529, allocations: 99.12 kB / 426.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000342/0.2532, allocations: 95.81 kB / 426.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004386/0.2537, allocations: 374.4 kB / 427.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002198/0.2539, allocations: 75.56 kB / 427.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.2541, allocations: 139.6 kB / 427.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.2543, allocations: 155.2 kB / 427.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.953e-05/0.2544, allocations: 28 kB / 427.6 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.288e-05/0.2545, allocations: 32 kB / 427.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.682e-05/0.2545, allocations: 71.75 kB / 427.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.2547, allocations: 139.4 kB / 427.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004805/0.2552, allocations: 377.3 kB / 428.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2552, allocations: 0 / 428.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2552, allocations: 0 / 428.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.2552, allocations: 0 / 428.2 MB, free: 10.07 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001172/0.2564, allocations: 0.5637 MB / 428.8 MB, free: 9.473 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.2564, allocations: 12.03 kB / 428.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.469e-05/0.2565, allocations: 32.75 kB / 428.8 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/0.2569, allocations: 206.9 kB / 429 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.267e-05/0.257, allocations: 24.97 kB / 429 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.523e-05/0.257, allocations: 28.38 kB / 429.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005969/0.2576, allocations: 282.6 kB / 429.3 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.464e-05/0.2576, allocations: 192 / 429.3 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.2577, allocations: 11.94 kB / 429.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.2577, allocations: 8 kB / 429.4 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005968/0.2583, allocations: 262.4 kB / 429.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/0.2596, allocations: 0.6473 MB / 430.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006613/0.2603, allocations: 334.7 kB / 430.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003701/0.2606, allocations: 172.7 kB / 430.8 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.074e-05/0.2607, allocations: 11.98 kB / 430.8 MB, free: 7.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.2607, allocations: 34.56 kB / 430.8 MB, free: 7.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 4.248e-06/0.2607, allocations: 4 kB / 430.8 MB, free: 7.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=63): time 0.004485/0.2652, allocations: 1.825 MB / 432.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.2653, allocations: 64 kB / 432.7 MB, free: 5.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.2655, allocations: 187.9 kB / 432.9 MB, free: 5.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.218e-05/0.2655, allocations: 41.7 kB / 432.9 MB, free: 5.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.2656, allocations: 153 kB / 433.1 MB, free: 5.004 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.2658, allocations: 222.1 kB / 433.3 MB, free: 4.785 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.266, allocations: 94.33 kB / 433.4 MB, free: 4.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.2662, allocations: 342.8 kB / 433.7 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003593/0.2665, allocations: 165.2 kB / 433.9 MB, free: 4.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003492/0.2669, allocations: 165.8 kB / 434 MB, free: 4.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007289/0.2676, allocations: 377.9 kB / 434.4 MB, free: 3.648 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2676, allocations: 0 / 434.4 MB, free: 3.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009266/0.2685, allocations: 493.1 kB / 434.9 MB, free: 3.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.2686, allocations: 11.94 kB / 434.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2686, allocations: 0 / 434.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.054e-05/0.2686, allocations: 7.922 kB / 434.9 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004936/0.2691, allocations: 123.9 kB / 435 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.2691, allocations: 0 / 435 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.2693, allocations: 23.98 kB / 435.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.942e-05/0.2694, allocations: 16 kB / 435.1 MB, free: 2.98 MB / 334.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 (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.0002184/0.2696, allocations: 161.7 kB / 435.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.34e-05/0.2696, allocations: 35.8 kB / 435.3 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001292/0.2698, allocations: 47.34 kB / 435.3 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.2698, allocations: 8 kB / 435.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.2698, allocations: 4 kB / 435.3 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.2698, allocations: 3.984 kB / 435.3 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002126/0.2719, allocations: 1.172 MB / 436.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.2719, allocations: 4 kB / 436.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004889/0.2724, allocations: 123.8 kB / 436.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.191e-05/0.2724, allocations: 8 kB / 436.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.909e-05/0.2725, allocations: 19.98 kB / 436.7 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.987e-06/0.2725, allocations: 8.375 kB / 436.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.247e-05/0.2725, allocations: 11.94 kB / 436.7 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.274, allocations: 0.8822 MB / 437.6 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.258e-05/0.274, allocations: 31.84 kB / 437.6 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.284e-05/0.2741, allocations: 16 kB / 437.6 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002505/0.2743, allocations: 35.92 kB / 437.6 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.636e-05/0.2744, allocations: 55.8 kB / 437.7 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.608e-05/0.2745, allocations: 23.98 kB / 437.7 MB, free: 160 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001198/0.2746, allocations: 127.2 kB / 437.8 MB, free: 32 kB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2746, allocations: 0 / 437.8 MB, free: 32 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004377/0.275, allocations: 96.08 kB / 437.9 MB, free: 15.93 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 (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.0001619/0.2752, allocations: 123.1 kB / 438.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008578/0.2761, allocations: 412.1 kB / 438.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.2761, allocations: 4 kB / 438.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004474/0.2765, allocations: 236.7 kB / 438.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006287/0.2771, allocations: 83 kB / 438.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.279, allocations: 1.061 MB / 439.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.2792, allocations: 191.2 kB / 440 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.2793, allocations: 39.44 kB / 440.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2793, allocations: 0 / 440.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of Templates: time 0.007793/0.2871, allocations: 4.725 MB / 444.8 MB, free: 9 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/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: 7.275561491027474]