Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.006/2.006, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.863e-05/2.87e-05, allocations: 4 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09529/0.09534, allocations: 44.5 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4486/0.544, allocations: 97.46 MB / 397.4 MB, free: 12.28 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.5443, allocations: 70.28 kB / 397.5 MB, free: 12.27 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3382/0.8825, allocations: 89.32 MB / 486.8 MB, free: 13.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.8826, allocations: 0 / 486.8 MB, free: 13.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.192e-05/0.8827, allocations: 24 kB / 486.8 MB, free: 13.47 MB / 378.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.005067/0.8877, allocations: 1.61 MB / 488.4 MB, free: 11.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.8878, allocations: 8.031 kB / 488.4 MB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002096/0.888, allocations: 62.53 kB / 488.5 MB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004482/0.8885, allocations: 205.6 kB / 488.7 MB, free: 11.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003473/0.892, allocations: 1.212 MB / 489.9 MB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.092e-05/0.8921, allocations: 24.55 kB / 489.9 MB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.8922, allocations: 27.98 kB / 490 MB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.8934, allocations: 438.6 kB / 490.4 MB, free: 9.746 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.8934, allocations: 4 kB / 490.4 MB, free: 9.742 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-05/0.8935, allocations: 8 kB / 490.4 MB, free: 9.734 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.559e-05/0.8936, allocations: 15.98 kB / 490.4 MB, free: 9.719 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009905/0.8946, allocations: 373.2 kB / 490.8 MB, free: 9.355 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004928/0.8995, allocations: 1.666 MB / 492.5 MB, free: 7.617 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007925/0.9004, allocations: 275.2 kB / 492.7 MB, free: 7.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008049/0.9012, allocations: 358 kB / 493.1 MB, free: 6.988 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03001/0.9312, allocations: 18.18 MB / 0.4993 GB, free: 2.219 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005802/0.9319, allocations: 211.2 kB / 0.4995 GB, free: 2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 4.568e-06/0.9319, allocations: 0 / 0.4995 GB, free: 2 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001522/0.9334, allocations: 496.2 kB / 0.4999 GB, free: 1.504 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.9336, allocations: 166.2 kB / 0.5001 GB, free: 1.305 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002637/0.9362, allocations: 1.213 MB / 0.5013 GB, free: 56 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.9364, allocations: 33.7 kB / 0.5013 GB, free: 16 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008182/0.9372, allocations: 0.6387 MB / 0.5019 GB, free: 15.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.9374, allocations: 90.75 kB / 0.502 GB, free: 15.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.9375, allocations: 12 kB / 0.502 GB, free: 15.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.9377, allocations: 330.8 kB / 0.5024 GB, free: 14.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003583/0.938, allocations: 105.1 kB / 0.5025 GB, free: 14.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000562/0.9386, allocations: 334.7 kB / 0.5028 GB, free: 14.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000434/0.9391, allocations: 152.3 kB / 0.5029 GB, free: 14.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.066e-06/0.9391, allocations: 4 kB / 0.5029 GB, free: 14.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001395/0.9405, allocations: 496.1 kB / 0.5034 GB, free: 13.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/0.9406, allocations: 9.562 kB / 0.5034 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001105/0.9407, allocations: 43.94 kB / 0.5034 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005155/0.9412, allocations: 136.8 kB / 0.5036 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008531/0.9421, allocations: 116.1 kB / 0.5037 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.9431, allocations: 0.6734 MB / 0.5043 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.9445, allocations: 87.55 kB / 0.5044 GB, free: 12.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/0.9447, allocations: 32 kB / 0.5045 GB, free: 12.65 MB / 410.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.000237/0.9449, allocations: 147.3 kB / 0.5046 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003722/0.9453, allocations: 185.8 kB / 0.5048 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002891/0.9482, allocations: 0.684 MB / 0.5054 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.9483, allocations: 7.984 kB / 0.5055 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.9483, allocations: 3.953 kB / 0.5055 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.9483, allocations: 3.938 kB / 0.5055 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003335/0.9517, allocations: 1.23 MB / 0.5067 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.071e-05/0.9518, allocations: 32 kB / 0.5067 GB, free: 10.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005265/0.9524, allocations: 55.89 kB / 0.5067 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004206/0.9528, allocations: 128.9 kB / 0.5069 GB, free: 10.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.131e-05/0.9529, allocations: 23.94 kB / 0.5069 GB, free: 10.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009037/0.9538, allocations: 0.6733 MB / 0.5076 GB, free: 9.375 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.9538, allocations: 0 / 0.5076 GB, free: 9.375 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/0.9553, allocations: 0.6454 MB / 0.5082 GB, free: 8.684 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000724/0.956, allocations: 286.7 kB / 0.5085 GB, free: 8.383 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002744/0.9563, allocations: 8 kB / 0.5085 GB, free: 8.375 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000897/0.9572, allocations: 43.95 kB / 0.5085 GB, free: 8.332 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.9574, allocations: 39.95 kB / 0.5085 GB, free: 8.293 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.571e-05/0.9575, allocations: 23.94 kB / 0.5086 GB, free: 8.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002099/0.9596, allocations: 0.9352 MB / 0.5095 GB, free: 7.309 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.9597, allocations: 0 / 0.5095 GB, free: 7.309 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001868/0.9616, allocations: 359.7 kB / 0.5098 GB, free: 6.957 MB / 410.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.003492/0.9651, allocations: 1.871 MB / 0.5116 GB, free: 5.035 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.9666, allocations: 408.5 kB / 0.512 GB, free: 4.625 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.9666, allocations: 384 / 0.512 GB, free: 4.625 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006961/0.9673, allocations: 239.3 kB / 0.5123 GB, free: 4.379 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.9689, allocations: 235.1 kB / 0.5125 GB, free: 4.145 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005939/0.9749, allocations: 1.839 MB / 0.5143 GB, free: 2.246 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009654/0.976, allocations: 1.184 MB / 0.5154 GB, free: 1.031 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/0.977, allocations: 0.5578 MB / 0.516 GB, free: 484 kB / 410.7 MB Notification: Performance of SimCode: time 1.543e-06/0.977, allocations: 0 / 0.516 GB, free: 484 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.21/4.187, allocations: 29.85 MB / 0.5451 GB, free: 97.07 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat