Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.041/2.041, allocations: 225.8 MB / 238.8 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.036e-05/3.026e-05, allocations: 0 / 292.2 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1171, allocations: 50.41 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4809/0.598, allocations: 104.6 MB / 447.2 MB, free: 5.496 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.5983, allocations: 74.83 kB / 447.3 MB, free: 5.457 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.062/1.66, allocations: 219.8 MB / 0.6514 GB, free: 36.57 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.856e-06/1.66, allocations: 0 / 0.6514 GB, free: 36.57 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004685/1.661, allocations: 88 kB / 0.6515 GB, free: 36.48 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.0115/1.672, allocations: 4.654 MB / 0.6561 GB, free: 31.77 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/1.672, allocations: 11.97 kB / 0.6561 GB, free: 31.76 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005403/1.673, allocations: 157.2 kB / 0.6562 GB, free: 31.59 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001394/1.674, allocations: 0.7509 MB / 0.657 GB, free: 30.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01283/1.687, allocations: 4.473 MB / 0.6613 GB, free: 26.28 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.44e-05/1.687, allocations: 69.95 kB / 0.6614 GB, free: 26.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003589/1.688, allocations: 103.8 kB / 0.6615 GB, free: 26.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003016/1.691, allocations: 1.433 MB / 0.6629 GB, free: 24.6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/1.691, allocations: 0 / 0.6629 GB, free: 24.6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001926/1.691, allocations: 40 kB / 0.6629 GB, free: 24.56 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.444e-05/1.691, allocations: 35.97 kB / 0.663 GB, free: 24.53 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00292/1.694, allocations: 1.355 MB / 0.6643 GB, free: 23.17 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0151/1.709, allocations: 5.851 MB / 0.67 GB, free: 17.23 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002589/1.712, allocations: 0.8758 MB / 0.6709 GB, free: 16.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00277/1.715, allocations: 1.168 MB / 0.672 GB, free: 15.18 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4317/2.146, allocations: 71.67 MB / 0.742 GB, free: 21.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/2.147, allocations: 0.5009 MB / 0.7425 GB, free: 21.83 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 4.088e-06/2.147, allocations: 0 / 0.7425 GB, free: 21.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.003366/2.151, allocations: 1.46 MB / 0.7439 GB, free: 21.42 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/2.151, allocations: 484 kB / 0.7444 GB, free: 20.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01095/2.162, allocations: 4.764 MB / 0.749 GB, free: 20.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002847/2.162, allocations: 39.95 kB / 0.7491 GB, free: 20.37 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003481/2.166, allocations: 2.945 MB / 0.7519 GB, free: 20.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005231/2.166, allocations: 296.1 kB / 0.7522 GB, free: 19.88 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/2.167, allocations: 24.5 kB / 0.7523 GB, free: 19.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/2.167, allocations: 371 kB / 0.7526 GB, free: 19.57 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009236/2.168, allocations: 340.5 kB / 0.7529 GB, free: 19.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/2.169, allocations: 1.114 MB / 0.754 GB, free: 18.58 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/2.17, allocations: 0.52 MB / 0.7545 GB, free: 18.56 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.595e-05/2.17, allocations: 3.969 kB / 0.7545 GB, free: 18.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004643/2.175, allocations: 2.03 MB / 0.7565 GB, free: 18.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.747e-05/2.175, allocations: 15.56 kB / 0.7565 GB, free: 18.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002896/2.175, allocations: 156.9 kB / 0.7567 GB, free: 18.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.049e-05/2.175, allocations: 38.77 kB / 0.7567 GB, free: 18.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002395/2.178, allocations: 372.3 kB / 0.7571 GB, free: 18.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.075e-05/2.178, allocations: 47.7 kB / 0.7571 GB, free: 18.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004163/2.182, allocations: 206.5 kB / 0.7573 GB, free: 18.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005009/2.182, allocations: 124.7 kB / 0.7574 GB, free: 18.11 MB / 442.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.0004017/2.183, allocations: 216.2 kB / 0.7576 GB, free: 18.01 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/2.184, allocations: 0.719 MB / 0.7583 GB, free: 17.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008584/2.193, allocations: 2.119 MB / 0.7604 GB, free: 17.51 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/2.193, allocations: 9.188 kB / 0.7604 GB, free: 17.51 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/2.193, allocations: 7.234 kB / 0.7604 GB, free: 17.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/2.193, allocations: 3.938 kB / 0.7604 GB, free: 17.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/2.203, allocations: 3.705 MB / 0.764 GB, free: 33.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000268/2.204, allocations: 148.8 kB / 0.7642 GB, free: 33.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00146/2.205, allocations: 154.3 kB / 0.7643 GB, free: 33.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.264e-05/2.205, allocations: 9.938 kB / 0.7643 GB, free: 33.04 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001921/2.206, allocations: 63.3 kB / 0.7644 GB, free: 33.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.027e-06/2.206, allocations: 2.688 kB / 0.7644 GB, free: 33.04 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/2.206, allocations: 4.156 kB / 0.7644 GB, free: 33.04 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004269/2.21, allocations: 2.095 MB / 0.7665 GB, free: 32.34 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002851/2.213, allocations: 0.9288 MB / 0.7674 GB, free: 31.81 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001627/2.214, allocations: 17.22 kB / 0.7674 GB, free: 31.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00302/2.217, allocations: 56.56 kB / 0.7674 GB, free: 31.81 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004009/2.218, allocations: 95.7 kB / 0.7675 GB, free: 31.81 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001874/2.218, allocations: 71.23 kB / 0.7676 GB, free: 31.81 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009137/2.227, allocations: 3.616 MB / 0.7711 GB, free: 31.52 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.052e-06/2.227, allocations: 0 / 0.7711 GB, free: 31.52 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00458/2.232, allocations: 1.162 MB / 0.7723 GB, free: 31.51 MB / 458.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.007701/2.24, allocations: 3.874 MB / 0.776 GB, free: 30.25 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003038/2.243, allocations: 1.278 MB / 0.7773 GB, free: 29.99 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.014e-06/2.243, allocations: 1.969 kB / 0.7773 GB, free: 29.99 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/2.244, allocations: 0.7155 MB / 0.778 GB, free: 29.74 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008622/2.253, allocations: 1.155 MB / 0.7791 GB, free: 29.67 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01987/2.273, allocations: 6.934 MB / 0.7859 GB, free: 27.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003429/2.276, allocations: 2.709 MB / 0.7885 GB, free: 26.92 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00485/2.281, allocations: 0.7342 MB / 0.7893 GB, free: 26.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004029/2.285, allocations: 2.412 MB / 0.7916 GB, free: 26.86 MB / 458.7 MB Notification: Performance of SimCode: time 1.773e-06/2.285, allocations: 1.156 kB / 0.7916 GB, free: 26.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.612/2.897, allocations: 104.6 MB / 0.8937 GB, free: 91.86 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002573/2.897, allocations: 165.3 kB / 0.8939 GB, free: 91.63 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.742/12.64, allocations: 3.938 kB / 0.8939 GB, free: 91.63 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat