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.965/1.965, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.238e-05/2.239e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3458, allocations: 44.49 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1432/0.489, allocations: 71.34 MB / 365.5 MB, free: 10.56 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003017/0.4894, allocations: 67.97 kB / 365.6 MB, free: 10.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02992/0.5194, allocations: 5.585 MB / 371.2 MB, free: 4.887 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5194, allocations: 3.938 kB / 371.2 MB, free: 4.883 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.217e-05/0.5194, allocations: 4 kB / 371.2 MB, free: 4.879 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.001216/0.5207, allocations: 0.5457 MB / 371.7 MB, free: 4.289 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.5207, allocations: 12.03 kB / 371.8 MB, free: 4.277 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.452e-05/0.5208, allocations: 35.58 kB / 371.8 MB, free: 4.242 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003739/0.5212, allocations: 246.5 kB / 372 MB, free: 3.961 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.5213, allocations: 15.94 kB / 372 MB, free: 3.945 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.362e-05/0.5213, allocations: 20 kB / 372.1 MB, free: 3.926 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006348/0.522, allocations: 213 kB / 372.3 MB, free: 3.715 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005578/0.5226, allocations: 207.8 kB / 372.5 MB, free: 3.504 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.464e-05/0.5226, allocations: 3.906 kB / 372.5 MB, free: 3.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.214e-05/0.5226, allocations: 0 / 372.5 MB, free: 3.5 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.5227, allocations: 8 kB / 372.5 MB, free: 3.492 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.5247, allocations: 0.7437 MB / 373.2 MB, free: 2.711 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007371/0.5254, allocations: 335.1 kB / 373.6 MB, free: 2.367 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004059/0.5259, allocations: 164.8 kB / 373.7 MB, free: 2.203 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.494e-05/0.5259, allocations: 4 kB / 373.7 MB, free: 2.199 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.526, allocations: 36.02 kB / 373.8 MB, free: 2.156 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 4.849e-06/0.526, allocations: 4 kB / 373.8 MB, free: 2.152 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.003993/0.53, allocations: 1.484 MB / 375.2 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.5301, allocations: 55.97 kB / 375.3 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002252/0.5303, allocations: 154.1 kB / 375.4 MB, free: 360 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.86e-05/0.5304, allocations: 29.64 kB / 375.5 MB, free: 324 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.5305, allocations: 207.4 kB / 375.7 MB, free: 116 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002316/0.5307, allocations: 208.8 kB / 375.9 MB, free: 15.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.76e-05/0.5308, allocations: 0 / 375.9 MB, free: 15.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.5309, allocations: 334.8 kB / 376.2 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/0.5313, allocations: 129.1 kB / 376.3 MB, free: 15.45 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003437/0.5316, allocations: 127.9 kB / 376.5 MB, free: 15.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003875/0.532, allocations: 146.1 kB / 376.6 MB, free: 15.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.5321, allocations: 0 / 376.6 MB, free: 15.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009261/0.533, allocations: 386.8 kB / 377 MB, free: 14.79 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.533, allocations: 4 kB / 377 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.5331, allocations: 0 / 377 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.5331, allocations: 7.984 kB / 377 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009611/0.5341, allocations: 131.8 kB / 377.1 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.5341, allocations: 4 kB / 377.1 MB, free: 14.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.5345, allocations: 19.97 kB / 377.1 MB, free: 14.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.994e-05/0.5345, allocations: 16 kB / 377.2 MB, free: 14.61 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 () * 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.0001517/0.5347, allocations: 120.6 kB / 377.3 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009136/0.5356, allocations: 378.7 kB / 377.6 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.216e-05/0.5357, allocations: 31.62 kB / 377.7 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/0.5359, allocations: 43.91 kB / 377.7 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.5359, allocations: 8 kB / 377.7 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.5359, allocations: 4 kB / 377.7 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.5359, allocations: 3.984 kB / 377.7 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00261/0.5385, allocations: 1.158 MB / 378.9 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.5386, allocations: 4 kB / 378.9 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009761/0.5396, allocations: 131.8 kB / 379 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-05/0.5396, allocations: 8 kB / 379 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.381e-05/0.5397, allocations: 4 kB / 379 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-05/0.5397, allocations: 15.92 kB / 379.1 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.125e-05/0.5397, allocations: 7.938 kB / 379.1 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.5414, allocations: 0.9789 MB / 380 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.5415, allocations: 116.8 kB / 380.2 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.438e-05/0.5416, allocations: 8 kB / 380.2 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004668/0.5421, allocations: 19.98 kB / 380.2 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.5423, allocations: 55.77 kB / 380.2 MB, free: 11.22 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.865e-05/0.5423, allocations: 24 kB / 380.3 MB, free: 11.2 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001543/0.5425, allocations: 132 kB / 380.4 MB, free: 11.07 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5425, allocations: 0 / 380.4 MB, free: 11.07 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006322/0.5431, allocations: 76 kB / 380.5 MB, free: 11 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 () * 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.002554/0.5457, allocations: 2.754 MB / 383.2 MB, free: 8.086 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009787/0.5467, allocations: 357.8 kB / 383.6 MB, free: 7.738 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.5467, allocations: 0 / 383.6 MB, free: 7.738 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005503/0.5473, allocations: 220.2 kB / 383.8 MB, free: 7.523 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007805/0.5481, allocations: 66.16 kB / 383.8 MB, free: 7.461 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002494/0.5506, allocations: 0.8853 MB / 384.7 MB, free: 6.473 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/0.5511, allocations: 0.8008 MB / 385.5 MB, free: 5.645 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003398/0.5515, allocations: 119.4 kB / 385.7 MB, free: 5.527 MB / 330.7 MB Notification: Performance of SimCode: time 1.223e-06/0.5515, allocations: 0 / 385.7 MB, free: 5.527 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.502/3.053, allocations: 5.799 MB / 391.5 MB, free: 15.74 MB / 346.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