Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.038/2.038, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.142e-05/3.169e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09242/0.09248, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4275/0.52, allocations: 97.93 MB / 397.9 MB, free: 12.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.5203, allocations: 73.34 kB / 397.9 MB, free: 12.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9345/1.455, allocations: 193.3 MB / 0.5774 GB, free: 70.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.455, allocations: 0 / 0.5774 GB, free: 70.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001359/1.455, allocations: 85.91 kB / 0.5775 GB, free: 70.27 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01154/1.467, allocations: 4.677 MB / 0.582 GB, free: 67.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/1.467, allocations: 7.281 kB / 0.5821 GB, free: 67.82 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005755/1.467, allocations: 167.2 kB / 0.5822 GB, free: 67.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001433/1.469, allocations: 0.7541 MB / 0.5829 GB, free: 67.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01242/1.481, allocations: 4.511 MB / 0.5874 GB, free: 66.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.94e-05/1.481, allocations: 68.06 kB / 0.5874 GB, free: 66.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004633/1.482, allocations: 99.47 kB / 0.5875 GB, free: 66.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003303/1.485, allocations: 1.448 MB / 0.5889 GB, free: 65.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.448e-05/1.485, allocations: 0 / 0.5889 GB, free: 65.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001999/1.485, allocations: 35.59 kB / 0.589 GB, free: 65.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.717e-05/1.485, allocations: 38.61 kB / 0.589 GB, free: 65.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003328/1.489, allocations: 1.367 MB / 0.5903 GB, free: 65.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01805/1.507, allocations: 5.872 MB / 0.5961 GB, free: 62.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002036/1.509, allocations: 0.8858 MB / 0.5969 GB, free: 62.19 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002211/1.511, allocations: 1.157 MB / 0.5981 GB, free: 61.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09147/1.603, allocations: 71.89 MB / 0.6683 GB, free: 8.805 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001139/1.604, allocations: 0.504 MB / 0.6688 GB, free: 8.293 MB / 426.7 MB Notification: Performance of pre-optimization done (n=85): time 4.228e-06/1.604, allocations: 0 / 0.6688 GB, free: 8.293 MB / 426.7 MB Notification: Performance of matching and sorting (n=85): time 0.004019/1.608, allocations: 1.467 MB / 0.6702 GB, free: 6.812 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002408/1.608, allocations: 487.1 kB / 0.6707 GB, free: 6.227 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01163/1.62, allocations: 4.795 MB / 0.6753 GB, free: 1.465 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00028/1.62, allocations: 45.7 kB / 0.6754 GB, free: 1.414 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.298/1.918, allocations: 2.354 MB / 0.6777 GB, free: 87.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005772/1.919, allocations: 297.2 kB / 0.678 GB, free: 87.76 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/1.919, allocations: 28.31 kB / 0.678 GB, free: 87.76 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/1.919, allocations: 369.3 kB / 0.6783 GB, free: 87.45 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/1.92, allocations: 344.7 kB / 0.6787 GB, free: 87.45 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/1.922, allocations: 1.123 MB / 0.6798 GB, free: 86.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/1.923, allocations: 0.5146 MB / 0.6803 GB, free: 86.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.323e-05/1.923, allocations: 7.125 kB / 0.6803 GB, free: 86.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004005/1.927, allocations: 1.488 MB / 0.6817 GB, free: 86.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.53e-05/1.927, allocations: 16.03 kB / 0.6817 GB, free: 86.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003567/1.928, allocations: 163 kB / 0.6819 GB, free: 86.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.554e-05/1.928, allocations: 38.19 kB / 0.6819 GB, free: 86.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002311/1.93, allocations: 372.1 kB / 0.6823 GB, free: 86.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.277e-05/1.93, allocations: 47.38 kB / 0.6823 GB, free: 86.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003812/1.934, allocations: 208.9 kB / 0.6825 GB, free: 86.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005412/1.935, allocations: 123.7 kB / 0.6827 GB, free: 86.31 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0004678/1.935, allocations: 218 kB / 0.6829 GB, free: 86.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001646/1.937, allocations: 0.7236 MB / 0.6836 GB, free: 85.83 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009395/1.946, allocations: 2.136 MB / 0.6857 GB, free: 85.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/1.946, allocations: 9.172 kB / 0.6857 GB, free: 85.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/1.946, allocations: 0 / 0.6857 GB, free: 85.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/1.946, allocations: 6.469 kB / 0.6857 GB, free: 85.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/1.959, allocations: 3.732 MB / 0.6893 GB, free: 85.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0004897/1.959, allocations: 138.5 kB / 0.6894 GB, free: 85.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002127/1.961, allocations: 166 kB / 0.6896 GB, free: 85.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.963e-05/1.961, allocations: 7.781 kB / 0.6896 GB, free: 85.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000427/1.962, allocations: 59.55 kB / 0.6897 GB, free: 85.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.562e-05/1.962, allocations: 4.219 kB / 0.6897 GB, free: 85.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.962, allocations: 2.953 kB / 0.6897 GB, free: 85.24 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007321/1.969, allocations: 2.107 MB / 0.6917 GB, free: 84.54 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004749/1.974, allocations: 0.9301 MB / 0.6926 GB, free: 84.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002756/1.977, allocations: 28.95 kB / 0.6927 GB, free: 84.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005407/1.982, allocations: 53.61 kB / 0.6927 GB, free: 84.01 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006468/1.983, allocations: 99.59 kB / 0.6928 GB, free: 84.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002688/1.983, allocations: 67.09 kB / 0.6929 GB, free: 84.01 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01436/1.998, allocations: 3.642 MB / 0.6964 GB, free: 83.72 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.463e-06/1.998, allocations: 0 / 0.6964 GB, free: 83.72 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007752/2.006, allocations: 1.171 MB / 0.6976 GB, free: 83.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01083/2.016, allocations: 3.88 MB / 0.7014 GB, free: 82.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0051/2.022, allocations: 1.319 MB / 0.7027 GB, free: 82.19 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.616e-05/2.022, allocations: 7.016 kB / 0.7027 GB, free: 82.19 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002497/2.024, allocations: 0.7223 MB / 0.7034 GB, free: 81.94 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007978/2.032, allocations: 0.9548 MB / 0.7043 GB, free: 81.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02765/2.06, allocations: 7.091 MB / 0.7112 GB, free: 79.88 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004918/2.065, allocations: 2.721 MB / 0.7139 GB, free: 79.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005502/2.07, allocations: 2.442 MB / 0.7163 GB, free: 79.09 MB / 426.7 MB Notification: Performance of SimCode: time 1.933e-06/2.071, allocations: 0 / 0.7163 GB, free: 79.09 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.576/6.646, allocations: 90.91 MB / 0.805 GB, free: 23.25 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat