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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=1000,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=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001169/0.001169, allocations: 113.8 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001172/0.001172, allocations: 210.7 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 63.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.303, allocations: 50.53 MB / 409.9 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003667/0.3067, allocations: 2.67 MB / 412.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.308, allocations: 0.7248 MB / 413.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.3082, allocations: 11.94 kB / 413.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.3084, allocations: 51.52 kB / 413.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000203/0.3086, allocations: 103 kB / 413.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000292/0.3089, allocations: 95.8 kB / 413.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003751/0.3093, allocations: 382.3 kB / 413.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002325/0.3096, allocations: 123 kB / 414.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.3097, allocations: 147.5 kB / 414.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002384/0.31, allocations: 171.2 kB / 414.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.874e-05/0.31, allocations: 32 kB / 414.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.576e-05/0.3101, allocations: 32 kB / 414.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.109e-05/0.3102, allocations: 67.77 kB / 414.5 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001413/0.3103, allocations: 171.2 kB / 414.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003707/0.3107, allocations: 383.8 kB / 415 MB, free: 12.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3107, allocations: 0 / 415 MB, free: 12.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3107, allocations: 0 / 415 MB, free: 12.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.39e-05/0.3107, allocations: 0 / 415 MB, free: 12.61 MB / 334.1 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.0009899/0.3117, allocations: 0.6237 MB / 415.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.3118, allocations: 8.031 kB / 415.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.501e-05/0.3119, allocations: 40.47 kB / 415.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.3122, allocations: 268.7 kB / 416 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.3123, allocations: 25.03 kB / 416 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.819e-05/0.3123, allocations: 39.84 kB / 416 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004509/0.3128, allocations: 258.1 kB / 416.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.3128, allocations: 3.984 kB / 416.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/0.3129, allocations: 19.94 kB / 416.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.3129, allocations: 4 kB / 416.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003882/0.3133, allocations: 230.5 kB / 416.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.3145, allocations: 0.796 MB / 417.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004944/0.315, allocations: 336.7 kB / 417.7 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/0.3153, allocations: 181.5 kB / 417.8 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.3154, allocations: 16.3 kB / 417.9 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.3154, allocations: 34.94 kB / 417.9 MB, free: 9.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.623e-06/0.3154, allocations: 4 kB / 417.9 MB, free: 9.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.003795/0.3192, allocations: 1.899 MB / 419.8 MB, free: 7.594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.3193, allocations: 55.97 kB / 419.9 MB, free: 7.527 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.3195, allocations: 204.5 kB / 420.1 MB, free: 7.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.3195, allocations: 41.7 kB / 420.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.3197, allocations: 149 kB / 420.2 MB, free: 7.125 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/0.3198, allocations: 224.7 kB / 420.5 MB, free: 6.902 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.32, allocations: 98.25 kB / 420.6 MB, free: 6.801 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.3201, allocations: 346.8 kB / 420.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002268/0.3203, allocations: 145.2 kB / 421 MB, free: 6.312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002296/0.3206, allocations: 157.8 kB / 421.2 MB, free: 6.156 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005033/0.3211, allocations: 353.6 kB / 421.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3211, allocations: 4 kB / 421.5 MB, free: 5.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006481/0.3218, allocations: 453 kB / 422 MB, free: 5.359 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3218, allocations: 6.969 kB / 422 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.3218, allocations: 4 kB / 422 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.3218, allocations: 7.938 kB / 422 MB, free: 5.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000453/0.3223, allocations: 119.8 kB / 422.1 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.3223, allocations: 4 kB / 422.1 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.3225, allocations: 16 kB / 422.1 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/0.3225, allocations: 16 kB / 422.2 MB, free: 5.191 MB / 334.1 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.0001721/0.3227, allocations: 165.7 kB / 422.3 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.48e-05/0.3228, allocations: 39.53 kB / 422.4 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.3229, allocations: 47.34 kB / 422.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/0.3229, allocations: 15.94 kB / 422.4 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.3229, allocations: 0 / 422.4 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.3229, allocations: 3.984 kB / 422.4 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/0.3246, allocations: 1.286 MB / 423.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.3247, allocations: 8 kB / 423.7 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004404/0.3251, allocations: 115.8 kB / 423.8 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.3251, allocations: 8 kB / 423.8 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.224e-05/0.3252, allocations: 16 kB / 423.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.468e-06/0.3252, allocations: 11.98 kB / 423.9 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.3252, allocations: 7.938 kB / 423.9 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.3262, allocations: 0.8352 MB / 424.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.517e-05/0.3263, allocations: 116.6 kB / 424.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.615e-05/0.3264, allocations: 23.94 kB / 424.8 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/0.3266, allocations: 19.98 kB / 424.9 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.089e-05/0.3267, allocations: 52.2 kB / 424.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.094e-05/0.3268, allocations: 23.98 kB / 424.9 MB, free: 2.199 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001228/0.3269, allocations: 156.5 kB / 425.1 MB, free: 2.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3269, allocations: 0 / 425.1 MB, free: 2.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003871/0.3273, allocations: 96 kB / 425.2 MB, free: 1.953 MB / 334.1 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.0001539/0.3274, allocations: 123.1 kB / 425.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006229/0.3281, allocations: 415 kB / 425.7 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3281, allocations: 0 / 425.7 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003294/0.3284, allocations: 242.2 kB / 425.9 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006618/0.3291, allocations: 107.7 kB / 426 MB, free: 1.074 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.3307, allocations: 1.044 MB / 427.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.3311, allocations: 0.7973 MB / 427.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.3312, allocations: 43.42 kB / 427.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3312, allocations: 3.938 kB / 427.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of Templates: time 0.0068/0.338, allocations: 4.761 MB / 432.7 MB, free: 10.33 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches