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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=1000,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=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 111.7 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.00124, allocations: 198.8 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 51.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3008, allocations: 49.42 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004144/0.305, allocations: 2.617 MB / 403.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006787/0.3057, allocations: 386.7 kB / 403.7 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.3058, allocations: 7.938 kB / 403.7 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001502/0.306, allocations: 43.52 kB / 403.8 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001732/0.3062, allocations: 99.11 kB / 403.8 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.3065, allocations: 99.81 kB / 403.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000334/0.3068, allocations: 374.4 kB / 404.3 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.307, allocations: 115.6 kB / 404.4 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.3072, allocations: 139.6 kB / 404.6 MB, free: 5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.3074, allocations: 167.3 kB / 404.7 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.363e-05/0.3074, allocations: 32 kB / 404.8 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.414e-05/0.3075, allocations: 28 kB / 404.8 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.351e-05/0.3075, allocations: 71.75 kB / 404.9 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.3077, allocations: 167.1 kB / 405 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003384/0.3081, allocations: 371.8 kB / 405.4 MB, free: 4.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3081, allocations: 0 / 405.4 MB, free: 4.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3081, allocations: 0 / 405.4 MB, free: 4.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.3081, allocations: 0 / 405.4 MB, free: 4.184 MB / 318.1 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.001009/0.3091, allocations: 0.6275 MB / 406 MB, free: 3.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.3091, allocations: 12.03 kB / 406 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.669e-05/0.3092, allocations: 36.56 kB / 406.1 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003074/0.3095, allocations: 267.5 kB / 406.3 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.3096, allocations: 24.94 kB / 406.3 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.37e-05/0.3096, allocations: 28.38 kB / 406.4 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005026/0.3101, allocations: 277.3 kB / 406.6 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.3102, allocations: 4.094 kB / 406.6 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.3102, allocations: 19.94 kB / 406.7 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.3102, allocations: 12 kB / 406.7 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000531/0.3108, allocations: 262.1 kB / 406.9 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.312, allocations: 0.7873 MB / 407.7 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006004/0.3126, allocations: 361.2 kB / 408.1 MB, free: 1.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003559/0.313, allocations: 196.8 kB / 408.3 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.773e-05/0.313, allocations: 7.984 kB / 408.3 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.3131, allocations: 42.56 kB / 408.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.713e-06/0.3131, allocations: 0 / 408.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.004149/0.3172, allocations: 1.972 MB / 410.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.3173, allocations: 59.97 kB / 410.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000221/0.3175, allocations: 198.9 kB / 410.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.3176, allocations: 37.7 kB / 410.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.3177, allocations: 137.1 kB / 410.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.3179, allocations: 224.7 kB / 410.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.318, allocations: 94.23 kB / 411 MB, free: 14.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.3182, allocations: 346.7 kB / 411.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.3186, allocations: 161 kB / 411.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003223/0.3189, allocations: 172.9 kB / 411.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006865/0.3196, allocations: 372 kB / 412 MB, free: 13.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3196, allocations: 0 / 412 MB, free: 13.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008105/0.3204, allocations: 486.7 kB / 412.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.3204, allocations: 8 kB / 412.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.3204, allocations: 0 / 412.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.3205, allocations: 0 / 412.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004495/0.3209, allocations: 123.8 kB / 412.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.3209, allocations: 0 / 412.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.3211, allocations: 31.98 kB / 412.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.197e-05/0.3212, allocations: 23.92 kB / 412.7 MB, free: 12.54 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 (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.0001579/0.3214, allocations: 161.7 kB / 412.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.997e-05/0.3214, allocations: 31.62 kB / 412.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.3216, allocations: 47.33 kB / 412.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.3216, allocations: 8 kB / 412.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.3216, allocations: 0 / 412.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.3216, allocations: 0 / 412.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002147/0.3237, allocations: 1.318 MB / 414.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.3238, allocations: 8 kB / 414.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005024/0.3243, allocations: 123.8 kB / 414.4 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.197e-05/0.3243, allocations: 11.94 kB / 414.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.695e-05/0.3243, allocations: 16 kB / 414.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.694e-06/0.3244, allocations: 8 kB / 414.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/0.3244, allocations: 7.938 kB / 414.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.3257, allocations: 0.8799 MB / 415.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.599e-05/0.3258, allocations: 112.7 kB / 415.4 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.908e-05/0.3259, allocations: 20.03 kB / 415.4 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.3261, allocations: 23.98 kB / 415.5 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.106e-05/0.3262, allocations: 55.58 kB / 415.5 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.3262, allocations: 23.98 kB / 415.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000105/0.3263, allocations: 140.6 kB / 415.7 MB, free: 9.344 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3264, allocations: 0 / 415.7 MB, free: 9.344 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003851/0.3267, allocations: 96 kB / 415.8 MB, free: 9.25 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 (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 0.0001708/0.3269, allocations: 119.1 kB / 415.9 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009956/0.3279, allocations: 442.9 kB / 416.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.328, allocations: 0 / 416.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004148/0.3284, allocations: 260.5 kB / 416.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006313/0.329, allocations: 79.97 kB / 416.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.3307, allocations: 1.008 MB / 417.7 MB, free: 7.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.3312, allocations: 0.7972 MB / 418.5 MB, free: 6.445 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000164/0.3313, allocations: 43.27 kB / 418.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.3314, allocations: 43.42 kB / 418.5 MB, free: 6.359 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3314, allocations: 0 / 418.5 MB, free: 6.359 MB / 334.1 MB Notification: Performance of Templates: time 0.008274/0.3397, allocations: 4.199 MB / 422.7 MB, free: 2.195 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (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) 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) Reference file matches