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.001082/0.001082, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.004261/0.004261, allocations: 145.3 kB / 24.68 MB, free: 9.422 MB / 18.57 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 0.8541/0.8541, allocations: 173.4 MB / 201.2 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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 1.242e-06/1.242e-06, allocations: 0 / 319.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.182e-05/2.306e-05, allocations: 9.453 kB / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002241/0.002264, allocations: 2.409 MB / 322.1 MB, free: 3.434 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006216/0.002886, allocations: 378.5 kB / 322.4 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.002992, allocations: 7.938 kB / 322.5 MB, free: 3.055 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.003125, allocations: 55.39 kB / 322.5 MB, free: 3 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.003256, allocations: 107 kB / 322.6 MB, free: 2.895 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000247/0.003503, allocations: 91.75 kB / 322.7 MB, free: 2.805 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.003749, allocations: 390.1 kB / 323.1 MB, free: 2.422 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.003915, allocations: 87.61 kB / 323.2 MB, free: 2.328 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.004071, allocations: 203.6 kB / 323.4 MB, free: 2.129 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001352/0.004206, allocations: 131.6 kB / 323.5 MB, free: 2 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.004247, allocations: 28 kB / 323.5 MB, free: 1.973 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.945e-05/0.004277, allocations: 32 kB / 323.6 MB, free: 1.941 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.319e-05/0.00432, allocations: 71.73 kB / 323.6 MB, free: 1.871 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.601e-05/0.004396, allocations: 119.7 kB / 323.7 MB, free: 1.754 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.004672, allocations: 382.7 kB / 324.1 MB, free: 1.379 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.004674, allocations: 0 / 324.1 MB, free: 1.379 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.004675, allocations: 0 / 324.1 MB, free: 1.379 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.00468, allocations: 0 / 324.1 MB, free: 1.379 MB / 282.7 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.0006613/0.005342, allocations: 0.5559 MB / 324.7 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.005379, allocations: 8.922 kB / 324.7 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.00543, allocations: 40.73 kB / 324.7 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.005663, allocations: 217 kB / 324.9 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.00569, allocations: 17.03 kB / 324.9 MB, free: 496 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.005729, allocations: 36.36 kB / 325 MB, free: 460 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003351/0.006064, allocations: 270.6 kB / 325.2 MB, free: 184 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.00608, allocations: 8.172 kB / 325.3 MB, free: 176 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.437e-05/0.006104, allocations: 8.375 kB / 325.3 MB, free: 168 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.006112, allocations: 8.375 kB / 325.3 MB, free: 160 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000342/0.006454, allocations: 270.4 kB / 325.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007874/0.007241, allocations: 0.6396 MB / 326.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000364/0.007605, allocations: 334.6 kB / 326.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.0078, allocations: 177.4 kB / 326.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.007824, allocations: 8 kB / 326.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.007842, allocations: 34.56 kB / 326.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.673e-06/0.007844, allocations: 0 / 326.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.00243/0.01027, allocations: 1.83 MB / 328.5 MB, free: 12.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/0.01031, allocations: 60.06 kB / 328.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.01043, allocations: 187.8 kB / 328.8 MB, free: 12.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.01045, allocations: 33.7 kB / 328.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.042e-05/0.01054, allocations: 149.1 kB / 329 MB, free: 12.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.01064, allocations: 218.1 kB / 329.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.438e-05/0.01073, allocations: 94.28 kB / 329.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.151e-05/0.01082, allocations: 342.8 kB / 329.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001961/0.01102, allocations: 165.2 kB / 329.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.01121, allocations: 173.8 kB / 329.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000405/0.01161, allocations: 373.9 kB / 330.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.01162, allocations: 3.938 kB / 330.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0004947/0.01211, allocations: 497 kB / 330.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.01212, allocations: 4 kB / 330.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.01213, allocations: 0 / 330.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.01214, allocations: 7.984 kB / 330.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002428/0.01239, allocations: 123.9 kB / 330.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.01239, allocations: 0 / 330.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.497e-05/0.01248, allocations: 23.98 kB / 330.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.01249, allocations: 16 kB / 331 MB, free: 10.3 MB / 298.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 (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.00011/0.0126, allocations: 165.7 kB / 331.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.338e-05/0.01264, allocations: 35.75 kB / 331.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.375e-05/0.0127, allocations: 51.33 kB / 331.2 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.01271, allocations: 8 kB / 331.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.01271, allocations: 0 / 331.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.01272, allocations: 3.984 kB / 331.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001126/0.01384, allocations: 1.164 MB / 332.4 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.01385, allocations: 4 kB / 332.4 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002481/0.01409, allocations: 132.4 kB / 332.5 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.0141, allocations: 4 kB / 332.5 MB, free: 8.633 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.01412, allocations: 16 kB / 332.5 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.01412, allocations: 11.98 kB / 332.6 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.01413, allocations: 7.938 kB / 332.6 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007856/0.01491, allocations: 0.8787 MB / 333.4 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.919e-05/0.01494, allocations: 35.84 kB / 333.5 MB, free: 7.613 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.01497, allocations: 16 kB / 333.5 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.01509, allocations: 27.98 kB / 333.5 MB, free: 7.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.993e-05/0.01515, allocations: 51.8 kB / 333.6 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.01517, allocations: 20 kB / 333.6 MB, free: 7.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.333e-05/0.01523, allocations: 136.5 kB / 333.7 MB, free: 7.367 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01523, allocations: 0 / 333.7 MB, free: 7.367 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002359/0.01547, allocations: 96 kB / 333.8 MB, free: 7.273 MB / 298.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 (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 9.803e-05/0.01557, allocations: 123.1 kB / 333.9 MB, free: 7.145 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004698/0.01604, allocations: 416.1 kB / 334.3 MB, free: 6.738 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01604, allocations: 3.938 kB / 334.3 MB, free: 6.734 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002427/0.01628, allocations: 244.1 kB / 334.6 MB, free: 6.496 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.01665, allocations: 82.75 kB / 334.7 MB, free: 6.418 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009878/0.01764, allocations: 0.9481 MB / 335.6 MB, free: 5.379 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001106/0.01775, allocations: 195.2 kB / 335.8 MB, free: 5.172 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.615e-05/0.01784, allocations: 36.5 kB / 335.8 MB, free: 5.137 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01784, allocations: 0 / 335.8 MB, free: 5.137 MB / 298.7 MB Notification: Performance of Templates: time 0.004154/0.02199, allocations: 4.724 MB / 340.6 MB, free: 444 kB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/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: 4.245585760101676]