Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.942/1.942, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.974e-05/3.982e-05, allocations: 7.094 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09422/0.0943, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4201/0.5144, allocations: 74.32 MB / 374.3 MB, free: 12.4 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/0.5148, allocations: 75.86 kB / 374.4 MB, free: 12.4 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02611/0.5409, allocations: 5.106 MB / 379.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.541, allocations: 0 / 379.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.539e-05/0.541, allocations: 5.25 kB / 379.5 MB, free: 11.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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001348/0.5424, allocations: 0.5359 MB / 380 MB, free: 11.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.5425, allocations: 11.05 kB / 380 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001195/0.5426, allocations: 52.58 kB / 380.1 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.5427, allocations: 34.66 kB / 380.1 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004768/0.5432, allocations: 262.9 kB / 380.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.5433, allocations: 12.62 kB / 380.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.952e-05/0.5434, allocations: 19.56 kB / 380.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005526/0.5439, allocations: 187.4 kB / 380.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.544, allocations: 1.719 kB / 380.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.946e-05/0.544, allocations: 8.781 kB / 380.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.544, allocations: 6.031 kB / 380.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004336/0.5445, allocations: 140.8 kB / 380.7 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002632/0.5471, allocations: 0.8916 MB / 381.6 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004678/0.5476, allocations: 131.1 kB / 381.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.5478, allocations: 56.73 kB / 381.8 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.289e-05/0.5479, allocations: 5.281 kB / 381.8 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003211/0.5482, allocations: 128.4 kB / 381.9 MB, free: 10.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 3.346e-06/0.5482, allocations: 0 / 381.9 MB, free: 10.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.001141/0.5494, allocations: 224.2 kB / 382.2 MB, free: 10.34 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.5495, allocations: 108.9 kB / 382.3 MB, free: 10.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004093/0.5499, allocations: 229 kB / 382.5 MB, free: 10.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.747e-05/0.55, allocations: 30.33 kB / 382.5 MB, free: 10.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.5501, allocations: 224.3 kB / 382.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.43e-05/0.5502, allocations: 44.2 kB / 382.8 MB, free: 9.855 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.795e-05/0.5502, allocations: 1.344 kB / 382.8 MB, free: 9.855 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.81e-05/0.5503, allocations: 320.4 kB / 383.1 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.5505, allocations: 53.58 kB / 383.1 MB, free: 9.535 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.5507, allocations: 109.4 kB / 383.2 MB, free: 9.465 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000205/0.5509, allocations: 91.48 kB / 383.3 MB, free: 9.426 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.5509, allocations: 1.281 kB / 383.3 MB, free: 9.426 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001181/0.5521, allocations: 298.6 kB / 383.6 MB, free: 9.328 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.459e-05/0.5522, allocations: 33.92 kB / 383.7 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.5523, allocations: 1.906 kB / 383.7 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008375/0.5531, allocations: 97.81 kB / 383.8 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003987/0.5535, allocations: 51.47 kB / 383.8 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002378/0.5559, allocations: 1.585 MB / 385.4 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006084/0.5566, allocations: 49.12 kB / 385.4 MB, free: 7.906 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.572e-05/0.5567, allocations: 6.875 kB / 385.5 MB, free: 7.906 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001282/0.5568, allocations: 122.9 kB / 385.6 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.749e-05/0.5569, allocations: 17.44 kB / 385.6 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.159e-05/0.557, allocations: 28.86 kB / 385.6 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.557, allocations: 1.375 kB / 385.6 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.557, allocations: 1.375 kB / 385.6 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.557, allocations: 1.078 kB / 385.6 MB, free: 7.773 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003878/0.5574, allocations: 291.5 kB / 385.9 MB, free: 7.578 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.5574, allocations: 0 / 385.9 MB, free: 7.578 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002916/0.5577, allocations: 31.47 kB / 385.9 MB, free: 7.574 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007653/0.5585, allocations: 93.48 kB / 386 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.069e-05/0.5586, allocations: 5.562 kB / 386 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002253/0.5609, allocations: 1.475 MB / 387.5 MB, free: 22.29 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.5609, allocations: 0 / 387.5 MB, free: 22.29 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.562, allocations: 246.7 kB / 387.7 MB, free: 22.2 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.5622, allocations: 96.36 kB / 387.8 MB, free: 22.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.972e-05/0.5623, allocations: 1.312 kB / 387.8 MB, free: 22.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004237/0.5627, allocations: 36.86 kB / 387.9 MB, free: 22.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.5629, allocations: 24.7 kB / 387.9 MB, free: 22.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/0.5629, allocations: 2.719 kB / 387.9 MB, free: 22.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003122/0.5633, allocations: 183 kB / 388.1 MB, free: 22 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5633, allocations: 1.125 kB / 388.1 MB, free: 22 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006429/0.5639, allocations: 79.22 kB / 388.2 MB, free: 21.98 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001462/0.5654, allocations: 0.7955 MB / 389 MB, free: 21.36 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008071/0.5663, allocations: 303.4 kB / 389.3 MB, free: 21.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.5663, allocations: 1.344 kB / 389.3 MB, free: 21.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003706/0.5667, allocations: 180.2 kB / 389.4 MB, free: 21.07 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004762/0.5672, allocations: 44.81 kB / 389.5 MB, free: 21.06 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.5684, allocations: 329.7 kB / 389.8 MB, free: 20.86 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000504/0.569, allocations: 0.751 MB / 390.5 MB, free: 20.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002178/0.5692, allocations: 71.36 kB / 390.6 MB, free: 20.15 MB / 330.7 MB Notification: Performance of SimCode: time 1.222e-06/0.5693, allocations: 0 / 390.6 MB, free: 20.15 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.825/3.394, allocations: 4.846 MB / 395.5 MB, free: 19.87 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat does not exist to compare? outputFormat=mat