Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.868/1.868, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003642, allocations: 8 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08864/0.08905, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3653/0.4544, allocations: 66.79 MB / 338.9 MB, free: 6.727 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.4548, allocations: 64.53 kB / 339 MB, free: 6.691 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02542/0.4802, allocations: 5.634 MB / 344.6 MB, free: 1.969 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.4803, allocations: 4 kB / 344.6 MB, free: 1.965 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.251e-05/0.4803, allocations: 4 kB / 344.6 MB, free: 1.961 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.0014/0.4817, allocations: 0.5875 MB / 345.2 MB, free: 1.344 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.4818, allocations: 11.97 kB / 345.2 MB, free: 1.332 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.791e-05/0.4819, allocations: 63.92 kB / 345.3 MB, free: 1.277 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.374e-05/0.482, allocations: 31.62 kB / 345.3 MB, free: 1.246 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003945/0.4824, allocations: 267.7 kB / 345.5 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.284e-05/0.4824, allocations: 23.5 kB / 345.6 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.997e-05/0.4825, allocations: 30.06 kB / 345.6 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008602/0.4834, allocations: 277.6 kB / 345.9 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.4834, allocations: 0 / 345.9 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.932e-05/0.4835, allocations: 7.875 kB / 345.9 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.4835, allocations: 12 kB / 345.9 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009841/0.4845, allocations: 284.7 kB / 346.2 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/0.4865, allocations: 0.7941 MB / 347 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009755/0.4875, allocations: 374.4 kB / 347.3 MB, free: 15.59 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.238e-05/0.4876, allocations: 8 kB / 347.3 MB, free: 15.58 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.4876, allocations: 37.69 kB / 347.4 MB, free: 15.54 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 3.036e-06/0.4877, allocations: 0 / 347.4 MB, free: 15.54 MB / 282.7 MB Notification: Performance of matching and sorting (n=63): time 0.007433/0.4951, allocations: 2.043 MB / 349.4 MB, free: 13.86 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.4952, allocations: 59.92 kB / 349.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.4955, allocations: 178.6 kB / 349.6 MB, free: 13.63 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.292e-05/0.4955, allocations: 36.89 kB / 349.7 MB, free: 13.59 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.4957, allocations: 207.7 kB / 349.9 MB, free: 13.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002259/0.4959, allocations: 208 kB / 350.1 MB, free: 13.23 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.81e-05/0.496, allocations: 10.69 kB / 350.1 MB, free: 13.23 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.4961, allocations: 332.4 kB / 350.4 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005956/0.4967, allocations: 168.5 kB / 350.6 MB, free: 12.79 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005853/0.4973, allocations: 176.2 kB / 350.8 MB, free: 12.67 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006048/0.498, allocations: 182.5 kB / 350.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.498, allocations: 0 / 350.9 MB, free: 12.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00139/0.4994, allocations: 495.4 kB / 351.4 MB, free: 12.21 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.4994, allocations: 4.625 kB / 351.4 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4994, allocations: 4 kB / 351.4 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.743e-05/0.4995, allocations: 4 kB / 351.4 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009029/0.5004, allocations: 123 kB / 351.6 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.72e-05/0.5004, allocations: 7.984 kB / 351.6 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004088/0.5008, allocations: 34.06 kB / 351.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.724e-05/0.5009, allocations: 15.06 kB / 351.6 MB, free: 12.04 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.0002845/0.5012, allocations: 155.2 kB / 351.8 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.5013, allocations: 35.62 kB / 351.8 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.5015, allocations: 51.7 kB / 351.8 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.5015, allocations: 8 kB / 351.9 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.5015, allocations: 0 / 351.9 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.5015, allocations: 3.984 kB / 351.9 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003204/0.5048, allocations: 1.335 MB / 353.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/0.5048, allocations: 4.062 kB / 353.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.5058, allocations: 126.8 kB / 353.3 MB, free: 10.56 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.826e-05/0.5059, allocations: 8 kB / 353.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.052e-05/0.5059, allocations: 20.45 kB / 353.3 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.088e-05/0.506, allocations: 15.92 kB / 353.4 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.506, allocations: 4 kB / 353.4 MB, free: 10.52 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002463/0.5085, allocations: 1.117 MB / 354.5 MB, free: 9.445 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001762/0.5087, allocations: 108.1 kB / 354.6 MB, free: 9.324 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.008e-05/0.5088, allocations: 22 kB / 354.6 MB, free: 9.309 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004709/0.5093, allocations: 38.91 kB / 354.7 MB, free: 9.277 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.5094, allocations: 48.03 kB / 354.7 MB, free: 9.238 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.143e-05/0.5095, allocations: 26.75 kB / 354.7 MB, free: 9.215 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000197/0.5097, allocations: 142.7 kB / 354.9 MB, free: 9.094 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5097, allocations: 0 / 354.9 MB, free: 9.094 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006221/0.5103, allocations: 98.5 kB / 355 MB, free: 9.016 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.003248/0.5136, allocations: 2.899 MB / 357.9 MB, free: 6.199 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001398/0.515, allocations: 448.8 kB / 358.3 MB, free: 5.871 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.5151, allocations: 0 / 358.3 MB, free: 5.871 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007799/0.5159, allocations: 262.5 kB / 358.6 MB, free: 5.672 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000813/0.5167, allocations: 72.84 kB / 358.6 MB, free: 5.617 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005912/0.5226, allocations: 2.433 MB / 361.1 MB, free: 3.457 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004648/0.5232, allocations: 0.8013 MB / 361.9 MB, free: 2.633 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003495/0.5235, allocations: 128 kB / 362 MB, free: 2.578 MB / 282.7 MB Notification: Performance of SimCode: time 1.803e-06/0.5235, allocations: 0 / 362 MB, free: 2.578 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.589/3.112, allocations: 5.762 MB / 367.7 MB, free: 12.89 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat