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.802/1.802, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.572e-05/2.591e-05, allocations: 0 / 219.5 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3446, allocations: 38.78 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.158/0.5027, allocations: 66.75 MB / 325.1 MB, free: 11.07 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.5031, allocations: 67.97 kB / 325.1 MB, free: 11.01 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01648/0.5196, allocations: 3.66 MB / 328.8 MB, free: 7.332 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5196, allocations: 0 / 328.8 MB, free: 7.332 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.819e-05/0.5197, allocations: 11.94 kB / 328.8 MB, free: 7.32 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.0009104/0.5206, allocations: 490.1 kB / 329.3 MB, free: 6.793 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/0.5206, allocations: 8.031 kB / 329.3 MB, free: 6.785 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.929e-05/0.5207, allocations: 23.72 kB / 329.3 MB, free: 6.762 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003365/0.5211, allocations: 234.6 kB / 329.6 MB, free: 6.492 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.5211, allocations: 11.95 kB / 329.6 MB, free: 6.48 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.562e-05/0.5212, allocations: 12 kB / 329.6 MB, free: 6.469 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003895/0.5216, allocations: 112.8 kB / 329.7 MB, free: 6.359 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/0.522, allocations: 172.5 kB / 329.9 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.5221, allocations: 3.906 kB / 329.9 MB, free: 6.176 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.576e-05/0.5221, allocations: 0 / 329.9 MB, free: 6.176 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.5221, allocations: 4 kB / 329.9 MB, free: 6.172 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.5239, allocations: 0.7609 MB / 330.6 MB, free: 5.355 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004864/0.5244, allocations: 169.1 kB / 330.8 MB, free: 5.172 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002746/0.5247, allocations: 93.69 kB / 330.9 MB, free: 5.074 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.5248, allocations: 8 kB / 330.9 MB, free: 5.066 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.5248, allocations: 34.5 kB / 330.9 MB, free: 5.023 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 3.216e-06/0.5248, allocations: 0 / 330.9 MB, free: 5.023 MB / 282.7 MB Notification: Performance of matching and sorting (n=26): time 0.001687/0.5265, allocations: 0.7193 MB / 331.6 MB, free: 4.219 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.5266, allocations: 81.11 kB / 331.7 MB, free: 4.121 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/0.5268, allocations: 141.8 kB / 331.9 MB, free: 3.969 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.5268, allocations: 33.64 kB / 331.9 MB, free: 3.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.527, allocations: 198.8 kB / 332.1 MB, free: 3.734 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.5271, allocations: 90.66 kB / 332.2 MB, free: 3.645 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.514e-05/0.5271, allocations: 0 / 332.2 MB, free: 3.645 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.5273, allocations: 326.8 kB / 332.5 MB, free: 3.316 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.5274, allocations: 48 kB / 332.5 MB, free: 3.27 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.5276, allocations: 89.33 kB / 332.6 MB, free: 3.168 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002027/0.5278, allocations: 63.97 kB / 332.7 MB, free: 3.105 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.5279, allocations: 4.438 kB / 332.7 MB, free: 3.102 MB / 282.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004885/0.5284, allocations: 184.5 kB / 332.9 MB, free: 2.918 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.5284, allocations: 7.938 kB / 332.9 MB, free: 2.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.5284, allocations: 0 / 332.9 MB, free: 2.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.5285, allocations: 7.938 kB / 332.9 MB, free: 2.902 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000495/0.529, allocations: 59.97 kB / 332.9 MB, free: 2.844 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.529, allocations: 7.938 kB / 333 MB, free: 2.836 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.5292, allocations: 23.94 kB / 333 MB, free: 2.812 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/0.5292, allocations: 4 kB / 333 MB, free: 2.809 MB / 282.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.0001179/0.5294, allocations: 120.8 kB / 333.1 MB, free: 2.684 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004573/0.5298, allocations: 165.4 kB / 333.3 MB, free: 2.516 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.637e-05/0.5299, allocations: 19.81 kB / 333.3 MB, free: 2.496 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.61e-05/0.53, allocations: 21.97 kB / 333.3 MB, free: 2.477 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.5301, allocations: 4 kB / 333.3 MB, free: 2.473 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.5301, allocations: 3.953 kB / 333.3 MB, free: 2.469 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.5301, allocations: 3.984 kB / 333.3 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.5313, allocations: 0.5207 MB / 333.8 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.5313, allocations: 0 / 333.8 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005412/0.5318, allocations: 67.86 kB / 333.9 MB, free: 1.824 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-06/0.5319, allocations: 4.094 kB / 333.9 MB, free: 1.82 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.536e-05/0.5319, allocations: 4 kB / 333.9 MB, free: 1.816 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/0.5319, allocations: 4 kB / 333.9 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.5319, allocations: 0 / 333.9 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008314/0.5328, allocations: 493 kB / 334.4 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001592/0.5329, allocations: 105 kB / 334.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.845e-05/0.533, allocations: 3.984 kB / 334.5 MB, free: 1.156 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.5333, allocations: 8 kB / 334.5 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.999e-05/0.5334, allocations: 27.92 kB / 334.5 MB, free: 1.121 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.5334, allocations: 4 kB / 334.5 MB, free: 1.117 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000139/0.5336, allocations: 119.3 kB / 334.7 MB, free: 1 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5336, allocations: 0 / 334.7 MB, free: 1 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005617/0.5341, allocations: 44.25 kB / 334.7 MB, free: 0.957 MB / 282.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.001383/0.5355, allocations: 1.296 MB / 336 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004574/0.536, allocations: 144 kB / 336.1 MB, free: 15.47 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.5361, allocations: 4 kB / 336.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002098/0.5363, allocations: 79.86 kB / 336.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005586/0.5368, allocations: 20.17 kB / 336.2 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.5388, allocations: 0.6137 MB / 336.9 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004447/0.5393, allocations: 0.7557 MB / 337.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001999/0.5395, allocations: 75.34 kB / 337.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5396, allocations: 0 / 337.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.533/3.072, allocations: 3.451 MB / 341.1 MB, free: 10.4 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