Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.734/1.734, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.566e-05/2.594e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2574, allocations: 38.76 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1586/0.416, allocations: 92.97 MB / 351.3 MB, free: 0.832 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.4163, allocations: 75.95 kB / 351.4 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5196/0.936, allocations: 86.39 MB / 437.8 MB, free: 37.87 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.936, allocations: 0 / 437.8 MB, free: 37.87 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.241e-05/0.9361, allocations: 24 kB / 437.8 MB, free: 37.85 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003753/0.9399, allocations: 1.613 MB / 439.4 MB, free: 36.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.9399, allocations: 12.03 kB / 439.4 MB, free: 36.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003665/0.9403, allocations: 197.7 kB / 439.6 MB, free: 35.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00272/0.943, allocations: 1.216 MB / 440.8 MB, free: 34.69 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.9431, allocations: 8 kB / 440.8 MB, free: 34.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.9432, allocations: 23.95 kB / 440.8 MB, free: 34.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008075/0.944, allocations: 357.3 kB / 441.2 MB, free: 34.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007831/0.9448, allocations: 410.5 kB / 441.6 MB, free: 33.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.9449, allocations: 4 kB / 441.6 MB, free: 33.88 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.179e-05/0.9449, allocations: 0 / 441.6 MB, free: 33.88 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.945, allocations: 11.98 kB / 441.6 MB, free: 33.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004012/0.949, allocations: 1.597 MB / 443.2 MB, free: 32.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000513/0.9495, allocations: 263.3 kB / 443.5 MB, free: 31.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005949/0.9501, allocations: 354.6 kB / 443.8 MB, free: 31.6 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02173/0.9719, allocations: 18.19 MB / 462 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004243/0.9724, allocations: 207.2 kB / 462.2 MB, free: 10.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.615e-06/0.9724, allocations: 0 / 462.2 MB, free: 10.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001028/0.9734, allocations: 472.2 kB / 462.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/0.9735, allocations: 174.1 kB / 462.8 MB, free: 9.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/0.9751, allocations: 1.114 MB / 463.9 MB, free: 8.785 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.547e-05/0.9752, allocations: 29.7 kB / 464 MB, free: 8.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005505/0.9758, allocations: 0.6349 MB / 464.6 MB, free: 8.113 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.894e-05/0.9759, allocations: 90.66 kB / 464.7 MB, free: 8.023 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.653e-05/0.9759, allocations: 0 / 464.7 MB, free: 8.023 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.958e-05/0.976, allocations: 334.8 kB / 465 MB, free: 7.688 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.9762, allocations: 101.1 kB / 465.1 MB, free: 7.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003411/0.9766, allocations: 323.1 kB / 465.4 MB, free: 7.172 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003468/0.977, allocations: 145.7 kB / 465.6 MB, free: 7.031 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.977, allocations: 4 kB / 465.6 MB, free: 7.027 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00101/0.978, allocations: 459.6 kB / 466 MB, free: 6.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.978, allocations: 8 kB / 466 MB, free: 6.562 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.47e-05/0.9781, allocations: 40 kB / 466.1 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003854/0.9785, allocations: 132.8 kB / 466.2 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007119/0.9793, allocations: 124 kB / 466.3 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006528/0.9799, allocations: 0.6928 MB / 467 MB, free: 5.551 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.9809, allocations: 79.48 kB / 467.1 MB, free: 5.473 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.227e-05/0.981, allocations: 36 kB / 467.1 MB, free: 5.438 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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: 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001528/0.9812, allocations: 126.2 kB / 467.3 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008869/0.9821, allocations: 484.2 kB / 467.7 MB, free: 4.824 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001965/0.9823, allocations: 189.7 kB / 467.9 MB, free: 4.637 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002234/0.9846, allocations: 0.6536 MB / 468.6 MB, free: 3.973 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.9846, allocations: 4 kB / 468.6 MB, free: 3.969 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.9846, allocations: 0 / 468.6 MB, free: 3.969 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.9846, allocations: 0 / 468.6 MB, free: 3.969 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002284/0.9869, allocations: 1.174 MB / 469.7 MB, free: 2.738 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.975e-05/0.987, allocations: 35.98 kB / 469.8 MB, free: 2.703 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004472/0.9875, allocations: 51.95 kB / 469.8 MB, free: 2.652 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003174/0.9878, allocations: 132.8 kB / 470 MB, free: 2.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.922e-05/0.9879, allocations: 23.92 kB / 470 MB, free: 2.496 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006366/0.9885, allocations: 0.6851 MB / 470.7 MB, free: 1.785 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.9885, allocations: 128 / 470.7 MB, free: 1.785 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000998/0.9896, allocations: 0.6335 MB / 471.3 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005605/0.9901, allocations: 290.7 kB / 471.6 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003238/0.9905, allocations: 4 kB / 471.6 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008194/0.9913, allocations: 43.89 kB / 471.6 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.9915, allocations: 39.95 kB / 471.7 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.796e-05/0.9915, allocations: 19.98 kB / 471.7 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001393/0.9929, allocations: 0.8367 MB / 472.5 MB, free: 15.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.9929, allocations: 0 / 472.5 MB, free: 15.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001455/0.9944, allocations: 339.7 kB / 472.9 MB, free: 15.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002946/0.9974, allocations: 1.919 MB / 474.8 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001138/0.9985, allocations: 404.7 kB / 475.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.9986, allocations: 4.062 kB / 475.2 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006009/0.9992, allocations: 231.3 kB / 475.4 MB, free: 12.89 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001486/1.001, allocations: 235 kB / 475.6 MB, free: 12.65 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005026/1.006, allocations: 1.817 MB / 477.5 MB, free: 10.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009039/1.007, allocations: 1.179 MB / 478.6 MB, free: 9.562 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009632/1.008, allocations: 0.554 MB / 479.2 MB, free: 9.008 MB / 330.7 MB Notification: Performance of SimCode: time 1.002e-06/1.008, allocations: 0 / 479.2 MB, free: 9.008 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.353/4.36, allocations: 29.89 MB / 0.4971 GB, free: 83.85 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat