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.001456/0.001456, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 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.001529/0.001529, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 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.491/1.491, allocations: 177 MB / 204.4 MB, free: 5.617 MB / 186.7 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 1.733e-06/1.733e-06, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.325e-05/3.499e-05, allocations: 2.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004311/0.004346, allocations: 2.472 MB / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.006125, allocations: 0.7053 MB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002594/0.006384, allocations: 7.938 kB / 275.4 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002106/0.006595, allocations: 47.52 kB / 275.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003272/0.006922, allocations: 118.9 kB / 275.5 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003813/0.007304, allocations: 99.72 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005427/0.007846, allocations: 390.1 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002178/0.008064, allocations: 83.38 kB / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003904/0.008454, allocations: 227.5 kB / 276.3 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000275/0.00873, allocations: 127.6 kB / 276.4 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001854/0.008915, allocations: 28 kB / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.825e-05/0.008983, allocations: 32 kB / 276.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.427e-05/0.009057, allocations: 71.69 kB / 276.6 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.009222, allocations: 123.7 kB / 276.7 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004882/0.00971, allocations: 390.7 kB / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.009713, allocations: 0 / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.009714, allocations: 0 / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.009727, allocations: 0 / 277.1 MB, free: 12.89 MB / 266.7 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.001134/0.01086, allocations: 0.5597 MB / 277.6 MB, free: 12.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.0109, allocations: 15.98 kB / 277.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.01103, allocations: 64.7 kB / 277.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004259/0.01146, allocations: 214.2 kB / 277.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.01149, allocations: 21.03 kB / 277.9 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.488e-05/0.01157, allocations: 36.33 kB / 278 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005189/0.01209, allocations: 258.4 kB / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/0.01211, allocations: 3.984 kB / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.01214, allocations: 12 kB / 278.2 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.01215, allocations: 12 kB / 278.3 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000453/0.0126, allocations: 226.5 kB / 278.5 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.01399, allocations: 0.6476 MB / 279.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005603/0.01455, allocations: 315.5 kB / 279.4 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000299/0.01485, allocations: 161.5 kB / 279.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.442e-05/0.01488, allocations: 8.375 kB / 279.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.01492, allocations: 42.94 kB / 279.6 MB, free: 10.21 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.553e-06/0.01492, allocations: 3.938 kB / 279.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.004206/0.01912, allocations: 1.78 MB / 281.4 MB, free: 8.371 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.01918, allocations: 60.06 kB / 281.5 MB, free: 8.301 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/0.01942, allocations: 195.1 kB / 281.7 MB, free: 8.102 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.01946, allocations: 37.7 kB / 281.7 MB, free: 8.059 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.01961, allocations: 149.1 kB / 281.9 MB, free: 7.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.01983, allocations: 230 kB / 282.1 MB, free: 7.684 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001648/0.01999, allocations: 94.34 kB / 282.2 MB, free: 7.586 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.0202, allocations: 350.7 kB / 282.5 MB, free: 7.234 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.02047, allocations: 141.2 kB / 282.7 MB, free: 7.098 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002802/0.02075, allocations: 157.9 kB / 282.8 MB, free: 6.941 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006058/0.02136, allocations: 354 kB / 283.2 MB, free: 6.594 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.02136, allocations: 4 kB / 283.2 MB, free: 6.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009548/0.02231, allocations: 485.1 kB / 283.6 MB, free: 6.109 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.02233, allocations: 4 kB / 283.6 MB, free: 6.105 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.02234, allocations: 3.938 kB / 283.6 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.02236, allocations: 4 kB / 283.6 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004889/0.02285, allocations: 119.9 kB / 283.8 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.02286, allocations: 0 / 283.8 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/0.02304, allocations: 16 kB / 283.8 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.871e-05/0.02308, allocations: 19.94 kB / 283.8 MB, free: 5.945 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 (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.0001929/0.02327, allocations: 169.7 kB / 284 MB, free: 5.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.02337, allocations: 51.81 kB / 284 MB, free: 5.719 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000139/0.02351, allocations: 47.34 kB / 284.1 MB, free: 5.668 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.02352, allocations: 4 kB / 284.1 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.02353, allocations: 3.984 kB / 284.1 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.02353, allocations: 3.984 kB / 284.1 MB, free: 5.656 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002108/0.02564, allocations: 1.154 MB / 285.2 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.02565, allocations: 4 kB / 285.2 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005019/0.02615, allocations: 119.8 kB / 285.3 MB, free: 4.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.345e-05/0.02617, allocations: 8.562 kB / 285.4 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.31e-05/0.02621, allocations: 23.94 kB / 285.4 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.779e-05/0.02623, allocations: 11.94 kB / 285.4 MB, free: 4.246 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.02623, allocations: 4 kB / 285.4 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.02762, allocations: 0.854 MB / 286.2 MB, free: 3.32 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.464e-05/0.02771, allocations: 39.8 kB / 286.3 MB, free: 3.281 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.283e-05/0.02777, allocations: 23.94 kB / 286.3 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002428/0.02801, allocations: 16 kB / 286.3 MB, free: 3.242 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.02812, allocations: 56.3 kB / 286.4 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.039e-05/0.02816, allocations: 23.98 kB / 286.4 MB, free: 3.164 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001658/0.02832, allocations: 144.6 kB / 286.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02832, allocations: 0 / 286.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004377/0.02876, allocations: 96 kB / 286.6 MB, free: 2.93 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 (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.0001671/0.02893, allocations: 119.1 kB / 286.8 MB, free: 2.801 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007499/0.02968, allocations: 384.2 kB / 287.1 MB, free: 2.422 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.02968, allocations: 0 / 287.1 MB, free: 2.422 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003778/0.03006, allocations: 226.6 kB / 287.4 MB, free: 2.203 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006986/0.03076, allocations: 104.9 kB / 287.5 MB, free: 2.105 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.0325, allocations: 0.9491 MB / 288.4 MB, free: 1.074 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.03272, allocations: 191.3 kB / 288.6 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001946/0.03291, allocations: 47.3 kB / 288.6 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.03303, allocations: 36.5 kB / 288.7 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.03303, allocations: 0 / 288.7 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of Templates: time 0.01026/0.04329, allocations: 4.414 MB / 293.1 MB, free: 12.44 MB / 282.7 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.354703004006296]