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.971/1.971, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.225e-05/4.229e-05, allocations: 3.984 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3049, allocations: 38.78 MB / 263.8 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1716/0.4765, allocations: 93.98 MB / 357.8 MB, free: 11.62 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/0.4769, allocations: 71.97 kB / 357.9 MB, free: 11.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7205/1.197, allocations: 129.2 MB / 487.1 MB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.884e-06/1.197, allocations: 0 / 487.1 MB, free: 1.516 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001034/1.198, allocations: 48 kB / 487.2 MB, free: 1.469 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.008431/1.206, allocations: 2.796 MB / 490 MB, free: 14.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.278e-05/1.206, allocations: 8.031 kB / 490 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004433/1.207, allocations: 102.5 kB / 490.1 MB, free: 14.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00101/1.208, allocations: 414.9 kB / 490.5 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007863/1.215, allocations: 2.429 MB / 492.9 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.564e-05/1.216, allocations: 40.78 kB / 493 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003183/1.216, allocations: 55.91 kB / 493 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/1.218, allocations: 0.7813 MB / 493.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.507e-05/1.218, allocations: 0 / 493.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001315/1.219, allocations: 27.94 kB / 493.8 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.902e-05/1.219, allocations: 23.92 kB / 493.9 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002245/1.221, allocations: 0.7052 MB / 494.6 MB, free: 9.926 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01195/1.233, allocations: 3.279 MB / 497.8 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/1.234, allocations: 487.8 kB / 498.3 MB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001497/1.236, allocations: 0.5928 MB / 498.9 MB, free: 5.477 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3139/1.55, allocations: 36.21 MB / 0.5226 GB, free: 34.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000776/1.551, allocations: 317.1 kB / 0.5229 GB, free: 34.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.759e-06/1.551, allocations: 0 / 0.5229 GB, free: 34.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.00217/1.553, allocations: 0.8201 MB / 0.5237 GB, free: 33.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/1.553, allocations: 271.5 kB / 0.5239 GB, free: 33.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006442/1.56, allocations: 2.662 MB / 0.5265 GB, free: 33.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002118/1.56, allocations: 35.7 kB / 0.5266 GB, free: 33.33 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001732/1.562, allocations: 1.303 MB / 0.5278 GB, free: 33.06 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003508/1.562, allocations: 174.4 kB / 0.528 GB, free: 32.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.284e-05/1.562, allocations: 13.88 kB / 0.528 GB, free: 32.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.806e-05/1.562, allocations: 346.9 kB / 0.5283 GB, free: 32.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005483/1.563, allocations: 187.7 kB / 0.5285 GB, free: 32.67 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007892/1.564, allocations: 0.5912 MB / 0.5291 GB, free: 32.15 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006977/1.564, allocations: 285.5 kB / 0.5294 GB, free: 32.15 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/1.564, allocations: 3.531 kB / 0.5294 GB, free: 32.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001995/1.566, allocations: 0.7766 MB / 0.5301 GB, free: 32.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.731e-05/1.566, allocations: 14.09 kB / 0.5302 GB, free: 32.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001586/1.567, allocations: 79.08 kB / 0.5302 GB, free: 32.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.737e-05/1.567, allocations: 23.59 kB / 0.5302 GB, free: 32.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/1.568, allocations: 214.8 kB / 0.5305 GB, free: 32.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.448e-05/1.568, allocations: 22.25 kB / 0.5305 GB, free: 32.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002323/1.57, allocations: 127.4 kB / 0.5306 GB, free: 32.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002798/1.571, allocations: 67.45 kB / 0.5307 GB, free: 32.06 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.0002878/1.571, allocations: 170.6 kB / 0.5308 GB, free: 31.95 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009077/1.572, allocations: 404.4 kB / 0.5312 GB, free: 31.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004863/1.577, allocations: 1.152 MB / 0.5323 GB, free: 31.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/1.577, allocations: 3.781 kB / 0.5323 GB, free: 31.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/1.577, allocations: 3.656 kB / 0.5323 GB, free: 31.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/1.577, allocations: 3.688 kB / 0.5323 GB, free: 31.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005953/1.583, allocations: 2.201 MB / 0.5345 GB, free: 31.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001458/1.583, allocations: 67.86 kB / 0.5346 GB, free: 31.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009619/1.584, allocations: 106.9 kB / 0.5347 GB, free: 31.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-05/1.584, allocations: 9.281 kB / 0.5347 GB, free: 31.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000142/1.584, allocations: 33.03 kB / 0.5347 GB, free: 31.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.341e-06/1.584, allocations: 0 / 0.5347 GB, free: 31.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/1.584, allocations: 3.906 kB / 0.5347 GB, free: 31.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/1.587, allocations: 1.24 MB / 0.5359 GB, free: 30.81 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001607/1.589, allocations: 0.5094 MB / 0.5364 GB, free: 30.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009263/1.59, allocations: 20.83 kB / 0.5364 GB, free: 30.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002095/1.592, allocations: 42.09 kB / 0.5365 GB, free: 30.51 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003256/1.592, allocations: 59.47 kB / 0.5365 GB, free: 30.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/1.592, allocations: 40.7 kB / 0.5366 GB, free: 30.51 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005029/1.597, allocations: 2.028 MB / 0.5385 GB, free: 30.31 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.12e-07/1.597, allocations: 0 / 0.5385 GB, free: 30.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002808/1.6, allocations: 0.6672 MB / 0.5392 GB, free: 30.3 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.004783/1.605, allocations: 2.677 MB / 0.5418 GB, free: 29.24 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001839/1.607, allocations: 0.6917 MB / 0.5425 GB, free: 29.11 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/1.607, allocations: 0 / 0.5425 GB, free: 29.11 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007795/1.608, allocations: 392.7 kB / 0.5429 GB, free: 28.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003391/1.611, allocations: 0.5143 MB / 0.5434 GB, free: 28.94 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/1.623, allocations: 3.882 MB / 0.5472 GB, free: 27.81 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001816/1.625, allocations: 1.783 MB / 0.5489 GB, free: 27.08 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002262/1.627, allocations: 1.264 MB / 0.5501 GB, free: 27.07 MB / 346.7 MB Notification: Performance of SimCode: time 1.623e-06/1.628, allocations: 0 / 0.5501 GB, free: 27.07 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.693/5.32, allocations: 50.36 MB / 0.5993 GB, free: 12.53 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