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.087/2.087, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.644e-05/4.66e-05, allocations: 5.406 kB / 255.4 MB, free: 2.637 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1085, allocations: 44.51 MB / 300 MB, free: 6.074 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4265/0.5351, allocations: 72 MB / 372 MB, free: 22.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.5355, allocations: 61.94 kB / 372 MB, free: 22.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02501/0.5605, allocations: 5.636 MB / 377.7 MB, free: 21.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5606, allocations: 3.938 kB / 377.7 MB, free: 21.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.259e-05/0.5606, allocations: 6.625 kB / 377.7 MB, free: 21.73 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.001209/0.5618, allocations: 0.5482 MB / 378.2 MB, free: 21.31 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.5619, allocations: 10.38 kB / 378.2 MB, free: 21.31 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.491e-05/0.562, allocations: 65.5 kB / 378.3 MB, free: 21.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.627e-05/0.5621, allocations: 36.58 kB / 378.3 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003493/0.5625, allocations: 258.5 kB / 378.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.456e-05/0.5625, allocations: 19.34 kB / 378.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.012e-05/0.5626, allocations: 35 kB / 378.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006566/0.5633, allocations: 244.3 kB / 378.9 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.793e-05/0.5633, allocations: 10.61 kB / 378.9 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.057e-05/0.5634, allocations: 9.719 kB / 378.9 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.5634, allocations: 6 kB / 378.9 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006298/0.564, allocations: 229.3 kB / 379.1 MB, free: 20.97 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.566, allocations: 0.8042 MB / 379.9 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007509/0.5667, allocations: 335.8 kB / 380.2 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004092/0.5672, allocations: 179 kB / 380.4 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.302e-05/0.5672, allocations: 4.5 kB / 380.4 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.5673, allocations: 40.59 kB / 380.5 MB, free: 20.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.146e-06/0.5673, allocations: 0 / 380.5 MB, free: 20.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.005883/0.5732, allocations: 1.763 MB / 382.2 MB, free: 19.97 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.065e-05/0.5733, allocations: 59.84 kB / 382.3 MB, free: 19.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/0.5735, allocations: 172.8 kB / 382.5 MB, free: 19.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.699e-05/0.5736, allocations: 36.98 kB / 382.5 MB, free: 19.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.685e-05/0.5737, allocations: 141 kB / 382.6 MB, free: 19.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.5739, allocations: 216.6 kB / 382.8 MB, free: 19.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/0.5739, allocations: 16.88 kB / 382.9 MB, free: 19.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.925e-05/0.574, allocations: 347.8 kB / 383.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/0.5744, allocations: 137.2 kB / 383.3 MB, free: 19.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000366/0.5748, allocations: 145.5 kB / 383.5 MB, free: 19.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003994/0.5752, allocations: 153.9 kB / 383.6 MB, free: 19.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5752, allocations: 1.438 kB / 383.6 MB, free: 19.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00103/0.5762, allocations: 445.4 kB / 384.1 MB, free: 19.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.5763, allocations: 11.41 kB / 384.1 MB, free: 19.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.5763, allocations: 0 / 384.1 MB, free: 19.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.622e-05/0.5763, allocations: 3.25 kB / 384.1 MB, free: 19.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.5774, allocations: 128.6 kB / 384.2 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/0.5774, allocations: 1.531 kB / 384.2 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004534/0.5779, allocations: 33.67 kB / 384.2 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-05/0.5779, allocations: 14.81 kB / 384.2 MB, free: 19.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 () * 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.0001442/0.5781, allocations: 139.8 kB / 384.4 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.5782, allocations: 32.59 kB / 384.4 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.5784, allocations: 49.36 kB / 384.5 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.5784, allocations: 10.44 kB / 384.5 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.5784, allocations: 0 / 384.5 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.5784, allocations: 4.656 kB / 384.5 MB, free: 18.97 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002669/0.5811, allocations: 1.276 MB / 385.8 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.5812, allocations: 8.219 kB / 385.8 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009891/0.5822, allocations: 125.5 kB / 385.9 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.07e-05/0.5822, allocations: 13.66 kB / 385.9 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.032e-05/0.5823, allocations: 18.53 kB / 385.9 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.555e-05/0.5823, allocations: 13.36 kB / 385.9 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/0.5823, allocations: 5.219 kB / 385.9 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.584, allocations: 1.03 MB / 387 MB, free: 17.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.5841, allocations: 112.2 kB / 387.1 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.592e-05/0.5842, allocations: 17.3 kB / 387.1 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004705/0.5847, allocations: 34.7 kB / 387.1 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.5848, allocations: 52.86 kB / 387.2 MB, free: 17.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.49e-05/0.5849, allocations: 19.69 kB / 387.2 MB, free: 17.67 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001625/0.585, allocations: 141.8 kB / 387.3 MB, free: 17.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.585, allocations: 0 / 387.3 MB, free: 17.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005826/0.5856, allocations: 98.62 kB / 387.4 MB, free: 17.59 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 () * 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.002304/0.588, allocations: 2.807 MB / 390.2 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.5891, allocations: 390.8 kB / 390.6 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.5891, allocations: 5.469 kB / 390.6 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005404/0.5897, allocations: 236.4 kB / 390.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008406/0.5905, allocations: 66.58 kB / 390.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.5931, allocations: 0.9144 MB / 391.8 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007978/0.5939, allocations: 0.7996 MB / 392.6 MB, free: 29.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000398/0.5944, allocations: 43.38 kB / 392.7 MB, free: 29.92 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002624/0.5946, allocations: 123.6 kB / 392.8 MB, free: 29.91 MB / 330.7 MB Notification: Performance of SimCode: time 1.393e-06/0.5946, allocations: 3.938 kB / 392.8 MB, free: 29.91 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04522/0.6399, allocations: 6.803 MB / 399.6 MB, free: 29.31 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002869/0.6402, allocations: 155.5 kB / 399.8 MB, free: 29.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.762/3.402, allocations: 3.938 kB / 399.8 MB, free: 29.08 MB / 330.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