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.000983/0.000983, allocations: 81.81 kB / 21.42 MB, free: 3.074 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.0009042/0.0009042, allocations: 160.2 kB / 24.82 MB, free: 9.266 MB / 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 0.9981/0.9981, allocations: 177 MB / 205.1 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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.192e-06/1.192e-06, allocations: 0 / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.411e-05/1.53e-05, allocations: 6.312 kB / 273.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.007546/0.007561, allocations: 2.618 MB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004185/0.01175, allocations: 0.7208 MB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.01191, allocations: 7.938 kB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.01204, allocations: 51.5 kB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001963/0.01223, allocations: 103 kB / 276.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002365/0.01247, allocations: 103.7 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003266/0.0128, allocations: 402 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.01294, allocations: 79.62 kB / 277.4 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002179/0.01316, allocations: 223.5 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.01333, allocations: 123.7 kB / 277.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.084e-05/0.01337, allocations: 35.94 kB / 277.8 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.677e-05/0.01342, allocations: 32 kB / 277.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.213e-05/0.01347, allocations: 75.72 kB / 277.9 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.8e-05/0.01357, allocations: 115.7 kB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002579/0.01383, allocations: 267 kB / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.01383, allocations: 4 kB / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.01383, allocations: 0 / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.01383, allocations: 0 / 278.2 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.00369/0.01752, allocations: 0.6596 MB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.01756, allocations: 15.98 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.868e-05/0.01764, allocations: 60.7 kB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.01786, allocations: 224.9 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.01788, allocations: 21.03 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.358e-05/0.01793, allocations: 32.36 kB / 279.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.01818, allocations: 195.1 kB / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.01819, allocations: 0 / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.457e-05/0.01822, allocations: 15.94 kB / 279.5 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.01823, allocations: 8 kB / 279.5 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.0184, allocations: 120.5 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008278/0.01923, allocations: 0.6357 MB / 280.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.01952, allocations: 248 kB / 280.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003614/0.01988, allocations: 100.4 kB / 280.6 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.01991, allocations: 8.375 kB / 280.6 MB, free: 9.844 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.01993, allocations: 37.77 kB / 280.6 MB, free: 9.797 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.493e-06/0.01993, allocations: 4 kB / 280.6 MB, free: 9.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.004932/0.02486, allocations: 1.305 MB / 281.9 MB, free: 8.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.688e-05/0.02489, allocations: 56.06 kB / 282 MB, free: 8.363 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.02503, allocations: 245.5 kB / 282.2 MB, free: 8.105 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.556e-05/0.02506, allocations: 37.7 kB / 282.2 MB, free: 8.062 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.052e-05/0.02515, allocations: 203.8 kB / 282.4 MB, free: 7.859 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.02528, allocations: 233.9 kB / 282.7 MB, free: 7.629 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.0254, allocations: 95.95 kB / 282.8 MB, free: 7.527 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.02555, allocations: 0.5234 MB / 283.3 MB, free: 6.992 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.909e-05/0.02564, allocations: 73.25 kB / 283.4 MB, free: 6.922 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.98e-05/0.02574, allocations: 73.84 kB / 283.4 MB, free: 6.848 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.026, allocations: 208.7 kB / 283.6 MB, free: 6.641 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.026, allocations: 3.938 kB / 283.6 MB, free: 6.637 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002663/0.02866, allocations: 329.1 kB / 284 MB, free: 6.309 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.02868, allocations: 8 kB / 284 MB, free: 6.301 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.02868, allocations: 0 / 284 MB, free: 6.301 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.02869, allocations: 0 / 284 MB, free: 6.301 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003165/0.02901, allocations: 119.8 kB / 284.1 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.02901, allocations: 4 kB / 284.1 MB, free: 6.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.02911, allocations: 16 kB / 284.1 MB, free: 6.164 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.02913, allocations: 16 kB / 284.1 MB, free: 6.148 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 9.496e-05/0.02923, allocations: 184.4 kB / 284.3 MB, free: 5.957 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.256e-05/0.02928, allocations: 59.77 kB / 284.4 MB, free: 5.898 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.693e-05/0.02933, allocations: 51.31 kB / 284.4 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.02934, allocations: 8 kB / 284.4 MB, free: 5.836 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.02934, allocations: 4 kB / 284.4 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.02935, allocations: 7.922 kB / 284.4 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008751/0.03022, allocations: 1.044 MB / 285.5 MB, free: 4.672 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.03023, allocations: 4 kB / 285.5 MB, free: 4.668 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002291/0.03046, allocations: 120.4 kB / 285.6 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.718e-06/0.03046, allocations: 12 kB / 285.6 MB, free: 4.539 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.03048, allocations: 19.94 kB / 285.6 MB, free: 4.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.963e-06/0.03049, allocations: 11.98 kB / 285.6 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.03049, allocations: 7.938 kB / 285.6 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004954/0.03099, allocations: 0.7282 MB / 286.4 MB, free: 3.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.03102, allocations: 43.73 kB / 286.4 MB, free: 3.637 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.6e-05/0.03106, allocations: 16 kB / 286.4 MB, free: 3.621 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.03116, allocations: 23.98 kB / 286.5 MB, free: 3.598 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.03121, allocations: 56.3 kB / 286.5 MB, free: 3.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.03123, allocations: 16 kB / 286.5 MB, free: 3.527 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.951e-05/0.03129, allocations: 168.4 kB / 286.7 MB, free: 3.363 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03129, allocations: 0 / 286.7 MB, free: 3.363 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000243/0.03153, allocations: 96 kB / 286.8 MB, free: 3.27 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 7.816e-05/0.03161, allocations: 123.1 kB / 286.9 MB, free: 3.137 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002512/0.03186, allocations: 285.1 kB / 287.2 MB, free: 2.852 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.03186, allocations: 0 / 287.2 MB, free: 2.852 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001382/0.032, allocations: 171.6 kB / 287.4 MB, free: 2.684 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.03237, allocations: 115.3 kB / 287.5 MB, free: 2.578 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.03365, allocations: 0.9263 MB / 288.4 MB, free: 1.543 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.316e-05/0.03373, allocations: 114.8 kB / 288.5 MB, free: 1.414 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001426/0.03388, allocations: 47.3 kB / 288.6 MB, free: 1.367 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/0.03408, allocations: 174.1 kB / 288.7 MB, free: 1.195 MB / 266.7 MB Notification: Performance of SimCode: time 7.61e-07/0.03408, allocations: 0 / 288.7 MB, free: 1.195 MB / 266.7 MB Notification: Performance of Templates: time 0.006671/0.04075, allocations: 4.857 MB / 293.6 MB, free: 12.43 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) [Timeout 240] 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","",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.7074839607812464]