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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.00126/0.00126, allocations: 196 kB / 18 MB, free: 5.105 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.283/1.283, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001144, allocations: 47.94 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2689, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003475/0.2724, allocations: 2.612 MB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000733/0.2732, allocations: 374.7 kB / 403.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.2733, allocations: 11.94 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.2736, allocations: 51.5 kB / 403.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001625/0.2737, allocations: 91.12 kB / 403.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.274, allocations: 91.83 kB / 403.4 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003177/0.2743, allocations: 382.3 kB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.2746, allocations: 111.1 kB / 403.9 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.2747, allocations: 147.5 kB / 404.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.2749, allocations: 163.2 kB / 404.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.544e-05/0.275, allocations: 32 kB / 404.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.656e-05/0.275, allocations: 28 kB / 404.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6e-05/0.2751, allocations: 75.69 kB / 404.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.2752, allocations: 163.2 kB / 404.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000338/0.2756, allocations: 368.4 kB / 404.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.2756, allocations: 0 / 404.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.2756, allocations: 0 / 404.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.2756, allocations: 0 / 404.9 MB, free: 4.145 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.001008/0.2766, allocations: 0.6353 MB / 405.5 MB, free: 3.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.2767, allocations: 15.89 kB / 405.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.476e-05/0.2767, allocations: 62.72 kB / 405.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.902e-05/0.2768, allocations: 36.56 kB / 405.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.2771, allocations: 259.8 kB / 405.9 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.2772, allocations: 24.88 kB / 405.9 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.916e-05/0.2772, allocations: 32.36 kB / 405.9 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004981/0.2777, allocations: 269.4 kB / 406.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.2777, allocations: 15.84 kB / 406.2 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.447e-05/0.2778, allocations: 8 kB / 406.2 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.2778, allocations: 8 kB / 406.2 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005222/0.2783, allocations: 266.1 kB / 406.5 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.2795, allocations: 0.7912 MB / 407.3 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005458/0.28, allocations: 364.4 kB / 407.6 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003156/0.2804, allocations: 192.7 kB / 407.8 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.2804, allocations: 7.984 kB / 407.8 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.2804, allocations: 42.56 kB / 407.9 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.863e-06/0.2804, allocations: 0 / 407.9 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.003968/0.2844, allocations: 1.964 MB / 409.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.2845, allocations: 59.91 kB / 409.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.2846, allocations: 195 kB / 410.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.2847, allocations: 37.7 kB / 410.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.623e-05/0.2847, allocations: 145 kB / 410.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.2849, allocations: 216.8 kB / 410.5 MB, free: 14.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.285, allocations: 90.25 kB / 410.6 MB, free: 14.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.2852, allocations: 354.7 kB / 410.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003113/0.2855, allocations: 157 kB / 411.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.2858, allocations: 169 kB / 411.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006397/0.2865, allocations: 372 kB / 411.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2865, allocations: 4 kB / 411.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0008121/0.2873, allocations: 486.7 kB / 412.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.2873, allocations: 7.938 kB / 412.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2873, allocations: 3.938 kB / 412.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.2874, allocations: 4 kB / 412.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/0.2878, allocations: 115.9 kB / 412.2 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.2879, allocations: 4 kB / 412.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001941/0.2881, allocations: 27.92 kB / 412.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.503e-05/0.2881, allocations: 19.98 kB / 412.2 MB, free: 12.44 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.0001609/0.2883, allocations: 165.7 kB / 412.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.086e-05/0.2883, allocations: 35.56 kB / 412.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00011/0.2884, allocations: 51.33 kB / 412.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.2885, allocations: 4 kB / 412.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.415e-06/0.2885, allocations: 0 / 412.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.2885, allocations: 7.938 kB / 412.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001859/0.2904, allocations: 1.313 MB / 413.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.2904, allocations: 4 kB / 413.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004728/0.2909, allocations: 127.7 kB / 414 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.2909, allocations: 8 kB / 414 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/0.2909, allocations: 16 kB / 414 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.816e-06/0.2909, allocations: 11.98 kB / 414 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.2909, allocations: 7.938 kB / 414 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.2922, allocations: 0.8801 MB / 414.9 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.928e-05/0.2923, allocations: 108.7 kB / 415 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.2923, allocations: 20.03 kB / 415 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.2926, allocations: 27.98 kB / 415 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.92e-05/0.2927, allocations: 55.58 kB / 415.1 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.902e-05/0.2927, allocations: 23.98 kB / 415.1 MB, free: 9.371 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001006/0.2928, allocations: 136.6 kB / 415.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2928, allocations: 0 / 415.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003751/0.2932, allocations: 96 kB / 415.3 MB, free: 9.145 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.001503/0.2947, allocations: 1.439 MB / 416.8 MB, free: 7.621 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000779/0.2955, allocations: 442.7 kB / 417.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.2955, allocations: 0 / 417.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000393/0.2959, allocations: 256.5 kB / 417.5 MB, free: 6.941 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006308/0.2965, allocations: 94.45 kB / 417.5 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004422/0.301, allocations: 3.683 MB / 421.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.3013, allocations: 0.7933 MB / 422 MB, free: 2.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001915/0.3015, allocations: 47.25 kB / 422.1 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001796/0.3017, allocations: 119.4 kB / 422.2 MB, free: 2 MB / 334.1 MB Notification: Performance of SimCode: time 1.914e-06/0.3017, allocations: 0 / 422.2 MB, free: 2 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02747/0.3292, allocations: 7.616 MB / 429.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.716/8.046, allocations: 10.16 kB / 429.8 MB, free: 10.52 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_ElastoGap.fmu > 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/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_4.0.0_Modelica.Mechanics.Translational.Examples.ElastoGap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches