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.788/1.788, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.729e-05/3.74e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2639, allocations: 38.76 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.172/0.436, allocations: 93.63 MB / 357.5 MB, free: 12.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.4363, allocations: 71.95 kB / 357.5 MB, free: 12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.527/0.9632, allocations: 90.83 MB / 448.4 MB, free: 25.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.9633, allocations: 0 / 448.4 MB, free: 25.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.107e-05/0.9633, allocations: 24 kB / 448.4 MB, free: 25.12 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.003617/0.967, allocations: 1.602 MB / 450 MB, free: 23.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.967, allocations: 12.03 kB / 450 MB, free: 23.45 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.9672, allocations: 70.53 kB / 450.1 MB, free: 23.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003166/0.9675, allocations: 193.7 kB / 450.3 MB, free: 23.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002725/0.9702, allocations: 1.216 MB / 451.5 MB, free: 21.9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.36e-05/0.9703, allocations: 24.52 kB / 451.5 MB, free: 21.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.9704, allocations: 24 kB / 451.5 MB, free: 21.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009441/0.9714, allocations: 451.6 kB / 452 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.9714, allocations: 0 / 452 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.831e-05/0.9715, allocations: 15.98 kB / 452 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.9715, allocations: 7.984 kB / 452 MB, free: 21.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008227/0.9724, allocations: 374.4 kB / 452.4 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004174/0.9766, allocations: 1.666 MB / 454 MB, free: 19.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006574/0.9773, allocations: 275.5 kB / 454.3 MB, free: 18.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006474/0.9779, allocations: 369.9 kB / 454.6 MB, free: 18.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02388/1.002, allocations: 18.19 MB / 472.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000556/1.002, allocations: 211.2 kB / 473 MB, free: 13.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.095e-06/1.002, allocations: 0 / 473 MB, free: 13.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.00143/1.004, allocations: 0.4885 MB / 473.5 MB, free: 13.11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/1.004, allocations: 158.2 kB / 473.7 MB, free: 12.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002499/1.007, allocations: 1.213 MB / 474.9 MB, free: 11.66 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001082/1.007, allocations: 33.7 kB / 474.9 MB, free: 11.62 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007907/1.007, allocations: 0.6388 MB / 475.6 MB, free: 10.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/1.008, allocations: 98.64 kB / 475.7 MB, free: 10.89 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.435e-05/1.008, allocations: 8 kB / 475.7 MB, free: 10.88 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/1.008, allocations: 330.8 kB / 476 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003569/1.008, allocations: 109.1 kB / 476.1 MB, free: 10.44 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005495/1.009, allocations: 335.8 kB / 476.4 MB, free: 10.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004556/1.009, allocations: 145.7 kB / 476.6 MB, free: 9.871 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.782e-06/1.009, allocations: 8 kB / 476.6 MB, free: 9.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0014/1.011, allocations: 0.5031 MB / 477.1 MB, free: 9.352 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/1.011, allocations: 8 kB / 477.1 MB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/1.011, allocations: 39.98 kB / 477.1 MB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004981/1.011, allocations: 129.3 kB / 477.3 MB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008168/1.012, allocations: 123.8 kB / 477.4 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009854/1.013, allocations: 0.6811 MB / 478.1 MB, free: 8.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/1.014, allocations: 83.61 kB / 478.1 MB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.584e-05/1.015, allocations: 40 kB / 478.2 MB, free: 8.227 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.0002171/1.015, allocations: 136.8 kB / 478.3 MB, free: 8.086 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002873/1.015, allocations: 193.8 kB / 478.5 MB, free: 7.895 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002793/1.018, allocations: 0.68 MB / 479.2 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/1.018, allocations: 4 kB / 479.2 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/1.018, allocations: 0 / 479.2 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/1.018, allocations: 3.984 kB / 479.2 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00306/1.021, allocations: 1.238 MB / 480.4 MB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.882e-05/1.021, allocations: 35.98 kB / 480.5 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005584/1.022, allocations: 59.89 kB / 480.5 MB, free: 5.793 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000403/1.022, allocations: 124.9 kB / 480.7 MB, free: 5.668 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.215e-05/1.022, allocations: 19.98 kB / 480.7 MB, free: 5.648 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008621/1.023, allocations: 0.6694 MB / 481.3 MB, free: 4.953 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.023, allocations: 0 / 481.3 MB, free: 4.953 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/1.025, allocations: 0.6491 MB / 482 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007876/1.025, allocations: 278.8 kB / 482.3 MB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002618/1.026, allocations: 11.98 kB / 482.3 MB, free: 3.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009532/1.027, allocations: 43.91 kB / 482.3 MB, free: 3.91 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/1.027, allocations: 43.94 kB / 482.4 MB, free: 3.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.53e-05/1.027, allocations: 20 kB / 482.4 MB, free: 3.848 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001955/1.029, allocations: 0.9314 MB / 483.3 MB, free: 2.891 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.029, allocations: 0 / 483.3 MB, free: 2.891 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001534/1.03, allocations: 371.6 kB / 483.7 MB, free: 2.527 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.003139/1.034, allocations: 1.847 MB / 485.5 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001284/1.035, allocations: 424.6 kB / 485.9 MB, free: 220 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/1.035, allocations: 0 / 485.9 MB, free: 220 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007011/1.036, allocations: 247.2 kB / 486.2 MB, free: 15.96 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/1.037, allocations: 243.4 kB / 486.4 MB, free: 15.72 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005549/1.043, allocations: 1.847 MB / 488.3 MB, free: 13.81 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009666/1.044, allocations: 1.187 MB / 489.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001007/1.045, allocations: 0.554 MB / 490 MB, free: 12.04 MB / 346.7 MB Notification: Performance of SimCode: time 1.182e-06/1.045, allocations: 4 kB / 490 MB, free: 12.04 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.421/4.466, allocations: 29.95 MB / 0.5078 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