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.001869/0.001869, allocations: 104.7 kB / 19.8 MB, free: 2.516 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.002185/0.002185, allocations: 212.3 kB / 23 MB, free: 5.609 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.434/1.434, allocations: 230.2 MB / 256.2 MB, free: 8.559 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.00187/0.00187, allocations: 63.89 kB / 376.5 MB, free: 3.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2626, allocations: 53.32 MB / 429.8 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003958/0.2666, allocations: 2.693 MB / 432.5 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001304/0.2679, allocations: 0.7365 MB / 433.2 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.268, allocations: 8 kB / 433.2 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.2682, allocations: 51.45 kB / 433.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000208/0.2684, allocations: 99.11 kB / 433.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002941/0.2687, allocations: 99.81 kB / 433.5 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004065/0.2691, allocations: 390.3 kB / 433.8 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.2693, allocations: 75.11 kB / 433.9 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.2695, allocations: 151.4 kB / 434.1 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.2697, allocations: 167.3 kB / 434.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.437e-05/0.2698, allocations: 28 kB / 434.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.127e-05/0.2698, allocations: 35.94 kB / 434.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.181e-05/0.2699, allocations: 75.75 kB / 434.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.2701, allocations: 171.1 kB / 434.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00042/0.2705, allocations: 383.7 kB / 434.9 MB, free: 2.395 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2705, allocations: 4 kB / 434.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2705, allocations: 0 / 434.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.2705, allocations: 0 / 434.9 MB, free: 2.391 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.00109/0.2716, allocations: 0.6311 MB / 435.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.2716, allocations: 8.031 kB / 435.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.676e-05/0.2717, allocations: 40.7 kB / 435.6 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004405/0.2721, allocations: 272.8 kB / 435.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.2722, allocations: 24.97 kB / 435.9 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.31e-05/0.2722, allocations: 27.94 kB / 435.9 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00049/0.2727, allocations: 258.1 kB / 436.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.2728, allocations: 8 kB / 436.2 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.859e-05/0.2728, allocations: 12 kB / 436.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.2728, allocations: 8 kB / 436.2 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004119/0.2732, allocations: 234.4 kB / 436.4 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.2745, allocations: 0.7923 MB / 437.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005087/0.275, allocations: 319.6 kB / 437.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002735/0.2753, allocations: 165.4 kB / 437.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.903e-05/0.2753, allocations: 8.375 kB / 437.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.2754, allocations: 38.92 kB / 437.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.673e-06/0.2754, allocations: 3.938 kB / 437.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.003825/0.2792, allocations: 1.909 MB / 439.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.2792, allocations: 67.91 kB / 439.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.2794, allocations: 215.6 kB / 439.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.2795, allocations: 33.7 kB / 440 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.2796, allocations: 145.2 kB / 440.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.2798, allocations: 237.9 kB / 440.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.2799, allocations: 90.34 kB / 440.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.2801, allocations: 346.8 kB / 440.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.2803, allocations: 141.2 kB / 440.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.2806, allocations: 153.8 kB / 441 MB, free: 11.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005515/0.2811, allocations: 357.6 kB / 441.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2811, allocations: 0 / 441.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000703/0.2818, allocations: 465.1 kB / 441.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.2818, allocations: 7.938 kB / 441.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2819, allocations: 0 / 441.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.2819, allocations: 7.938 kB / 441.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000459/0.2823, allocations: 119.9 kB / 442 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.2823, allocations: 3.984 kB / 442 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001677/0.2825, allocations: 16 kB / 442 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.878e-05/0.2825, allocations: 20 kB / 442 MB, free: 10.98 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.0001863/0.2827, allocations: 161.7 kB / 442.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.451e-05/0.2828, allocations: 39.75 kB / 442.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.2829, allocations: 43.34 kB / 442.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.2829, allocations: 11.94 kB / 442.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2829, allocations: 0 / 442.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.283, allocations: 3.984 kB / 442.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002065/0.285, allocations: 1.29 MB / 443.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.285, allocations: 4 kB / 443.6 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004642/0.2855, allocations: 120.4 kB / 443.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.548e-06/0.2855, allocations: 8 kB / 443.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.536e-05/0.2855, allocations: 20 kB / 443.7 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2e-05/0.2856, allocations: 15.92 kB / 443.7 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.2856, allocations: 4 kB / 443.7 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.2868, allocations: 0.843 MB / 444.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.723e-05/0.2869, allocations: 116.9 kB / 444.7 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.522e-05/0.2869, allocations: 16 kB / 444.7 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.2872, allocations: 19.98 kB / 444.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.2873, allocations: 60.2 kB / 444.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.234e-05/0.2873, allocations: 20.09 kB / 444.8 MB, free: 7.984 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001613/0.2875, allocations: 148.7 kB / 444.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2875, allocations: 0 / 444.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004038/0.2879, allocations: 99.94 kB / 445 MB, free: 7.742 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.0001662/0.288, allocations: 131 kB / 445.2 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007758/0.2888, allocations: 387.1 kB / 445.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.2888, allocations: 0 / 445.5 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004059/0.2892, allocations: 227 kB / 445.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006489/0.2899, allocations: 96.25 kB / 445.9 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.2916, allocations: 1.022 MB / 446.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005139/0.2921, allocations: 0.7973 MB / 447.7 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.2923, allocations: 55.33 kB / 447.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.2925, allocations: 39.42 kB / 447.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2925, allocations: 0 / 447.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of Templates: time 0.009882/0.3023, allocations: 4.597 MB / 452.4 MB, free: 344 kB / 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.499031830579042]