Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.809/1.809, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.221e-05/4.233e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.275, allocations: 38.77 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1849/0.46, allocations: 93.97 MB / 357.8 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.4604, allocations: 71.95 kB / 357.9 MB, free: 11.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.827/1.287, allocations: 129.2 MB / 487.1 MB, free: 1.719 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.265e-06/1.287, allocations: 0 / 487.1 MB, free: 1.719 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001256/1.288, allocations: 48 kB / 487.2 MB, free: 1.672 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.01014/1.298, allocations: 2.796 MB / 489.9 MB, free: 14.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.555e-05/1.298, allocations: 12.03 kB / 490 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003844/1.298, allocations: 106.5 kB / 490.1 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/1.299, allocations: 414.9 kB / 490.5 MB, free: 14.28 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009745/1.309, allocations: 2.421 MB / 492.9 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-05/1.309, allocations: 36.95 kB / 492.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000317/1.31, allocations: 59.89 kB / 493 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002814/1.312, allocations: 0.7833 MB / 493.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/1.313, allocations: 0 / 493.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001665/1.313, allocations: 23.98 kB / 493.8 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.295e-05/1.313, allocations: 19.98 kB / 493.8 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002619/1.315, allocations: 0.7188 MB / 494.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01389/1.329, allocations: 3.286 MB / 497.8 MB, free: 6.754 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001858/1.331, allocations: 493 kB / 498.3 MB, free: 6.262 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001888/1.333, allocations: 0.585 MB / 498.9 MB, free: 5.668 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3071/1.64, allocations: 36.22 MB / 0.5226 GB, free: 34.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006918/1.641, allocations: 314.7 kB / 0.5229 GB, free: 34.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.407e-06/1.641, allocations: 0 / 0.5229 GB, free: 34.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001924/1.643, allocations: 0.8238 MB / 0.5237 GB, free: 34.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.62e-05/1.643, allocations: 270.4 kB / 0.5239 GB, free: 33.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005166/1.648, allocations: 2.663 MB / 0.5265 GB, free: 33.62 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001701/1.649, allocations: 36.86 kB / 0.5266 GB, free: 33.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00151/1.65, allocations: 1.298 MB / 0.5278 GB, free: 33.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002923/1.65, allocations: 169.8 kB / 0.528 GB, free: 33.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.124e-05/1.651, allocations: 16.09 kB / 0.528 GB, free: 33.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.878e-05/1.651, allocations: 350.6 kB / 0.5283 GB, free: 32.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000542/1.651, allocations: 188.3 kB / 0.5285 GB, free: 32.92 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007614/1.652, allocations: 0.5971 MB / 0.5291 GB, free: 32.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006682/1.653, allocations: 278.4 kB / 0.5294 GB, free: 32.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/1.653, allocations: 3.938 kB / 0.5294 GB, free: 32.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001901/1.655, allocations: 0.8237 MB / 0.5302 GB, free: 32.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/1.655, allocations: 9.812 kB / 0.5302 GB, free: 32.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001705/1.655, allocations: 80.83 kB / 0.5303 GB, free: 32.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.531e-05/1.655, allocations: 21 kB / 0.5303 GB, free: 32.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/1.656, allocations: 215.8 kB / 0.5305 GB, free: 32.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.169e-05/1.656, allocations: 22.66 kB / 0.5305 GB, free: 32.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002212/1.659, allocations: 121.7 kB / 0.5306 GB, free: 32.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001943/1.659, allocations: 70.47 kB / 0.5307 GB, free: 32.32 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000277/1.659, allocations: 171.7 kB / 0.5309 GB, free: 32.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006181/1.66, allocations: 401.1 kB / 0.5312 GB, free: 32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004431/1.664, allocations: 1.152 MB / 0.5324 GB, free: 31.92 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/1.664, allocations: 7.188 kB / 0.5324 GB, free: 31.92 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/1.664, allocations: 0 / 0.5324 GB, free: 31.92 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/1.664, allocations: 3.891 kB / 0.5324 GB, free: 31.92 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004868/1.669, allocations: 2.204 MB / 0.5345 GB, free: 31.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001449/1.669, allocations: 70.84 kB / 0.5346 GB, free: 31.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009311/1.67, allocations: 101.3 kB / 0.5347 GB, free: 31.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-05/1.67, allocations: 5 kB / 0.5347 GB, free: 31.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.165e-05/1.67, allocations: 35.48 kB / 0.5347 GB, free: 31.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/1.67, allocations: 3.688 kB / 0.5347 GB, free: 31.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/1.67, allocations: 0 / 0.5347 GB, free: 31.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002414/1.673, allocations: 1.241 MB / 0.5359 GB, free: 31.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001428/1.674, allocations: 0.5153 MB / 0.5364 GB, free: 30.77 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005932/1.675, allocations: 14.3 kB / 0.5365 GB, free: 30.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001584/1.677, allocations: 47.19 kB / 0.5365 GB, free: 30.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/1.677, allocations: 59.38 kB / 0.5366 GB, free: 30.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001139/1.677, allocations: 40.72 kB / 0.5366 GB, free: 30.77 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004348/1.681, allocations: 2.029 MB / 0.5386 GB, free: 30.56 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.62e-07/1.681, allocations: 0 / 0.5386 GB, free: 30.56 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002561/1.684, allocations: 0.6649 MB / 0.5392 GB, free: 30.55 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004468/1.688, allocations: 2.682 MB / 0.5418 GB, free: 29.49 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001718/1.69, allocations: 0.71 MB / 0.5425 GB, free: 29.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.69, allocations: 0 / 0.5425 GB, free: 29.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007593/1.691, allocations: 391.4 kB / 0.5429 GB, free: 29.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003231/1.694, allocations: 0.5207 MB / 0.5434 GB, free: 29.2 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/1.705, allocations: 3.885 MB / 0.5472 GB, free: 28.06 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/1.706, allocations: 1.775 MB / 0.5489 GB, free: 27.33 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001904/1.708, allocations: 1.267 MB / 0.5502 GB, free: 27.32 MB / 346.7 MB Notification: Performance of SimCode: time 1.433e-06/1.708, allocations: 0 / 0.5502 GB, free: 27.32 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.452/5.16, allocations: 50.56 MB / 0.5996 GB, free: 12.45 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat