Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.079/2.079, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.103e-05/4.119e-05, allocations: 4 kB / 292.2 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1172, allocations: 50.41 MB / 342.6 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4875/0.6048, allocations: 104.5 MB / 447.1 MB, free: 5.621 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.6051, allocations: 78.73 kB / 447.2 MB, free: 5.582 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8195/1.425, allocations: 143.2 MB / 0.5765 GB, free: 100.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.425, allocations: 0 / 0.5765 GB, free: 100.5 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002819/1.425, allocations: 45.72 kB / 0.5766 GB, free: 100.5 MB / 442.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.009132/1.434, allocations: 2.785 MB / 0.5793 GB, free: 98.76 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.129e-05/1.434, allocations: 10.31 kB / 0.5793 GB, free: 98.76 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003817/1.435, allocations: 98.16 kB / 0.5794 GB, free: 98.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009213/1.436, allocations: 417.5 kB / 0.5798 GB, free: 98.47 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007502/1.443, allocations: 2.413 MB / 0.5821 GB, free: 97.36 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.255e-05/1.443, allocations: 35.28 kB / 0.5822 GB, free: 97.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003562/1.444, allocations: 53.41 kB / 0.5822 GB, free: 97.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002044/1.446, allocations: 0.7838 MB / 0.583 GB, free: 96.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/1.446, allocations: 0 / 0.583 GB, free: 96.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/1.446, allocations: 31.75 kB / 0.583 GB, free: 96.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.001e-05/1.446, allocations: 15.59 kB / 0.583 GB, free: 96.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/1.448, allocations: 0.7041 MB / 0.5837 GB, free: 96.72 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01321/1.461, allocations: 3.283 MB / 0.5869 GB, free: 95.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001921/1.463, allocations: 484.7 kB / 0.5874 GB, free: 94.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001978/1.465, allocations: 0.5907 MB / 0.588 GB, free: 94.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06082/1.526, allocations: 36.11 MB / 0.6232 GB, free: 59.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007217/1.527, allocations: 317.4 kB / 0.6235 GB, free: 59.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 4.638e-06/1.527, allocations: 0 / 0.6235 GB, free: 59.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002125/1.529, allocations: 0.8124 MB / 0.6243 GB, free: 58.79 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/1.529, allocations: 273 kB / 0.6246 GB, free: 58.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006312/1.535, allocations: 2.654 MB / 0.6272 GB, free: 55.81 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001955/1.536, allocations: 33.7 kB / 0.6272 GB, free: 55.77 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002082/1.538, allocations: 1.58 MB / 0.6287 GB, free: 54.18 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003225/1.538, allocations: 165.5 kB / 0.6289 GB, free: 54.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.97e-05/1.538, allocations: 19.94 kB / 0.6289 GB, free: 54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.779e-05/1.538, allocations: 341.9 kB / 0.6292 GB, free: 53.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005435/1.539, allocations: 186 kB / 0.6294 GB, free: 53.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007412/1.54, allocations: 0.5994 MB / 0.63 GB, free: 52.68 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007293/1.54, allocations: 283.5 kB / 0.6303 GB, free: 52.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/1.54, allocations: 4 kB / 0.6303 GB, free: 52.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002965/1.543, allocations: 1.1 MB / 0.6314 GB, free: 51.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/1.543, allocations: 19.92 kB / 0.6314 GB, free: 51.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001692/1.544, allocations: 80 kB / 0.6315 GB, free: 51.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.752e-05/1.544, allocations: 23.98 kB / 0.6315 GB, free: 51.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/1.545, allocations: 212.2 kB / 0.6317 GB, free: 50.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.475e-05/1.545, allocations: 23.94 kB / 0.6317 GB, free: 50.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002536/1.548, allocations: 127 kB / 0.6318 GB, free: 50.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002784/1.548, allocations: 67.95 kB / 0.6319 GB, free: 50.76 MB / 442.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.0002688/1.548, allocations: 168.3 kB / 0.632 GB, free: 50.59 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008449/1.549, allocations: 399.1 kB / 0.6324 GB, free: 50.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004825/1.554, allocations: 1.148 MB / 0.6335 GB, free: 49.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/1.554, allocations: 4 kB / 0.6336 GB, free: 49.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/1.554, allocations: 0 / 0.6336 GB, free: 49.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.677e-06/1.554, allocations: 3.984 kB / 0.6336 GB, free: 49.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005865/1.56, allocations: 2.189 MB / 0.6357 GB, free: 46.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001404/1.56, allocations: 71.98 kB / 0.6358 GB, free: 46.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000945/1.561, allocations: 111.8 kB / 0.6359 GB, free: 46.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.326e-05/1.561, allocations: 7.938 kB / 0.6359 GB, free: 46.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/1.561, allocations: 32 kB / 0.6359 GB, free: 46.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/1.561, allocations: 0 / 0.6359 GB, free: 46.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/1.561, allocations: 7.953 kB / 0.6359 GB, free: 46.58 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002654/1.564, allocations: 1.23 MB / 0.6371 GB, free: 45.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00174/1.566, allocations: 0.5116 MB / 0.6376 GB, free: 44.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001016/1.567, allocations: 8 kB / 0.6376 GB, free: 44.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002045/1.569, allocations: 59.44 kB / 0.6377 GB, free: 44.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003077/1.569, allocations: 55.94 kB / 0.6377 GB, free: 44.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/1.57, allocations: 39.98 kB / 0.6378 GB, free: 44.61 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004939/1.575, allocations: 2.018 MB / 0.6397 GB, free: 42.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.062e-06/1.575, allocations: 4 kB / 0.6397 GB, free: 42.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002743/1.577, allocations: 0.6672 MB / 0.6404 GB, free: 41.93 MB / 442.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.004633/1.582, allocations: 2.66 MB / 0.643 GB, free: 39.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001746/1.584, allocations: 0.6967 MB / 0.6437 GB, free: 38.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/1.584, allocations: 0 / 0.6437 GB, free: 38.69 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007815/1.585, allocations: 391.1 kB / 0.644 GB, free: 38.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005019/1.59, allocations: 0.6154 MB / 0.6447 GB, free: 37.67 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/1.601, allocations: 3.779 MB / 0.6483 GB, free: 33.83 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001547/1.603, allocations: 1.777 MB / 0.6501 GB, free: 32.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002574/1.605, allocations: 386.7 kB / 0.6504 GB, free: 31.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003243/1.609, allocations: 1.249 MB / 0.6517 GB, free: 30.39 MB / 442.7 MB Notification: Performance of SimCode: time 3.647e-06/1.609, allocations: 0 / 0.6517 GB, free: 30.39 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5161/2.125, allocations: 61.89 MB / 0.7121 GB, free: 102.3 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/2.125, allocations: 156.9 kB / 0.7123 GB, free: 102.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.296/8.422, allocations: 4 kB / 0.7123 GB, free: 102.1 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat