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.001411/0.001411, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.0009846/0.0009846, allocations: 161.1 kB / 24.91 MB, free: 8.73 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.9362/0.9362, allocations: 177 MB / 205.2 MB, free: 5.07 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.122e-06/1.122e-06, allocations: 0 / 273.4 MB, free: 1.102 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.616e-05/1.728e-05, allocations: 2.312 kB / 273.4 MB, free: 1.098 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.002483/0.002501, allocations: 2.62 MB / 276 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.003551, allocations: 0.7478 MB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.003672, allocations: 7.938 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.0038, allocations: 51.5 kB / 276.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001677/0.003967, allocations: 115 kB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002281/0.004195, allocations: 91.75 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000265/0.00446, allocations: 406 kB / 277.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.004592, allocations: 78.25 kB / 277.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003088/0.004901, allocations: 231.5 kB / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.005042, allocations: 123.7 kB / 277.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.589e-05/0.005078, allocations: 36 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.044e-05/0.005109, allocations: 31.94 kB / 277.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.316e-05/0.005152, allocations: 75.73 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.759e-05/0.005229, allocations: 115.7 kB / 278.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.005443, allocations: 267 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.005445, allocations: 0 / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005446, allocations: 0 / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.00545, allocations: 0 / 278.3 MB, free: 12.11 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.0005516/0.006001, allocations: 0.531 MB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.836e-05/0.00603, allocations: 15.92 kB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.642e-05/0.006086, allocations: 48.89 kB / 278.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.006273, allocations: 194.1 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.006295, allocations: 21.03 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.485e-05/0.00633, allocations: 32.36 kB / 279.2 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.006525, allocations: 203.1 kB / 279.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.006536, allocations: 0 / 279.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.006551, allocations: 12 kB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.006559, allocations: 8 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.006673, allocations: 100.5 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006392/0.007312, allocations: 487 kB / 280 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.007541, allocations: 243.4 kB / 280.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.534e-05/0.007626, allocations: 89.5 kB / 280.3 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.007652, allocations: 8.375 kB / 280.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.007676, allocations: 38.94 kB / 280.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.493e-06/0.007677, allocations: 0 / 280.3 MB, free: 10.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.00198/0.009657, allocations: 1.374 MB / 281.7 MB, free: 8.582 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.167e-05/0.009689, allocations: 64.05 kB / 281.8 MB, free: 8.508 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.009796, allocations: 186.4 kB / 282 MB, free: 8.312 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.009818, allocations: 37.7 kB / 282 MB, free: 8.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.645e-05/0.009875, allocations: 141.1 kB / 282.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.009979, allocations: 233.9 kB / 282.4 MB, free: 7.898 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.215e-05/0.01006, allocations: 94.3 kB / 282.4 MB, free: 7.801 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.82e-05/0.01015, allocations: 358.7 kB / 282.8 MB, free: 7.441 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.594e-05/0.01022, allocations: 61.28 kB / 282.9 MB, free: 7.379 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.455e-05/0.01028, allocations: 61.89 kB / 282.9 MB, free: 7.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.01045, allocations: 201.7 kB / 283.1 MB, free: 7.121 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.01045, allocations: 0 / 283.1 MB, free: 7.121 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0002279/0.01068, allocations: 249.4 kB / 283.4 MB, free: 6.871 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.0107, allocations: 8 kB / 283.4 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.0107, allocations: 0 / 283.4 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.01072, allocations: 0 / 283.4 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/0.01095, allocations: 119.8 kB / 283.5 MB, free: 6.746 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.01096, allocations: 4 kB / 283.5 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.648e-05/0.01102, allocations: 16 kB / 283.5 MB, free: 6.727 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.01104, allocations: 16 kB / 283.5 MB, free: 6.711 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 8.86e-05/0.01113, allocations: 137.7 kB / 283.7 MB, free: 6.566 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.426e-05/0.01117, allocations: 47.95 kB / 283.7 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.964e-05/0.01123, allocations: 43.34 kB / 283.7 MB, free: 6.469 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.01124, allocations: 8 kB / 283.7 MB, free: 6.461 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.01124, allocations: 0 / 283.7 MB, free: 6.461 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.01125, allocations: 3.984 kB / 283.8 MB, free: 6.457 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007771/0.01202, allocations: 0.8236 MB / 284.6 MB, free: 5.555 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.01203, allocations: 8.547 kB / 284.6 MB, free: 5.547 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.01225, allocations: 123.8 kB / 284.7 MB, free: 5.426 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.01226, allocations: 4 kB / 284.7 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.01228, allocations: 19.98 kB / 284.7 MB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.01228, allocations: 8 kB / 284.7 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/0.01229, allocations: 7.938 kB / 284.7 MB, free: 5.387 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004153/0.0127, allocations: 0.5651 MB / 285.3 MB, free: 4.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.461e-05/0.01274, allocations: 39.73 kB / 285.3 MB, free: 4.711 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.01277, allocations: 16 kB / 285.4 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.01287, allocations: 20 kB / 285.4 MB, free: 4.676 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.01292, allocations: 56.34 kB / 285.4 MB, free: 4.621 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.01294, allocations: 23.97 kB / 285.5 MB, free: 4.598 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.033e-05/0.01298, allocations: 54.19 kB / 285.5 MB, free: 4.543 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01298, allocations: 0 / 285.5 MB, free: 4.543 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002251/0.0132, allocations: 99.94 kB / 285.6 MB, free: 4.445 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 9.902e-05/0.0133, allocations: 104.2 kB / 285.7 MB, free: 4.336 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002431/0.01355, allocations: 270.3 kB / 286 MB, free: 4.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.01355, allocations: 0 / 286 MB, free: 4.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.01368, allocations: 160.8 kB / 286.1 MB, free: 3.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.01402, allocations: 96.92 kB / 286.2 MB, free: 3.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008117/0.01483, allocations: 0.8241 MB / 287.1 MB, free: 2.918 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.722e-05/0.0149, allocations: 114.8 kB / 287.2 MB, free: 2.789 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000115/0.01501, allocations: 43.3 kB / 287.2 MB, free: 2.746 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.01518, allocations: 135.3 kB / 287.3 MB, free: 2.613 MB / 266.7 MB Notification: Performance of SimCode: time 7.22e-07/0.01518, allocations: 0 / 287.3 MB, free: 2.613 MB / 266.7 MB Notification: Performance of Templates: time 0.09511/0.1103, allocations: 4.855 MB / 292.2 MB, free: 26.04 MB / 266.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.6441565193235874]