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.078/2.078, allocations: 194.9 MB / 208.5 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.534e-05/3.543e-05, allocations: 4 kB / 255.4 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09578/0.09585, allocations: 44.5 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4499/0.5458, allocations: 97.93 MB / 397.9 MB, free: 12.2 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.5462, allocations: 68.34 kB / 398 MB, free: 12.19 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9256/1.472, allocations: 193.3 MB / 0.5774 GB, free: 69.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.744e-06/1.472, allocations: 4 kB / 0.5774 GB, free: 69.87 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001474/1.472, allocations: 87.94 kB / 0.5775 GB, free: 69.87 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.01203/1.484, allocations: 4.67 MB / 0.5821 GB, free: 67.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/1.484, allocations: 10.41 kB / 0.5821 GB, free: 67.43 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006057/1.485, allocations: 162.8 kB / 0.5822 GB, free: 67.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001506/1.486, allocations: 0.7567 MB / 0.583 GB, free: 66.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01254/1.499, allocations: 4.509 MB / 0.5874 GB, free: 65.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.888e-05/1.499, allocations: 63.53 kB / 0.5874 GB, free: 65.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006315/1.5, allocations: 103.9 kB / 0.5875 GB, free: 65.9 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004022/1.504, allocations: 1.439 MB / 0.5889 GB, free: 65.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.784e-05/1.504, allocations: 0 / 0.5889 GB, free: 65.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002183/1.504, allocations: 37.84 kB / 0.589 GB, free: 65.43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.449e-05/1.504, allocations: 39.06 kB / 0.589 GB, free: 65.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003744/1.508, allocations: 1.351 MB / 0.5903 GB, free: 65.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01874/1.527, allocations: 5.873 MB / 0.5961 GB, free: 62.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002068/1.529, allocations: 0.8732 MB / 0.5969 GB, free: 61.94 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002322/1.531, allocations: 1.162 MB / 0.5981 GB, free: 61.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09514/1.626, allocations: 71.9 MB / 0.6683 GB, free: 8.512 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/1.627, allocations: 0.511 MB / 0.6688 GB, free: 7.992 MB / 426.7 MB Notification: Performance of pre-optimization done (n=85): time 4.919e-06/1.627, allocations: 0 / 0.6688 GB, free: 7.992 MB / 426.7 MB Notification: Performance of matching and sorting (n=85): time 0.004025/1.631, allocations: 1.463 MB / 0.6702 GB, free: 6.516 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002458/1.632, allocations: 479.2 kB / 0.6706 GB, free: 5.938 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01269/1.644, allocations: 4.795 MB / 0.6753 GB, free: 1.176 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003336/1.645, allocations: 41.7 kB / 0.6754 GB, free: 1.129 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2998/1.945, allocations: 2.369 MB / 0.6777 GB, free: 87.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006901/1.945, allocations: 298.2 kB / 0.678 GB, free: 87.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/1.946, allocations: 30.31 kB / 0.678 GB, free: 87.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/1.946, allocations: 370.3 kB / 0.6784 GB, free: 87.25 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/1.947, allocations: 344.3 kB / 0.6787 GB, free: 87.25 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002022/1.949, allocations: 1.116 MB / 0.6798 GB, free: 86.26 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/1.951, allocations: 0.5158 MB / 0.6803 GB, free: 86.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.83e-05/1.951, allocations: 6.281 kB / 0.6803 GB, free: 86.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004935/1.956, allocations: 1.422 MB / 0.6817 GB, free: 86.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.963e-05/1.956, allocations: 20.16 kB / 0.6817 GB, free: 86.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004253/1.956, allocations: 160.9 kB / 0.6818 GB, free: 86.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.503e-05/1.956, allocations: 36.38 kB / 0.6819 GB, free: 86.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002584/1.959, allocations: 371 kB / 0.6822 GB, free: 86.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.228e-05/1.959, allocations: 48.86 kB / 0.6823 GB, free: 86.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004367/1.964, allocations: 204 kB / 0.6825 GB, free: 86.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005878/1.964, allocations: 126.2 kB / 0.6826 GB, free: 86.12 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.0004495/1.965, allocations: 220.8 kB / 0.6828 GB, free: 86.01 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001685/1.966, allocations: 0.7203 MB / 0.6835 GB, free: 85.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009747/1.976, allocations: 2.134 MB / 0.6856 GB, free: 85.51 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/1.976, allocations: 9.391 kB / 0.6856 GB, free: 85.51 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/1.976, allocations: 0 / 0.6856 GB, free: 85.51 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.615e-05/1.976, allocations: 10.5 kB / 0.6856 GB, free: 85.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01273/1.989, allocations: 3.735 MB / 0.6893 GB, free: 85.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003024/1.989, allocations: 139.1 kB / 0.6894 GB, free: 85.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/1.991, allocations: 167.2 kB / 0.6895 GB, free: 85.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.598e-05/1.991, allocations: 3.375 kB / 0.6896 GB, free: 85.05 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000244/1.991, allocations: 61.44 kB / 0.6896 GB, free: 85.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.928e-06/1.991, allocations: 5.828 kB / 0.6896 GB, free: 85.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.991, allocations: 0 / 0.6896 GB, free: 85.05 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004526/1.996, allocations: 2.103 MB / 0.6917 GB, free: 84.35 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00328/1.999, allocations: 0.932 MB / 0.6926 GB, free: 83.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001739/2.001, allocations: 20.28 kB / 0.6926 GB, free: 83.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003503/2.004, allocations: 56.25 kB / 0.6927 GB, free: 83.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005354/2.005, allocations: 97.52 kB / 0.6927 GB, free: 83.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002656/2.005, allocations: 72.09 kB / 0.6928 GB, free: 83.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01031/2.016, allocations: 3.638 MB / 0.6964 GB, free: 83.53 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.51e-07/2.016, allocations: 0 / 0.6964 GB, free: 83.53 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005087/2.021, allocations: 1.173 MB / 0.6975 GB, free: 83.52 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.008589/2.029, allocations: 3.88 MB / 0.7013 GB, free: 82.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003557/2.033, allocations: 1.287 MB / 0.7026 GB, free: 82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/2.033, allocations: 0 / 0.7026 GB, free: 82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/2.035, allocations: 0.7124 MB / 0.7033 GB, free: 81.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006152/2.041, allocations: 0.958 MB / 0.7042 GB, free: 81.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02117/2.062, allocations: 7.086 MB / 0.7111 GB, free: 79.69 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003956/2.066, allocations: 2.724 MB / 0.7138 GB, free: 78.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004382/2.07, allocations: 2.444 MB / 0.7162 GB, free: 78.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.573e-06/2.07, allocations: 0 / 0.7162 GB, free: 78.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.374/6.445, allocations: 90.53 MB / 0.8046 GB, free: 23.52 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