Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.706/1.706, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.106e-05/3.142e-05, allocations: 3.438 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3067, allocations: 38.77 MB / 263.9 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1775/0.4842, allocations: 67.42 MB / 331.3 MB, free: 6.23 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003696/0.4847, allocations: 67.97 kB / 331.3 MB, free: 6.164 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02707/0.5118, allocations: 3.708 MB / 335.1 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.5119, allocations: 0 / 335.1 MB, free: 2.441 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.675e-05/0.5119, allocations: 11.98 kB / 335.1 MB, free: 2.43 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001408/0.5134, allocations: 486.2 kB / 335.5 MB, free: 1.91 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.07e-05/0.5135, allocations: 12.03 kB / 335.5 MB, free: 1.898 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.5136, allocations: 50.55 kB / 335.6 MB, free: 1.84 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.5138, allocations: 27.72 kB / 335.6 MB, free: 1.812 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004811/0.5143, allocations: 222.7 kB / 335.8 MB, free: 1.555 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.399e-05/0.5143, allocations: 20.39 kB / 335.9 MB, free: 1.535 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.9e-05/0.5144, allocations: 24 kB / 335.9 MB, free: 1.512 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000767/0.5152, allocations: 196.5 kB / 336.1 MB, free: 1.309 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.28e-05/0.5153, allocations: 7.906 kB / 336.1 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.382e-05/0.5154, allocations: 12 kB / 336.1 MB, free: 1.289 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.5154, allocations: 4 kB / 336.1 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005946/0.516, allocations: 124.3 kB / 336.2 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002879/0.5189, allocations: 0.7997 MB / 337 MB, free: 304 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008396/0.5198, allocations: 189 kB / 337.2 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004855/0.5204, allocations: 93.75 kB / 337.3 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.842e-05/0.5204, allocations: 4 kB / 337.3 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.327e-05/0.5205, allocations: 42.5 kB / 337.3 MB, free: 15.94 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 4.488e-06/0.5205, allocations: 0 / 337.3 MB, free: 15.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.002889/0.5234, allocations: 0.7654 MB / 338.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.737e-05/0.5236, allocations: 81.11 kB / 338.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003327/0.5239, allocations: 165.9 kB / 338.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.785e-05/0.524, allocations: 33.64 kB / 338.4 MB, free: 14.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.5242, allocations: 202.8 kB / 338.6 MB, free: 14.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.5244, allocations: 90.8 kB / 338.7 MB, free: 14.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/0.5244, allocations: 8 kB / 338.7 MB, free: 14.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.5246, allocations: 322.8 kB / 339 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.5249, allocations: 52 kB / 339 MB, free: 14.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003433/0.5253, allocations: 100.3 kB / 339.1 MB, free: 13.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003368/0.5256, allocations: 63.69 kB / 339.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.5257, allocations: 0 / 339.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008762/0.5266, allocations: 205.5 kB / 339.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.609e-05/0.5266, allocations: 11.92 kB / 339.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.5267, allocations: 8.188 kB / 339.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.039e-05/0.5267, allocations: 4 kB / 339.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007786/0.5275, allocations: 59.92 kB / 339.5 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.563e-05/0.5276, allocations: 11.92 kB / 339.5 MB, free: 13.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003672/0.528, allocations: 15.91 kB / 339.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.528, allocations: 8 kB / 339.5 MB, free: 13.61 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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.0001836/0.5282, allocations: 120.9 kB / 339.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.5284, allocations: 23.81 kB / 339.7 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/0.5286, allocations: 25.66 kB / 339.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.5286, allocations: 4 kB / 339.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-05/0.5286, allocations: 3.953 kB / 339.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.5287, allocations: 3.984 kB / 339.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002021/0.5307, allocations: 0.5789 MB / 340.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/0.5308, allocations: 3.953 kB / 340.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009226/0.5317, allocations: 55.97 kB / 340.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.399e-05/0.5318, allocations: 0 / 340.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.5e-05/0.5318, allocations: 8 kB / 340.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.85e-05/0.5319, allocations: 11.92 kB / 340.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.5319, allocations: 0 / 340.4 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.5332, allocations: 0.496 MB / 340.9 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.5335, allocations: 112.9 kB / 341 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.623e-05/0.5336, allocations: 8 kB / 341 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005015/0.5342, allocations: 16.08 kB / 341 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.5343, allocations: 27.86 kB / 341 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.5344, allocations: 8 kB / 341 MB, free: 11.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002531/0.5347, allocations: 136.2 kB / 341.2 MB, free: 11.83 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.5347, allocations: 0 / 341.2 MB, free: 11.83 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008507/0.5356, allocations: 56 kB / 341.2 MB, free: 11.77 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (mass1.s,mass1.v,damper1.s_rel,damper1.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.001867/0.5375, allocations: 1.316 MB / 342.5 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000764/0.5383, allocations: 155.8 kB / 342.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.5383, allocations: 0 / 342.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003722/0.5387, allocations: 83.88 kB / 342.8 MB, free: 10.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008336/0.5396, allocations: 39.56 kB / 342.8 MB, free: 10.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003057/0.5427, allocations: 0.6265 MB / 343.4 MB, free: 9.449 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005352/0.5433, allocations: 0.756 MB / 344.2 MB, free: 8.664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002889/0.5436, allocations: 67.41 kB / 344.2 MB, free: 8.598 MB / 298.7 MB Notification: Performance of SimCode: time 1.633e-06/0.5436, allocations: 0 / 344.2 MB, free: 8.598 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.52/3.064, allocations: 3.512 MB / 347.8 MB, free: 5.086 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat does not exist to compare? outputFormat=mat