Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.056/2.056, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.943e-05/3.955e-05, allocations: 4 kB / 292.2 MB, free: 8.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1457, allocations: 50.4 MB / 342.6 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4852/0.6309, allocations: 104.4 MB / 447.1 MB, free: 6.035 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.6313, allocations: 76.36 kB / 447.1 MB, free: 5.996 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7835/1.415, allocations: 141 MB / 0.5744 GB, free: 100.2 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.499e-05/1.415, allocations: 0 / 0.5744 GB, free: 100.2 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002518/1.415, allocations: 43.34 kB / 0.5744 GB, free: 100.2 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.007413/1.423, allocations: 2.696 MB / 0.577 GB, free: 98.55 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.797e-05/1.423, allocations: 15.22 kB / 0.5771 GB, free: 98.54 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004114/1.423, allocations: 100.2 kB / 0.5771 GB, free: 98.47 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009298/1.424, allocations: 401.6 kB / 0.5775 GB, free: 98.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007211/1.431, allocations: 2.345 MB / 0.5798 GB, free: 97.18 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.907e-05/1.431, allocations: 36.94 kB / 0.5799 GB, free: 97.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002928/1.432, allocations: 63.02 kB / 0.5799 GB, free: 97.14 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00187/1.434, allocations: 0.7834 MB / 0.5807 GB, free: 96.77 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/1.434, allocations: 0 / 0.5807 GB, free: 96.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/1.434, allocations: 22.41 kB / 0.5807 GB, free: 96.76 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.253e-05/1.434, allocations: 21.33 kB / 0.5807 GB, free: 96.75 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/1.436, allocations: 0.7028 MB / 0.5814 GB, free: 96.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01/1.446, allocations: 3.182 MB / 0.5845 GB, free: 95.03 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/1.447, allocations: 486.8 kB / 0.585 GB, free: 94.79 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/1.448, allocations: 0.59 MB / 0.5856 GB, free: 94.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04909/1.497, allocations: 36.08 MB / 0.6208 GB, free: 62.35 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006979/1.498, allocations: 317.5 kB / 0.6211 GB, free: 62.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 4.148e-06/1.498, allocations: 0 / 0.6211 GB, free: 62.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002079/1.5, allocations: 0.797 MB / 0.6219 GB, free: 61.22 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/1.5, allocations: 269 kB / 0.6221 GB, free: 60.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005854/1.506, allocations: 2.507 MB / 0.6246 GB, free: 58.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000216/1.507, allocations: 37.7 kB / 0.6246 GB, free: 58.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003239/1.51, allocations: 1.497 MB / 0.6261 GB, free: 56.83 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003288/1.51, allocations: 166.3 kB / 0.6262 GB, free: 56.67 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.762e-05/1.51, allocations: 16 kB / 0.6262 GB, free: 56.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.77e-05/1.51, allocations: 341.9 kB / 0.6266 GB, free: 56.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005507/1.511, allocations: 190 kB / 0.6268 GB, free: 56.13 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007101/1.512, allocations: 0.5873 MB / 0.6273 GB, free: 55.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006663/1.512, allocations: 287.6 kB / 0.6276 GB, free: 55.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/1.512, allocations: 8 kB / 0.6276 GB, free: 55.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002701/1.515, allocations: 1.085 MB / 0.6287 GB, free: 53.97 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.614e-05/1.515, allocations: 11.98 kB / 0.6287 GB, free: 53.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001685/1.515, allocations: 83.27 kB / 0.6288 GB, free: 53.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.784e-05/1.515, allocations: 20 kB / 0.6288 GB, free: 53.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/1.517, allocations: 216.1 kB / 0.629 GB, free: 53.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.237e-05/1.517, allocations: 23.88 kB / 0.629 GB, free: 53.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002409/1.519, allocations: 123 kB / 0.6291 GB, free: 53.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002663/1.52, allocations: 71.95 kB / 0.6292 GB, free: 53.44 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.0002597/1.52, allocations: 164.6 kB / 0.6293 GB, free: 53.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007953/1.521, allocations: 379.4 kB / 0.6297 GB, free: 52.89 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004655/1.525, allocations: 1.151 MB / 0.6308 GB, free: 51.75 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/1.526, allocations: 4 kB / 0.6308 GB, free: 51.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/1.526, allocations: 0 / 0.6308 GB, free: 51.75 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/1.526, allocations: 0 / 0.6308 GB, free: 51.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005574/1.531, allocations: 2.108 MB / 0.6329 GB, free: 49.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001432/1.531, allocations: 67.98 kB / 0.633 GB, free: 49.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009336/1.532, allocations: 103.9 kB / 0.6331 GB, free: 49.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-05/1.532, allocations: 4 kB / 0.6331 GB, free: 49.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/1.532, allocations: 31.98 kB / 0.6331 GB, free: 49.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.285e-06/1.532, allocations: 4 kB / 0.6331 GB, free: 49.37 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.532, allocations: 3.953 kB / 0.6331 GB, free: 49.37 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002462/1.535, allocations: 1.21 MB / 0.6343 GB, free: 48.12 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001661/1.537, allocations: 0.5568 MB / 0.6348 GB, free: 47.52 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008635/1.538, allocations: 8 kB / 0.6348 GB, free: 47.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001933/1.54, allocations: 48.02 kB / 0.6349 GB, free: 47.47 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002969/1.54, allocations: 59.94 kB / 0.6349 GB, free: 47.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/1.54, allocations: 39.98 kB / 0.635 GB, free: 47.37 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004514/1.545, allocations: 1.906 MB / 0.6368 GB, free: 45.46 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.545, allocations: 0 / 0.6368 GB, free: 45.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002684/1.547, allocations: 0.6439 MB / 0.6375 GB, free: 44.82 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.00455/1.552, allocations: 2.615 MB / 0.64 GB, free: 42.33 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001745/1.554, allocations: 0.685 MB / 0.6407 GB, free: 41.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/1.554, allocations: 8.25 kB / 0.6407 GB, free: 41.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007566/1.554, allocations: 387.1 kB / 0.6411 GB, free: 41.21 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004793/1.559, allocations: 0.5899 MB / 0.6416 GB, free: 40.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/1.57, allocations: 3.635 MB / 0.6452 GB, free: 36.95 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001304/1.572, allocations: 1.724 MB / 0.6469 GB, free: 35.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002524/1.574, allocations: 378.4 kB / 0.6472 GB, free: 34.82 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002033/1.576, allocations: 1.214 MB / 0.6484 GB, free: 33.61 MB / 442.7 MB Notification: Performance of SimCode: time 2.274e-06/1.576, allocations: 0 / 0.6484 GB, free: 33.61 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4957/2.072, allocations: 58.65 MB / 0.7057 GB, free: 110.5 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/2.072, allocations: 159.1 kB / 0.7059 GB, free: 110.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.812/7.884, allocations: 0 / 0.7059 GB, free: 110.3 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat