Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.283/2.283, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003852/0.0003852, allocations: 11.98 kB / 264.1 MB, free: 3.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3232, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.179/0.5023, allocations: 72.1 MB / 380.7 MB, free: 4.469 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.5026, allocations: 59.97 kB / 380.7 MB, free: 4.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02577/0.5284, allocations: 5.627 MB / 386.4 MB, free: 14.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5284, allocations: 0 / 386.4 MB, free: 14.76 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.418e-05/0.5285, allocations: 11.98 kB / 386.4 MB, free: 14.75 MB / 330.7 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.001422/0.5299, allocations: 0.5815 MB / 386.9 MB, free: 14.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.53, allocations: 8.031 kB / 387 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001066/0.5301, allocations: 62.55 kB / 387 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.86e-05/0.5302, allocations: 43.58 kB / 387.1 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003941/0.5306, allocations: 250.5 kB / 387.3 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/0.5307, allocations: 20.56 kB / 387.3 MB, free: 13.69 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.48e-05/0.5308, allocations: 28 kB / 387.3 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008901/0.5317, allocations: 272.8 kB / 387.6 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.5317, allocations: 7.891 kB / 387.6 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.208e-05/0.5318, allocations: 16 kB / 387.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.5318, allocations: 8 kB / 387.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.5333, allocations: 278.1 kB / 387.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003625/0.537, allocations: 0.8068 MB / 388.7 MB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001995/0.539, allocations: 379.2 kB / 389.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.817e-05/0.5392, allocations: 7.953 kB / 389.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.827e-05/0.5393, allocations: 34.56 kB / 389.1 MB, free: 11.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 6.132e-06/0.5393, allocations: 0 / 389.1 MB, free: 11.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=63): time 0.01079/0.5501, allocations: 2.033 MB / 391.2 MB, free: 9.668 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.5502, allocations: 67.91 kB / 391.2 MB, free: 9.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.5505, allocations: 171.4 kB / 391.4 MB, free: 9.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.542e-05/0.5505, allocations: 37.7 kB / 391.4 MB, free: 9.367 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.5507, allocations: 141 kB / 391.6 MB, free: 9.223 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.5509, allocations: 220.7 kB / 391.8 MB, free: 9.004 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.505e-05/0.551, allocations: 8 kB / 391.8 MB, free: 8.996 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.5512, allocations: 346.8 kB / 392.1 MB, free: 8.648 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006041/0.5518, allocations: 165 kB / 392.3 MB, free: 8.488 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000599/0.5524, allocations: 177 kB / 392.5 MB, free: 8.312 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006486/0.5531, allocations: 186.2 kB / 392.7 MB, free: 8.137 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.5531, allocations: 0 / 392.7 MB, free: 8.137 MB / 330.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001522/0.5546, allocations: 498.7 kB / 393.1 MB, free: 7.641 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.5547, allocations: 8 kB / 393.1 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.5547, allocations: 3.953 kB / 393.2 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.5548, allocations: 0 / 393.2 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009548/0.5557, allocations: 127.8 kB / 393.3 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.5557, allocations: 0 / 393.3 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004191/0.5562, allocations: 35.97 kB / 393.3 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.497e-05/0.5562, allocations: 16 kB / 393.3 MB, free: 7.453 MB / 330.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 (elastoGap1.contact,elastoGap2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000312/0.5566, allocations: 161.7 kB / 393.5 MB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.5567, allocations: 31.62 kB / 393.5 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002096/0.5569, allocations: 51.33 kB / 393.6 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.5569, allocations: 7.953 kB / 393.6 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.557, allocations: 8 kB / 393.6 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.557, allocations: 3.984 kB / 393.6 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003267/0.5603, allocations: 1.325 MB / 394.9 MB, free: 5.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.5603, allocations: 4 kB / 394.9 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.5613, allocations: 131.8 kB / 395 MB, free: 5.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.831e-05/0.5614, allocations: 8 kB / 395.1 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.534e-05/0.5614, allocations: 16 kB / 395.1 MB, free: 5.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.399e-05/0.5615, allocations: 8.375 kB / 395.1 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.19e-05/0.5615, allocations: 15.92 kB / 395.1 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002475/0.564, allocations: 1.115 MB / 396.2 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.5642, allocations: 112.8 kB / 396.3 MB, free: 4.148 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.096e-05/0.5643, allocations: 16 kB / 396.3 MB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004449/0.5647, allocations: 31.98 kB / 396.4 MB, free: 4.102 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.5649, allocations: 55.83 kB / 396.4 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.333e-05/0.565, allocations: 23.94 kB / 396.4 MB, free: 4.023 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001869/0.5652, allocations: 143.3 kB / 396.6 MB, free: 3.883 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5652, allocations: 0 / 396.6 MB, free: 3.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000584/0.5658, allocations: 96 kB / 396.7 MB, free: 3.789 MB / 330.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 (63): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003374/0.5692, allocations: 2.91 MB / 399.6 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.5707, allocations: 450.7 kB / 400 MB, free: 292 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.5707, allocations: 0 / 400 MB, free: 292 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007766/0.5715, allocations: 260.8 kB / 400.3 MB, free: 32 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008114/0.5723, allocations: 67.95 kB / 400.3 MB, free: 15.96 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007614/0.5799, allocations: 2.402 MB / 402.7 MB, free: 13.45 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006362/0.5806, allocations: 0.8013 MB / 403.5 MB, free: 12.62 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004972/0.5811, allocations: 47.25 kB / 403.6 MB, free: 12.58 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004037/0.5816, allocations: 119.4 kB / 403.7 MB, free: 12.47 MB / 346.7 MB Notification: Performance of SimCode: time 1.232e-06/0.5816, allocations: 0 / 403.7 MB, free: 12.47 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08344/0.665, allocations: 6.749 MB / 410.5 MB, free: 5.762 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003615/0.6655, allocations: 178 kB / 410.6 MB, free: 5.523 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.753/3.419, allocations: 0 / 410.6 MB, free: 5.523 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat