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.818/1.818, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.082e-05/4.086e-05, allocations: 7.422 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2762, allocations: 38.77 MB / 263.9 MB, free: 9.75 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1694/0.4456, allocations: 93.64 MB / 357.5 MB, free: 11.96 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/0.446, allocations: 75.95 kB / 357.6 MB, free: 11.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5301/0.9761, allocations: 90.85 MB / 448.4 MB, free: 24.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.9762, allocations: 0 / 448.4 MB, free: 24.94 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.434e-05/0.9762, allocations: 20 kB / 448.4 MB, free: 24.92 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.004058/0.9803, allocations: 1.606 MB / 450 MB, free: 23.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.9804, allocations: 8.031 kB / 450 MB, free: 23.26 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/0.9805, allocations: 66.53 kB / 450.1 MB, free: 23.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003638/0.9809, allocations: 197.6 kB / 450.3 MB, free: 22.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002989/0.9839, allocations: 1.219 MB / 451.5 MB, free: 21.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.672e-05/0.984, allocations: 20.52 kB / 451.5 MB, free: 21.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.9841, allocations: 28 kB / 451.6 MB, free: 21.65 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009708/0.9851, allocations: 442.5 kB / 452 MB, free: 21.19 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.9852, allocations: 0 / 452 MB, free: 21.19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.737e-05/0.9852, allocations: 12 kB / 452 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.9853, allocations: 8 kB / 452 MB, free: 21.17 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008668/0.9862, allocations: 377.2 kB / 452.4 MB, free: 20.8 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004543/0.9907, allocations: 1.662 MB / 454 MB, free: 19.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006483/0.9914, allocations: 271.3 kB / 454.3 MB, free: 18.8 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000658/0.9921, allocations: 361.9 kB / 454.7 MB, free: 18.44 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02462/1.017, allocations: 18.2 MB / 472.9 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005695/1.017, allocations: 203.2 kB / 473.1 MB, free: 13.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 4.198e-06/1.017, allocations: 0 / 473.1 MB, free: 13.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.001552/1.019, allocations: 496.2 kB / 473.6 MB, free: 12.94 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/1.019, allocations: 174.2 kB / 473.7 MB, free: 12.73 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002754/1.022, allocations: 1.209 MB / 474.9 MB, free: 11.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001377/1.022, allocations: 33.7 kB / 475 MB, free: 11.45 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008279/1.023, allocations: 0.6349 MB / 475.6 MB, free: 10.81 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/1.023, allocations: 94.64 kB / 475.7 MB, free: 10.71 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.532e-05/1.023, allocations: 12 kB / 475.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/1.023, allocations: 326.8 kB / 476 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003689/1.024, allocations: 109.1 kB / 476.1 MB, free: 10.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005509/1.024, allocations: 334.7 kB / 476.5 MB, free: 9.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004389/1.025, allocations: 153.7 kB / 476.6 MB, free: 9.691 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/1.025, allocations: 0 / 476.6 MB, free: 9.691 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001413/1.026, allocations: 494.9 kB / 477.1 MB, free: 9.199 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/1.026, allocations: 8.906 kB / 477.1 MB, free: 9.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000101/1.026, allocations: 40 kB / 477.1 MB, free: 9.152 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004889/1.027, allocations: 136.8 kB / 477.3 MB, free: 9.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008215/1.028, allocations: 119.8 kB / 477.4 MB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009491/1.029, allocations: 0.6811 MB / 478.1 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/1.03, allocations: 83.42 kB / 478.1 MB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/1.03, allocations: 39.98 kB / 478.2 MB, free: 8.07 MB / 330.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.0002322/1.03, allocations: 136.9 kB / 478.3 MB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003056/1.031, allocations: 189.8 kB / 478.5 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002911/1.034, allocations: 0.6761 MB / 479.2 MB, free: 7.055 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.336e-05/1.034, allocations: 8 kB / 479.2 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/1.034, allocations: 0 / 479.2 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/1.034, allocations: 0 / 479.2 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003179/1.037, allocations: 1.234 MB / 480.4 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.093e-05/1.037, allocations: 39.98 kB / 480.5 MB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005337/1.038, allocations: 59.95 kB / 480.5 MB, free: 5.645 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000415/1.038, allocations: 124.8 kB / 480.6 MB, free: 5.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.079e-05/1.038, allocations: 20 kB / 480.7 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008835/1.039, allocations: 0.6733 MB / 481.3 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.039, allocations: 0 / 481.3 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/1.04, allocations: 0.6414 MB / 482 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000691/1.041, allocations: 286.7 kB / 482.3 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002888/1.041, allocations: 8 kB / 482.3 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008936/1.042, allocations: 43.89 kB / 482.3 MB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/1.043, allocations: 39.95 kB / 482.3 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.575e-05/1.043, allocations: 31.92 kB / 482.4 MB, free: 3.691 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002076/1.045, allocations: 0.9275 MB / 483.3 MB, free: 2.738 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.81e-07/1.045, allocations: 0 / 483.3 MB, free: 2.738 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001797/1.047, allocations: 367.7 kB / 483.7 MB, free: 2.379 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.003258/1.05, allocations: 1.848 MB / 485.5 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001317/1.051, allocations: 411.5 kB / 485.9 MB, free: 80 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/1.051, allocations: 0 / 485.9 MB, free: 80 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006956/1.052, allocations: 241 kB / 486.2 MB, free: 15.83 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/1.054, allocations: 240.6 kB / 486.4 MB, free: 15.59 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005776/1.059, allocations: 1.847 MB / 488.2 MB, free: 13.69 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00097/1.06, allocations: 1.184 MB / 489.4 MB, free: 12.47 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/1.062, allocations: 0.5578 MB / 490 MB, free: 11.92 MB / 346.7 MB Notification: Performance of SimCode: time 1.523e-06/1.062, allocations: 4 kB / 490 MB, free: 11.91 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.506/4.567, allocations: 29.86 MB / 0.5077 GB, free: 77.9 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