Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.ElastoGap.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.682/1.682, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005337/0.0005339, allocations: 8 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0883/0.08888, allocations: 38.76 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3415/0.4304, allocations: 66.79 MB / 338.9 MB, free: 6.039 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/0.4307, allocations: 65.03 kB / 339 MB, free: 6.004 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02405/0.4548, allocations: 5.642 MB / 344.6 MB, free: 1.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4549, allocations: 0 / 344.6 MB, free: 1.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.206e-05/0.4549, allocations: 4 kB / 344.6 MB, free: 1.266 MB / 266.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.001296/0.4562, allocations: 0.5893 MB / 345.2 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.4563, allocations: 8.031 kB / 345.2 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.666e-05/0.4564, allocations: 61.48 kB / 345.3 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.664e-05/0.4565, allocations: 35.5 kB / 345.3 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003599/0.4568, allocations: 257.9 kB / 345.6 MB, free: 284 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.85e-05/0.4569, allocations: 31.75 kB / 345.6 MB, free: 264 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.35e-05/0.457, allocations: 29.88 kB / 345.6 MB, free: 244 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008364/0.4578, allocations: 272.8 kB / 345.9 MB, free: 40 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.4579, allocations: 0 / 345.9 MB, free: 40 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.042e-05/0.4579, allocations: 11.73 kB / 345.9 MB, free: 36 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.4579, allocations: 8 kB / 345.9 MB, free: 28 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009903/0.4589, allocations: 286.2 kB / 346.2 MB, free: 15.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.4608, allocations: 0.8036 MB / 347 MB, free: 15.15 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009413/0.4618, allocations: 373.3 kB / 347.4 MB, free: 14.9 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.254e-05/0.4618, allocations: 11.98 kB / 347.4 MB, free: 14.89 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.4619, allocations: 34.12 kB / 347.4 MB, free: 14.85 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 3.046e-06/0.4619, allocations: 0 / 347.4 MB, free: 14.85 MB / 282.7 MB Notification: Performance of matching and sorting (n=63): time 0.007178/0.4691, allocations: 2.033 MB / 349.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.4692, allocations: 59.92 kB / 349.5 MB, free: 13.11 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/0.4694, allocations: 182.5 kB / 349.7 MB, free: 12.95 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.552e-05/0.4695, allocations: 36.08 kB / 349.7 MB, free: 12.91 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.4696, allocations: 140.3 kB / 349.8 MB, free: 12.79 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002071/0.4698, allocations: 213.4 kB / 350 MB, free: 12.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.293e-05/0.4699, allocations: 10.12 kB / 350.1 MB, free: 12.61 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.47, allocations: 342.9 kB / 350.4 MB, free: 12.28 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005682/0.4706, allocations: 175.8 kB / 350.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005577/0.4712, allocations: 171.4 kB / 350.7 MB, free: 12.04 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005886/0.4718, allocations: 189.4 kB / 350.9 MB, free: 11.93 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4718, allocations: 0 / 350.9 MB, free: 11.93 MB / 282.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001408/0.4732, allocations: 0.4942 MB / 351.4 MB, free: 11.57 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.4733, allocations: 4 kB / 351.4 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.4733, allocations: 0 / 351.4 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.818e-05/0.4733, allocations: 4 kB / 351.4 MB, free: 11.56 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008945/0.4742, allocations: 119.1 kB / 351.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.015e-05/0.4742, allocations: 11.92 kB / 351.5 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003811/0.4746, allocations: 38.69 kB / 351.6 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.97e-05/0.4747, allocations: 15.69 kB / 351.6 MB, free: 11.4 MB / 282.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.0002509/0.475, allocations: 149.2 kB / 351.7 MB, free: 11.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.68e-05/0.4751, allocations: 35.62 kB / 351.8 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001481/0.4752, allocations: 50.95 kB / 351.8 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.557e-06/0.4752, allocations: 4 kB / 351.8 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.4753, allocations: 4 kB / 351.8 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.4753, allocations: 3.984 kB / 351.8 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003186/0.4785, allocations: 1.343 MB / 353.2 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.4785, allocations: 4 kB / 353.2 MB, free: 10.03 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009483/0.4795, allocations: 124.4 kB / 353.3 MB, free: 9.914 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.176e-05/0.4795, allocations: 12 kB / 353.3 MB, free: 9.902 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.198e-05/0.4796, allocations: 22.77 kB / 353.3 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.759e-05/0.4796, allocations: 15.92 kB / 353.4 MB, free: 9.875 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.4796, allocations: 4.25 kB / 353.4 MB, free: 9.871 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.482, allocations: 1.115 MB / 354.5 MB, free: 8.801 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.4822, allocations: 108.6 kB / 354.6 MB, free: 8.676 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.681e-05/0.4823, allocations: 23.77 kB / 354.6 MB, free: 8.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004285/0.4827, allocations: 38.28 kB / 354.6 MB, free: 8.633 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.4828, allocations: 45.59 kB / 354.7 MB, free: 8.594 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.496e-05/0.4829, allocations: 18.56 kB / 354.7 MB, free: 8.578 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001768/0.4831, allocations: 151 kB / 354.9 MB, free: 8.449 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4831, allocations: 0 / 354.9 MB, free: 8.449 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005663/0.4837, allocations: 92.25 kB / 354.9 MB, free: 8.375 MB / 282.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.003038/0.4867, allocations: 2.901 MB / 357.8 MB, free: 5.559 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.4881, allocations: 450.1 kB / 358.3 MB, free: 5.23 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.4882, allocations: 4 kB / 358.3 MB, free: 5.227 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007249/0.4889, allocations: 250.5 kB / 358.5 MB, free: 5.039 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007543/0.4897, allocations: 78.09 kB / 358.6 MB, free: 4.98 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005562/0.4953, allocations: 2.41 MB / 361 MB, free: 2.848 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.4958, allocations: 0.7974 MB / 361.8 MB, free: 2.027 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003733/0.4961, allocations: 43.27 kB / 361.9 MB, free: 1.984 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002787/0.4964, allocations: 120.5 kB / 362 MB, free: 1.938 MB / 282.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4964, allocations: 0 / 362 MB, free: 1.938 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05417/0.5506, allocations: 6.746 MB / 368.7 MB, free: 11.27 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003693/0.5511, allocations: 185.6 kB / 368.9 MB, free: 11.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.64/3.191, allocations: 0 / 368.9 MB, free: 11.02 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat