Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001268/0.001268, allocations: 106.5 kB / 17.73 MB, free: 5.367 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.001162/0.001162, allocations: 183.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 43.94 kB / 328.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1037, allocations: 46.62 MB / 375.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.004116/0.1079, allocations: 2.591 MB / 377.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009779/0.1089, allocations: 378.7 kB / 378.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002852/0.1092, allocations: 4 kB / 378.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002501/0.1095, allocations: 55.44 kB / 378.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003151/0.1098, allocations: 91.19 kB / 378.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.1102, allocations: 91.81 kB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004865/0.1107, allocations: 374.4 kB / 378.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/0.111, allocations: 119 kB / 378.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.1112, allocations: 151.5 kB / 379 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002506/0.1115, allocations: 163.3 kB / 379.1 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.394e-05/0.1115, allocations: 28 kB / 379.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.236e-05/0.1116, allocations: 32 kB / 379.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.15e-05/0.1117, allocations: 71.75 kB / 379.2 MB, free: 472 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.1119, allocations: 167.2 kB / 379.4 MB, free: 304 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1757/0.2876, allocations: 360.5 kB / 379.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.2877, allocations: 0 / 379.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2877, allocations: 0.9375 kB / 379.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.847e-05/0.2877, allocations: 0 / 379.8 MB, free: 10.54 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.001304/0.289, allocations: 0.6253 MB / 380.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.2891, allocations: 13.09 kB / 380.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.22e-05/0.2892, allocations: 35.09 kB / 380.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.2895, allocations: 269.3 kB / 380.7 MB, free: 9.867 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.481e-05/0.2895, allocations: 23.22 kB / 380.7 MB, free: 9.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.345e-05/0.2896, allocations: 36.84 kB / 380.8 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000528/0.2901, allocations: 270.6 kB / 381 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.2901, allocations: 5.281 kB / 381 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.765e-05/0.2902, allocations: 15.53 kB / 381 MB, free: 9.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.2902, allocations: 8.547 kB / 381 MB, free: 9.824 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005673/0.2907, allocations: 267.2 kB / 381.3 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.2921, allocations: 0.7982 MB / 382.1 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006638/0.2927, allocations: 351.9 kB / 382.4 MB, free: 9.477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004261/0.2932, allocations: 201.4 kB / 382.6 MB, free: 9.465 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.2932, allocations: 8.062 kB / 382.7 MB, free: 9.465 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.2932, allocations: 38.19 kB / 382.7 MB, free: 9.426 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.563e-06/0.2932, allocations: 0.7188 kB / 382.7 MB, free: 9.426 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.003878/0.2971, allocations: 1.963 MB / 384.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.2972, allocations: 59.41 kB / 384.7 MB, free: 8.691 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.2973, allocations: 198.9 kB / 384.9 MB, free: 8.559 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.2974, allocations: 36.3 kB / 384.9 MB, free: 8.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.93e-05/0.2974, allocations: 146.6 kB / 385.1 MB, free: 8.391 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.985e-05/0.2975, allocations: 214.8 kB / 385.3 MB, free: 8.223 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.2976, allocations: 96.38 kB / 385.4 MB, free: 8.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.54e-05/0.2977, allocations: 348.1 kB / 385.7 MB, free: 7.836 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/0.298, allocations: 158.1 kB / 385.9 MB, free: 7.781 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003046/0.2983, allocations: 167.2 kB / 386 MB, free: 7.727 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006318/0.299, allocations: 381.7 kB / 386.4 MB, free: 7.559 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.299, allocations: 1.281 kB / 386.4 MB, free: 7.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0007626/0.2997, allocations: 487.3 kB / 386.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.2998, allocations: 6.297 kB / 386.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2998, allocations: 0.875 kB / 386.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.2998, allocations: 3.531 kB / 386.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004723/0.3003, allocations: 120.9 kB / 387 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.3003, allocations: 6.844 kB / 387 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.3005, allocations: 22.48 kB / 387.1 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.032e-05/0.3005, allocations: 21.36 kB / 387.1 MB, free: 7.336 MB / 318.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.0001266/0.3007, allocations: 164.2 kB / 387.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.058e-05/0.3007, allocations: 35.27 kB / 387.3 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.8e-05/0.3008, allocations: 49.44 kB / 387.3 MB, free: 7.133 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.3009, allocations: 6.938 kB / 387.3 MB, free: 7.133 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.3009, allocations: 4.75 kB / 387.3 MB, free: 7.129 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3009, allocations: 3.922 kB / 387.3 MB, free: 7.129 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.3026, allocations: 1.314 MB / 388.6 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.3026, allocations: 4.594 kB / 388.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004673/0.3031, allocations: 122.5 kB / 388.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-06/0.3031, allocations: 11.5 kB / 388.8 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.138e-05/0.3032, allocations: 18.69 kB / 388.8 MB, free: 6.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/0.3032, allocations: 6.969 kB / 388.8 MB, free: 6.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.3032, allocations: 10.34 kB / 388.8 MB, free: 6.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.3044, allocations: 0.8759 MB / 389.7 MB, free: 5.801 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.54e-05/0.3044, allocations: 114.7 kB / 389.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.268e-05/0.3045, allocations: 17.69 kB / 389.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.3048, allocations: 26.67 kB / 389.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.823e-05/0.3048, allocations: 58.38 kB / 389.9 MB, free: 5.648 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.3049, allocations: 21.58 kB / 389.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001144/0.305, allocations: 142.2 kB / 390.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.305, allocations: 0 / 390.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004281/0.3054, allocations: 99 kB / 390.2 MB, free: 5.531 MB / 318.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.0001542/0.3056, allocations: 126.2 kB / 390.3 MB, free: 5.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007949/0.3064, allocations: 441 kB / 390.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3064, allocations: 1.438 kB / 390.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004044/0.3068, allocations: 256.5 kB / 391 MB, free: 5.238 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006178/0.3075, allocations: 81.05 kB / 391 MB, free: 5.215 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.3088, allocations: 1.003 MB / 392.1 MB, free: 4.527 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002015/0.309, allocations: 0.7931 MB / 392.8 MB, free: 3.828 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001756/0.3092, allocations: 49.52 kB / 392.9 MB, free: 3.824 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.863e-05/0.3093, allocations: 37.34 kB / 392.9 MB, free: 3.816 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3093, allocations: 0 / 392.9 MB, free: 3.816 MB / 318.1 MB Notification: Performance of Templates: time 0.008747/0.3181, allocations: 4.204 MB / 397.1 MB, free: 3.496 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/ElastoGap/ElastoGap.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches