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.119/2.119, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.71e-05/2.723e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3102, allocations: 44.49 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1747/0.4849, allocations: 97.26 MB / 391.5 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.4852, allocations: 75.95 kB / 391.5 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8909/1.376, allocations: 186.6 MB / 0.5646 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.006e-06/1.376, allocations: 0 / 0.5646 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001793/1.376, allocations: 88 kB / 0.5647 GB, free: 0.5273 MB / 394.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.3113/1.688, allocations: 4.673 MB / 0.5693 GB, free: 50.87 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/1.688, allocations: 11.44 kB / 0.5693 GB, free: 50.87 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002777/1.691, allocations: 0.7477 MB / 0.57 GB, free: 50.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01531/1.706, allocations: 4.518 MB / 0.5744 GB, free: 49.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.794e-05/1.706, allocations: 29.34 kB / 0.5744 GB, free: 49.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005488/1.707, allocations: 65.58 kB / 0.5745 GB, free: 49.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003509/1.71, allocations: 1.317 MB / 0.5758 GB, free: 49.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002997/1.713, allocations: 1.322 MB / 0.5771 GB, free: 49.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.647e-05/1.713, allocations: 0 / 0.5771 GB, free: 49.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001836/1.714, allocations: 0 / 0.5771 GB, free: 49.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-05/1.714, allocations: 41.47 kB / 0.5771 GB, free: 49.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01851/1.732, allocations: 5.663 MB / 0.5827 GB, free: 48.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001903/1.734, allocations: 0.8547 MB / 0.5835 GB, free: 48.56 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001939/1.736, allocations: 1.121 MB / 0.5846 GB, free: 48.54 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09781/1.834, allocations: 71.87 MB / 0.6548 GB, free: 28.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009877/1.835, allocations: 499.9 kB / 0.6552 GB, free: 27.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=85): time 4.409e-06/1.835, allocations: 3.188 kB / 0.6552 GB, free: 27.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=85): time 0.003951/1.839, allocations: 1.426 MB / 0.6566 GB, free: 27.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000254/1.839, allocations: 486.5 kB / 0.6571 GB, free: 26.97 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01104/1.85, allocations: 4.406 MB / 0.6614 GB, free: 26.54 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003237/1.851, allocations: 29.48 kB / 0.6614 GB, free: 26.51 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003129/1.854, allocations: 2.355 MB / 0.6637 GB, free: 26.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005529/1.854, allocations: 289.2 kB / 0.664 GB, free: 25.87 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/1.855, allocations: 0 / 0.664 GB, free: 25.87 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/1.855, allocations: 366.9 kB / 0.6644 GB, free: 25.55 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007646/1.856, allocations: 317.5 kB / 0.6647 GB, free: 25.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0012/1.857, allocations: 1.086 MB / 0.6657 GB, free: 24.55 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/1.858, allocations: 493.8 kB / 0.6662 GB, free: 24.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-05/1.858, allocations: 10.56 kB / 0.6662 GB, free: 24.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003561/1.862, allocations: 1.319 MB / 0.6675 GB, free: 24.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/1.862, allocations: 16.12 kB / 0.6675 GB, free: 24.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003637/1.862, allocations: 160.1 kB / 0.6677 GB, free: 24.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.035e-05/1.862, allocations: 36.12 kB / 0.6677 GB, free: 24.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002315/1.865, allocations: 372.4 kB / 0.668 GB, free: 24.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.08e-05/1.865, allocations: 47.27 kB / 0.6681 GB, free: 24.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004456/1.869, allocations: 175.1 kB / 0.6683 GB, free: 24.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005154/1.87, allocations: 119.8 kB / 0.6684 GB, free: 24.37 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.0004491/1.87, allocations: 188.4 kB / 0.6686 GB, free: 24.24 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004002/1.874, allocations: 1.426 MB / 0.6699 GB, free: 23.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001882/1.876, allocations: 0.7243 MB / 0.6707 GB, free: 23.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009067/1.885, allocations: 2.089 MB / 0.6727 GB, free: 23.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/1.885, allocations: 7.906 kB / 0.6727 GB, free: 23.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/1.885, allocations: 3.953 kB / 0.6727 GB, free: 23.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/1.885, allocations: 3.516 kB / 0.6727 GB, free: 23.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01063/1.896, allocations: 3.553 MB / 0.6762 GB, free: 22.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003692/1.896, allocations: 141.7 kB / 0.6763 GB, free: 22.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/1.898, allocations: 165 kB / 0.6765 GB, free: 22.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.596e-05/1.898, allocations: 6.859 kB / 0.6765 GB, free: 22.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001625/1.898, allocations: 52.69 kB / 0.6765 GB, free: 22.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/1.898, allocations: 4.656 kB / 0.6765 GB, free: 22.89 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.898, allocations: 3.969 kB / 0.6765 GB, free: 22.89 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004645/1.903, allocations: 2.049 MB / 0.6785 GB, free: 22.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003651/1.906, allocations: 0.9359 MB / 0.6794 GB, free: 21.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002586/1.909, allocations: 7.719 kB / 0.6795 GB, free: 21.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004179/1.913, allocations: 44.7 kB / 0.6795 GB, free: 21.65 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004966/1.914, allocations: 97.95 kB / 0.6796 GB, free: 21.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001927/1.914, allocations: 69.75 kB / 0.6797 GB, free: 21.65 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008318/1.922, allocations: 3.251 MB / 0.6828 GB, free: 21.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.922, allocations: 3.062 kB / 0.6828 GB, free: 21.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005354/1.928, allocations: 1.124 MB / 0.6839 GB, free: 21.34 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.007982/1.936, allocations: 3.888 MB / 0.6877 GB, free: 18.57 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002939/1.939, allocations: 1.249 MB / 0.689 GB, free: 17.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/1.939, allocations: 4 kB / 0.689 GB, free: 17.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/1.94, allocations: 0.7066 MB / 0.6896 GB, free: 17.01 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006813/1.947, allocations: 0.9527 MB / 0.6906 GB, free: 16.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02106/1.968, allocations: 7.006 MB / 0.6974 GB, free: 10.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003093/1.971, allocations: 2.723 MB / 0.7001 GB, free: 8.949 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004199/1.976, allocations: 2.44 MB / 0.7025 GB, free: 8.641 MB / 426.7 MB Notification: Performance of SimCode: time 1.914e-06/1.976, allocations: 3.312 kB / 0.7025 GB, free: 8.641 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.661/6.637, allocations: 90.72 MB / 0.7911 GB, free: 61.11 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