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.001866/0.001866, allocations: 103.5 kB / 20.96 MB, free: 3.453 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.001954/0.001954, allocations: 156.8 kB / 24.27 MB, free: 156 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.585/1.585, allocations: 177 MB / 204.4 MB, free: 5.613 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.543e-06/1.543e-06, allocations: 0 / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.607e-05/2.761e-05, allocations: 2.312 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004269/0.004297, allocations: 2.634 MB / 274.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.005709, allocations: 0.7092 MB / 275.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.00584, allocations: 7.938 kB / 275.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.006004, allocations: 43.52 kB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.006246, allocations: 122.9 kB / 275.7 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.006542, allocations: 99.72 kB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004531/0.006995, allocations: 394.1 kB / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.007197, allocations: 79.62 kB / 276.3 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003021/0.007499, allocations: 223.5 kB / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002325/0.007732, allocations: 139.6 kB / 276.6 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.798e-05/0.00779, allocations: 28 kB / 276.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.672e-05/0.007856, allocations: 32 kB / 276.7 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.67e-05/0.007933, allocations: 71.67 kB / 276.7 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.008088, allocations: 123.7 kB / 276.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000506/0.008594, allocations: 390.7 kB / 277.2 MB, free: 12.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.008597, allocations: 0 / 277.2 MB, free: 12.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.008598, allocations: 0 / 277.2 MB, free: 12.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.008607, allocations: 0 / 277.2 MB, free: 12.73 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.001195/0.009803, allocations: 0.6788 MB / 277.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.009839, allocations: 11.98 kB / 277.9 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001234/0.009962, allocations: 60.7 kB / 278 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003695/0.01033, allocations: 221 kB / 278.2 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/0.01036, allocations: 29.03 kB / 278.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.415e-05/0.01043, allocations: 32.33 kB / 278.3 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004795/0.01091, allocations: 254.4 kB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.01093, allocations: 0 / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/0.01095, allocations: 12 kB / 278.5 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.01096, allocations: 8 kB / 278.5 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004517/0.01142, allocations: 222.5 kB / 278.7 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001442/0.01286, allocations: 0.7523 MB / 279.5 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005667/0.01342, allocations: 332 kB / 279.8 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002838/0.01371, allocations: 168.3 kB / 280 MB, free: 9.855 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.01375, allocations: 12.36 kB / 280 MB, free: 9.844 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.01379, allocations: 37.77 kB / 280 MB, free: 9.797 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.383e-06/0.01379, allocations: 0 / 280 MB, free: 9.797 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.003584/0.01737, allocations: 1.722 MB / 281.8 MB, free: 8.012 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/0.01744, allocations: 64.06 kB / 281.8 MB, free: 7.938 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.01772, allocations: 281.6 kB / 282.1 MB, free: 7.645 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.929e-05/0.01776, allocations: 33.7 kB / 282.1 MB, free: 7.605 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.01792, allocations: 203.8 kB / 282.3 MB, free: 7.402 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002292/0.01815, allocations: 242 kB / 282.6 MB, free: 7.164 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/0.01832, allocations: 112 kB / 282.7 MB, free: 7.047 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000325/0.01865, allocations: 0.543 MB / 283.2 MB, free: 6.492 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002809/0.01893, allocations: 137.2 kB / 283.4 MB, free: 6.359 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002766/0.01921, allocations: 157.8 kB / 283.5 MB, free: 6.207 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006375/0.01984, allocations: 380.7 kB / 283.9 MB, free: 5.828 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.01985, allocations: 4 kB / 283.9 MB, free: 5.824 MB / 266.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008233/0.02067, allocations: 485.1 kB / 284.4 MB, free: 5.344 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.02069, allocations: 8 kB / 284.4 MB, free: 5.336 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.0207, allocations: 0 / 284.4 MB, free: 5.336 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.02071, allocations: 4 kB / 284.4 MB, free: 5.332 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004883/0.0212, allocations: 115.9 kB / 284.5 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.02121, allocations: 4 kB / 284.5 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.02138, allocations: 12 kB / 284.5 MB, free: 5.203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.754e-05/0.02142, allocations: 19.94 kB / 284.5 MB, free: 5.184 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.0002273/0.02165, allocations: 208.5 kB / 284.7 MB, free: 4.969 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.527e-05/0.02174, allocations: 51.81 kB / 284.8 MB, free: 4.918 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001632/0.0219, allocations: 55.33 kB / 284.8 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.02191, allocations: 8 kB / 284.8 MB, free: 4.852 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.02192, allocations: 0 / 284.8 MB, free: 4.852 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.02193, allocations: 3.984 kB / 284.8 MB, free: 4.848 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002297/0.02423, allocations: 1.328 MB / 286.2 MB, free: 3.402 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.02424, allocations: 4 kB / 286.2 MB, free: 3.398 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004773/0.02471, allocations: 115.8 kB / 286.3 MB, free: 3.285 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/0.02472, allocations: 8 kB / 286.3 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.489e-05/0.02477, allocations: 27.92 kB / 286.3 MB, free: 3.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.267e-06/0.02478, allocations: 7.938 kB / 286.3 MB, free: 3.242 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.02478, allocations: 8 kB / 286.3 MB, free: 3.234 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.02613, allocations: 0.9591 MB / 287.3 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.775e-05/0.0262, allocations: 39.77 kB / 287.3 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.164e-05/0.02626, allocations: 23.92 kB / 287.4 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.02647, allocations: 16 kB / 287.4 MB, free: 2.105 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.942e-05/0.02657, allocations: 52.3 kB / 287.4 MB, free: 2.055 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.959e-05/0.02661, allocations: 24 kB / 287.4 MB, free: 2.031 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001769/0.02679, allocations: 188.5 kB / 287.6 MB, free: 1.848 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02679, allocations: 3.938 kB / 287.6 MB, free: 1.844 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004087/0.0272, allocations: 100 kB / 287.7 MB, free: 1.746 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.0001916/0.02739, allocations: 130.9 kB / 287.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007794/0.02817, allocations: 429.2 kB / 288.3 MB, free: 1.184 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.02817, allocations: 0 / 288.3 MB, free: 1.184 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003943/0.02857, allocations: 256.6 kB / 288.5 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00067/0.02924, allocations: 99.91 kB / 288.6 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.03099, allocations: 0.9928 MB / 289.6 MB, free: 15.74 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.03121, allocations: 199.3 kB / 289.8 MB, free: 15.53 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001822/0.03139, allocations: 47.28 kB / 289.9 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.03151, allocations: 44.48 kB / 289.9 MB, free: 15.43 MB / 282.7 MB Notification: Performance of SimCode: time 6.01e-07/0.03151, allocations: 0 / 289.9 MB, free: 15.43 MB / 282.7 MB Notification: Performance of Templates: time 0.01082/0.04233, allocations: 4.423 MB / 294.3 MB, free: 11.08 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","/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.531491130008362]