Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.74/1.74, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.446e-05/3.444e-05, allocations: 4 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2596, allocations: 38.76 MB / 263.9 MB, free: 9.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1858/0.4455, allocations: 94.11 MB / 358 MB, free: 11.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.4458, allocations: 75.94 kB / 358.1 MB, free: 11.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.131/1.577, allocations: 196.5 MB / 0.5415 GB, free: 46.03 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.063e-06/1.577, allocations: 0 / 0.5415 GB, free: 46.03 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001364/1.577, allocations: 87.66 kB / 0.5416 GB, free: 46.03 MB / 346.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.01225/1.59, allocations: 4.677 MB / 0.5462 GB, free: 43.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/1.59, allocations: 12.98 kB / 0.5462 GB, free: 43.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000618/1.59, allocations: 156.5 kB / 0.5463 GB, free: 43.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001643/1.592, allocations: 0.7488 MB / 0.5471 GB, free: 43.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01306/1.605, allocations: 4.51 MB / 0.5515 GB, free: 42.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/1.605, allocations: 70.92 kB / 0.5515 GB, free: 42.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006118/1.606, allocations: 101.5 kB / 0.5516 GB, free: 42.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003695/1.609, allocations: 1.433 MB / 0.553 GB, free: 41.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.598e-05/1.61, allocations: 7.281 kB / 0.553 GB, free: 41.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002168/1.61, allocations: 37.38 kB / 0.5531 GB, free: 41.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.054e-05/1.61, allocations: 47.47 kB / 0.5531 GB, free: 41.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003554/1.613, allocations: 1.351 MB / 0.5544 GB, free: 41.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01797/1.631, allocations: 5.861 MB / 0.5602 GB, free: 39.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002038/1.634, allocations: 0.8758 MB / 0.561 GB, free: 38.7 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002342/1.636, allocations: 1.158 MB / 0.5622 GB, free: 38.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3685/2.004, allocations: 71.89 MB / 0.6324 GB, free: 78.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001093/2.006, allocations: 0.4997 MB / 0.6329 GB, free: 78.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 5.17e-06/2.006, allocations: 0 / 0.6329 GB, free: 78.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.003687/2.009, allocations: 1.462 MB / 0.6343 GB, free: 77.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001569/2.009, allocations: 485.4 kB / 0.6347 GB, free: 77.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0112/2.021, allocations: 4.796 MB / 0.6394 GB, free: 76.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003251/2.021, allocations: 41.95 kB / 0.6395 GB, free: 76.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003931/2.025, allocations: 2.93 MB / 0.6423 GB, free: 76.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005699/2.026, allocations: 297.4 kB / 0.6426 GB, free: 76.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/2.026, allocations: 29.38 kB / 0.6426 GB, free: 76.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/2.026, allocations: 362.4 kB / 0.643 GB, free: 76.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009762/2.027, allocations: 340.9 kB / 0.6433 GB, free: 76 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/2.028, allocations: 1.115 MB / 0.6444 GB, free: 75.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/2.03, allocations: 0.5217 MB / 0.6449 GB, free: 75.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.368e-05/2.03, allocations: 7.562 kB / 0.6449 GB, free: 75.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005547/2.036, allocations: 2.034 MB / 0.6469 GB, free: 74.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/2.036, allocations: 17.31 kB / 0.6469 GB, free: 74.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003136/2.036, allocations: 168.3 kB / 0.6471 GB, free: 74.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.53e-05/2.036, allocations: 38.59 kB / 0.6471 GB, free: 74.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002235/2.038, allocations: 371.8 kB / 0.6475 GB, free: 74.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.133e-05/2.038, allocations: 47.86 kB / 0.6475 GB, free: 74.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003911/2.042, allocations: 203 kB / 0.6477 GB, free: 74.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004495/2.043, allocations: 120.9 kB / 0.6478 GB, free: 74.56 MB / 378.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.0004248/2.043, allocations: 216.2 kB / 0.648 GB, free: 74.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001512/2.045, allocations: 0.7278 MB / 0.6487 GB, free: 74.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008498/2.053, allocations: 2.139 MB / 0.6508 GB, free: 73.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/2.053, allocations: 6.969 kB / 0.6508 GB, free: 73.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/2.053, allocations: 0 / 0.6508 GB, free: 73.94 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/2.053, allocations: 2.766 kB / 0.6508 GB, free: 73.94 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/2.064, allocations: 3.74 MB / 0.6545 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002792/2.064, allocations: 137.8 kB / 0.6546 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001425/2.065, allocations: 164.9 kB / 0.6548 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.42e-05/2.065, allocations: 6.938 kB / 0.6548 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001701/2.066, allocations: 57.73 kB / 0.6548 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.277e-06/2.066, allocations: 3.5 kB / 0.6549 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/2.066, allocations: 0 / 0.6549 GB, free: 73.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004248/2.07, allocations: 2.097 MB / 0.6569 GB, free: 72.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00289/2.073, allocations: 0.9387 MB / 0.6578 GB, free: 72.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001668/2.075, allocations: 22.08 kB / 0.6578 GB, free: 72.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00324/2.078, allocations: 53.17 kB / 0.6579 GB, free: 72.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004328/2.078, allocations: 103.2 kB / 0.658 GB, free: 72.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001894/2.079, allocations: 67.72 kB / 0.6581 GB, free: 72.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.009246/2.088, allocations: 3.639 MB / 0.6616 GB, free: 71.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.372e-06/2.088, allocations: 0.9062 kB / 0.6616 GB, free: 71.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004412/2.092, allocations: 1.178 MB / 0.6628 GB, free: 71.95 MB / 378.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.006971/2.099, allocations: 3.875 MB / 0.6665 GB, free: 70.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003378/2.103, allocations: 1.285 MB / 0.6678 GB, free: 70.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/2.103, allocations: 0 / 0.6678 GB, free: 70.44 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00143/2.104, allocations: 0.7146 MB / 0.6685 GB, free: 70.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006153/2.11, allocations: 0.9609 MB / 0.6694 GB, free: 70.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/2.131, allocations: 6.996 MB / 0.6763 GB, free: 68.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003863/2.135, allocations: 2.72 MB / 0.6789 GB, free: 67.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004901/2.14, allocations: 0.732 MB / 0.6796 GB, free: 67.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004085/2.144, allocations: 2.431 MB / 0.682 GB, free: 66.76 MB / 378.7 MB Notification: Performance of SimCode: time 2.254e-06/2.144, allocations: 0 / 0.682 GB, free: 66.76 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5616/2.706, allocations: 105 MB / 0.7845 GB, free: 88.05 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/2.706, allocations: 154.1 kB / 0.7847 GB, free: 87.82 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.691/12.4, allocations: 0 / 0.7847 GB, free: 87.82 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat