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.001332/0.001332, allocations: 80.8 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001243/0.001243, allocations: 170 kB / 24.91 MB, free: 9.207 MB / 18.57 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.016/1.016, allocations: 177.1 MB / 205.3 MB, free: 5.453 MB / 186.7 MB " [Timeout remaining time 179] 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 1.724e-06/1.724e-06, allocations: 0 / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.487e-05, allocations: 2.312 kB / 273.4 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004075/0.0041, allocations: 2.621 MB / 276 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001817/0.005917, allocations: 0.7478 MB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002973/0.006214, allocations: 7.938 kB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002317/0.006446, allocations: 55.44 kB / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003913/0.006837, allocations: 111 kB / 277 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.007225, allocations: 99.72 kB / 277.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004778/0.007703, allocations: 402 kB / 277.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.00793, allocations: 82.25 kB / 277.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003597/0.00829, allocations: 223.5 kB / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.00854, allocations: 127.6 kB / 277.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.259e-05/0.008612, allocations: 32 kB / 277.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.407e-05/0.008666, allocations: 28 kB / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.079e-05/0.008737, allocations: 79.73 kB / 278 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001432/0.00888, allocations: 115.7 kB / 278.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003697/0.00925, allocations: 267 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.009255, allocations: 0 / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.009256, allocations: 0 / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.009265, allocations: 0 / 278.4 MB, free: 12.29 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.0008971/0.01016, allocations: 0.5349 MB / 278.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.0102, allocations: 8.031 kB / 278.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.0103, allocations: 44.91 kB / 279 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/0.01062, allocations: 198.1 kB / 279.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.01066, allocations: 21.03 kB / 279.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.552e-05/0.01071, allocations: 32.36 kB / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003224/0.01103, allocations: 203 kB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.01106, allocations: 4 kB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.01108, allocations: 12 kB / 279.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.01109, allocations: 8 kB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002096/0.0113, allocations: 100.5 kB / 279.5 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.01233, allocations: 491 kB / 280 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003832/0.01271, allocations: 231.5 kB / 280.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.01285, allocations: 87.97 kB / 280.3 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.01288, allocations: 16.31 kB / 280.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.01291, allocations: 38.94 kB / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.004e-06/0.01291, allocations: 0 / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002712/0.01562, allocations: 1.374 MB / 281.8 MB, free: 8.773 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.01567, allocations: 60.06 kB / 281.8 MB, free: 8.703 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.01583, allocations: 194.3 kB / 282 MB, free: 8.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.909e-05/0.01586, allocations: 37.7 kB / 282 MB, free: 8.457 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.474e-05/0.01593, allocations: 137 kB / 282.2 MB, free: 8.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.01608, allocations: 233.9 kB / 282.4 MB, free: 8.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.01621, allocations: 106.3 kB / 282.5 MB, free: 7.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.01633, allocations: 346.7 kB / 282.9 MB, free: 7.633 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.01644, allocations: 53.28 kB / 282.9 MB, free: 7.578 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.01654, allocations: 69.88 kB / 283 MB, free: 7.512 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/0.01683, allocations: 201.8 kB / 283.2 MB, free: 7.312 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.01683, allocations: 0 / 283.2 MB, free: 7.312 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0003584/0.01719, allocations: 257.3 kB / 283.4 MB, free: 7.055 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.01721, allocations: 4 kB / 283.4 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.01721, allocations: 3.984 kB / 283.4 MB, free: 7.047 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.01723, allocations: 4 kB / 283.4 MB, free: 7.043 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/0.01759, allocations: 107.9 kB / 283.5 MB, free: 6.938 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.0176, allocations: 4 kB / 283.5 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.01772, allocations: 19.92 kB / 283.6 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.01774, allocations: 20 kB / 283.6 MB, free: 6.895 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.0001218/0.01786, allocations: 133.7 kB / 283.7 MB, free: 6.754 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.75e-05/0.01793, allocations: 43.97 kB / 283.8 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.245e-05/0.01801, allocations: 47.33 kB / 283.8 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.01802, allocations: 8 kB / 283.8 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.01802, allocations: 0 / 283.8 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.964e-06/0.01803, allocations: 3.984 kB / 283.8 MB, free: 6.645 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.01918, allocations: 0.8197 MB / 284.6 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.01919, allocations: 4 kB / 284.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003407/0.01953, allocations: 119.8 kB / 284.8 MB, free: 5.625 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.01954, allocations: 4.562 kB / 284.8 MB, free: 5.621 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/0.01956, allocations: 20 kB / 284.8 MB, free: 5.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.01957, allocations: 15.92 kB / 284.8 MB, free: 5.586 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.01958, allocations: 4 kB / 284.8 MB, free: 5.582 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006062/0.02018, allocations: 0.5728 MB / 285.4 MB, free: 4.938 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.918e-05/0.02023, allocations: 43.78 kB / 285.4 MB, free: 4.895 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.994e-05/0.02027, allocations: 20 kB / 285.4 MB, free: 4.875 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.02044, allocations: 12 kB / 285.4 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.443e-05/0.02051, allocations: 60.3 kB / 285.5 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.02054, allocations: 16 kB / 285.5 MB, free: 4.789 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.302e-05/0.0206, allocations: 66.09 kB / 285.6 MB, free: 4.723 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0206, allocations: 0 / 285.6 MB, free: 4.723 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000315/0.02092, allocations: 99.94 kB / 285.7 MB, free: 4.625 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.0001095/0.02102, allocations: 96.3 kB / 285.8 MB, free: 4.523 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000251/0.02128, allocations: 262.4 kB / 286 MB, free: 4.266 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.02128, allocations: 4 kB / 286 MB, free: 4.262 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.02142, allocations: 164.7 kB / 286.2 MB, free: 4.094 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003515/0.02177, allocations: 95.81 kB / 286.3 MB, free: 4.004 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008424/0.02262, allocations: 0.8241 MB / 287.1 MB, free: 3.102 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.925e-05/0.02269, allocations: 106.8 kB / 287.2 MB, free: 2.977 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001201/0.02281, allocations: 43.3 kB / 287.3 MB, free: 2.934 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.02297, allocations: 135.3 kB / 287.4 MB, free: 2.801 MB / 266.7 MB Notification: Performance of SimCode: time 9.41e-07/0.02297, allocations: 0 / 287.4 MB, free: 2.801 MB / 266.7 MB Notification: Performance of Templates: time 0.1043/0.1273, allocations: 4.868 MB / 292.3 MB, free: 26.1 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8638342968188226]