Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.774/1.774, allocations: 171.3 MB / 178.8 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.556e-05/2.554e-05, allocations: 8 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3246, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1866/0.5112, allocations: 93.44 MB / 351.8 MB, free: 356 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003428/0.5116, allocations: 75.95 kB / 351.8 MB, free: 280 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.133/1.644, allocations: 189.8 MB / 0.5289 GB, free: 44.58 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.644, allocations: 0 / 0.5289 GB, free: 44.58 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002277/1.645, allocations: 84.53 kB / 0.529 GB, free: 44.58 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.01841/1.663, allocations: 4.675 MB / 0.5336 GB, free: 42.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.283e-05/1.663, allocations: 7.125 kB / 0.5336 GB, free: 42.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002652/1.666, allocations: 0.7491 MB / 0.5343 GB, free: 41.79 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01669/1.683, allocations: 4.509 MB / 0.5387 GB, free: 40.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.32e-05/1.683, allocations: 35.98 kB / 0.5388 GB, free: 40.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004937/1.683, allocations: 70.84 kB / 0.5388 GB, free: 40.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003132/1.686, allocations: 1.316 MB / 0.5401 GB, free: 40.72 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003088/1.69, allocations: 1.32 MB / 0.5414 GB, free: 40.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/1.69, allocations: 0 / 0.5414 GB, free: 40.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001842/1.69, allocations: 3.531 kB / 0.5414 GB, free: 40.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.888e-05/1.69, allocations: 39.5 kB / 0.5414 GB, free: 40.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01733/1.707, allocations: 5.655 MB / 0.547 GB, free: 39.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00198/1.709, allocations: 0.8516 MB / 0.5478 GB, free: 39.76 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001956/1.711, allocations: 1.123 MB / 0.5489 GB, free: 39.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1005/1.812, allocations: 71.86 MB / 0.6191 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/1.813, allocations: 0.4894 MB / 0.6195 GB, free: 14.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 6.342e-06/1.813, allocations: 0 / 0.6195 GB, free: 14.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.003668/1.817, allocations: 1.424 MB / 0.6209 GB, free: 12.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002618/1.817, allocations: 489.1 kB / 0.6214 GB, free: 12.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01113/1.828, allocations: 4.405 MB / 0.6257 GB, free: 7.875 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003475/1.829, allocations: 35.77 kB / 0.6257 GB, free: 7.836 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003959/1.833, allocations: 2.352 MB / 0.628 GB, free: 5.473 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006721/1.833, allocations: 287.9 kB / 0.6283 GB, free: 5.188 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/1.834, allocations: 0 / 0.6283 GB, free: 5.188 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001941/1.834, allocations: 370.8 kB / 0.6287 GB, free: 4.816 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008752/1.835, allocations: 316 kB / 0.629 GB, free: 4.508 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001588/1.836, allocations: 1.085 MB / 0.63 GB, free: 3.078 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001669/1.838, allocations: 493.8 kB / 0.6305 GB, free: 2.648 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.411e-05/1.838, allocations: 8 kB / 0.6305 GB, free: 2.641 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004333/1.842, allocations: 1.32 MB / 0.6318 GB, free: 1.457 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.09e-05/1.842, allocations: 23.53 kB / 0.6318 GB, free: 1.438 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004538/1.843, allocations: 160 kB / 0.632 GB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.356e-05/1.843, allocations: 36 kB / 0.632 GB, free: 1.246 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002536/1.846, allocations: 368 kB / 0.6323 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-05/1.846, allocations: 53.81 kB / 0.6324 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005107/1.851, allocations: 169.3 kB / 0.6326 GB, free: 0.707 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005596/1.851, allocations: 125.9 kB / 0.6327 GB, free: 0.5859 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.000505/1.852, allocations: 175.3 kB / 0.6328 GB, free: 448 kB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.2794/2.131, allocations: 1.429 MB / 0.6342 GB, free: 75.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002465/2.134, allocations: 0.7238 MB / 0.6349 GB, free: 75.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0141/2.148, allocations: 2.087 MB / 0.637 GB, free: 75.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-05/2.148, allocations: 7.031 kB / 0.637 GB, free: 75.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/2.148, allocations: 0 / 0.637 GB, free: 75.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.086e-05/2.148, allocations: 6.047 kB / 0.637 GB, free: 75.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01528/2.164, allocations: 3.558 MB / 0.6405 GB, free: 75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003423/2.164, allocations: 135.9 kB / 0.6406 GB, free: 75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001448/2.165, allocations: 168.9 kB / 0.6408 GB, free: 75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.457e-05/2.165, allocations: 3.344 kB / 0.6408 GB, free: 75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002066/2.166, allocations: 50.06 kB / 0.6408 GB, free: 75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/2.166, allocations: 3.906 kB / 0.6408 GB, free: 75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/2.166, allocations: 3.781 kB / 0.6408 GB, free: 75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00426/2.17, allocations: 2.053 MB / 0.6428 GB, free: 74.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00287/2.173, allocations: 0.9434 MB / 0.6437 GB, free: 73.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001937/2.175, allocations: 10.12 kB / 0.6438 GB, free: 73.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003187/2.178, allocations: 40.47 kB / 0.6438 GB, free: 73.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004618/2.179, allocations: 102.9 kB / 0.6439 GB, free: 73.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001828/2.179, allocations: 64.31 kB / 0.644 GB, free: 73.78 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008625/2.187, allocations: 3.256 MB / 0.6471 GB, free: 73.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.82e-07/2.187, allocations: 0 / 0.6471 GB, free: 73.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004493/2.192, allocations: 1.129 MB / 0.6482 GB, free: 73.51 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.007733/2.2, allocations: 3.885 MB / 0.652 GB, free: 72.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003034/2.203, allocations: 1.249 MB / 0.6533 GB, free: 72.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/2.203, allocations: 1.781 kB / 0.6533 GB, free: 72.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/2.204, allocations: 0.7071 MB / 0.6539 GB, free: 71.76 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006384/2.211, allocations: 0.9479 MB / 0.6549 GB, free: 71.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01976/2.231, allocations: 7.001 MB / 0.6617 GB, free: 69.69 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003367/2.234, allocations: 2.722 MB / 0.6644 GB, free: 68.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004262/2.238, allocations: 2.44 MB / 0.6668 GB, free: 68.9 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/2.238, allocations: 0 / 0.6668 GB, free: 68.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.376/6.615, allocations: 90.74 MB / 0.7554 GB, free: 11.44 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat