Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.995/1.995, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005664/0.0005666, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1119, allocations: 44.51 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4386/0.5506, allocations: 72.09 MB / 380.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003484/0.5511, allocations: 69.06 kB / 380.7 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03183/0.5829, allocations: 5.625 MB / 386.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.148e-06/0.583, allocations: 0 / 386.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.027e-05/0.583, allocations: 13.34 kB / 386.3 MB, free: 13.83 MB / 314.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.001767/0.5848, allocations: 0.5733 MB / 386.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.201e-05/0.5849, allocations: 9.156 kB / 386.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001706/0.5851, allocations: 64.59 kB / 387 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.5853, allocations: 36.67 kB / 387 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/0.5858, allocations: 258.7 kB / 387.3 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.177e-05/0.5858, allocations: 21.78 kB / 387.3 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.586, allocations: 30.34 kB / 387.3 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.5873, allocations: 271.8 kB / 387.6 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.863e-05/0.5874, allocations: 7.875 kB / 387.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.596e-05/0.5874, allocations: 17.09 kB / 387.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/0.5875, allocations: 6.688 kB / 387.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/0.5889, allocations: 279.5 kB / 387.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002737/0.5916, allocations: 0.8115 MB / 388.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.593, allocations: 370.8 kB / 389.1 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.283e-05/0.5931, allocations: 10.53 kB / 389.1 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.5931, allocations: 36.88 kB / 389.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.807e-06/0.5931, allocations: 0 / 389.1 MB, free: 12.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.009444/0.6026, allocations: 2.033 MB / 391.1 MB, free: 12.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.6027, allocations: 59.84 kB / 391.2 MB, free: 11.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/0.603, allocations: 174.6 kB / 391.4 MB, free: 11.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.278e-05/0.6031, allocations: 36.77 kB / 391.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.6032, allocations: 209.2 kB / 391.6 MB, free: 11.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.6035, allocations: 215.1 kB / 391.8 MB, free: 11.53 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.27e-05/0.6035, allocations: 7.438 kB / 391.8 MB, free: 11.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.495e-05/0.6036, allocations: 334.2 kB / 392.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006657/0.6043, allocations: 169.5 kB / 392.3 MB, free: 11.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006381/0.605, allocations: 170.5 kB / 392.5 MB, free: 11.2 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000721/0.6057, allocations: 188.5 kB / 392.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.6058, allocations: 0 / 392.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001718/0.6075, allocations: 483.7 kB / 393.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.6076, allocations: 8.375 kB / 393.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.6076, allocations: 3.953 kB / 393.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.699e-05/0.6077, allocations: 3.938 kB / 393.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009988/0.6087, allocations: 126.4 kB / 393.3 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/0.6087, allocations: 0 / 393.3 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005323/0.6093, allocations: 35.36 kB / 393.3 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.186e-05/0.6093, allocations: 15.44 kB / 393.3 MB, free: 11.12 MB / 314.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.0003207/0.6097, allocations: 164.4 kB / 393.5 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.6098, allocations: 37.59 kB / 393.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001774/0.61, allocations: 48.38 kB / 393.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.6101, allocations: 11.7 kB / 393.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.6101, allocations: 4 kB / 393.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.6101, allocations: 2.625 kB / 393.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003804/0.6139, allocations: 1.338 MB / 394.9 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.614, allocations: 3.844 kB / 394.9 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.6151, allocations: 129.3 kB / 395.1 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.622e-05/0.6151, allocations: 7.75 kB / 395.1 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.311e-05/0.6152, allocations: 14.34 kB / 395.1 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-05/0.6153, allocations: 11.59 kB / 395.1 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.357e-06/0.6153, allocations: 11.84 kB / 395.1 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002582/0.6179, allocations: 1.112 MB / 396.2 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001926/0.6181, allocations: 107.7 kB / 396.3 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.6182, allocations: 17.41 kB / 396.3 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006271/0.6189, allocations: 33.39 kB / 396.4 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.6191, allocations: 55.64 kB / 396.4 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.181e-05/0.6192, allocations: 23.31 kB / 396.4 MB, free: 9.656 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001639/0.6193, allocations: 135.9 kB / 396.6 MB, free: 9.582 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6193, allocations: 0 / 396.6 MB, free: 9.582 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006101/0.62, allocations: 101.7 kB / 396.7 MB, free: 9.582 MB / 314.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.002549/0.6225, allocations: 2.907 MB / 399.6 MB, free: 7.207 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.6239, allocations: 450.2 kB / 400 MB, free: 7.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.624, allocations: 0 / 400 MB, free: 7.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007201/0.6247, allocations: 263.9 kB / 400.3 MB, free: 7.156 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008418/0.6256, allocations: 67.03 kB / 400.3 MB, free: 7.148 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005293/0.6309, allocations: 2.439 MB / 402.8 MB, free: 6.047 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.6313, allocations: 0.801 MB / 403.6 MB, free: 5.34 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003304/0.6316, allocations: 122.4 kB / 403.7 MB, free: 5.336 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6316, allocations: 0 / 403.7 MB, free: 5.336 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.768/3.4, allocations: 5.78 MB / 409.5 MB, free: 4.684 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat