Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.089/2.089, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.26e-05/3.262e-05, allocations: 7.094 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.096/0.09606, allocations: 44.5 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4459/0.542, allocations: 97.8 MB / 397.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.5423, allocations: 75.92 kB / 397.8 MB, free: 12.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4324/0.9747, allocations: 127.2 MB / 0.5127 GB, free: 6.637 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.9748, allocations: 0 / 0.5127 GB, free: 6.637 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.626e-05/0.9749, allocations: 52 kB / 0.5127 GB, free: 6.586 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.007268/0.9822, allocations: 2.795 MB / 0.5155 GB, free: 3.738 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/0.9823, allocations: 12.03 kB / 0.5155 GB, free: 3.727 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002755/0.9825, allocations: 102.4 kB / 0.5156 GB, free: 3.617 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008712/0.9834, allocations: 414.9 kB / 0.516 GB, free: 3.207 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006737/0.9902, allocations: 2.429 MB / 0.5184 GB, free: 0.707 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.932e-05/0.9903, allocations: 33 kB / 0.5184 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002279/0.9905, allocations: 55.94 kB / 0.5184 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2852/1.276, allocations: 0.7874 MB / 0.5192 GB, free: 78.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.05e-05/1.276, allocations: 0 / 0.5192 GB, free: 78.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/1.276, allocations: 21.36 kB / 0.5192 GB, free: 78.42 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.668e-05/1.276, allocations: 18.44 kB / 0.5192 GB, free: 78.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00219/1.278, allocations: 0.7051 MB / 0.5199 GB, free: 78.42 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01057/1.289, allocations: 3.287 MB / 0.5231 GB, free: 77.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001328/1.29, allocations: 487.7 kB / 0.5236 GB, free: 77.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001288/1.292, allocations: 0.5976 MB / 0.5242 GB, free: 77.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04939/1.341, allocations: 36.21 MB / 0.5596 GB, free: 51.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006962/1.342, allocations: 310.3 kB / 0.5598 GB, free: 51.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.607e-06/1.342, allocations: 1.969 kB / 0.5598 GB, free: 51.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.00203/1.344, allocations: 0.8212 MB / 0.5607 GB, free: 51.26 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/1.344, allocations: 269.2 kB / 0.5609 GB, free: 50.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00539/1.349, allocations: 2.669 MB / 0.5635 GB, free: 50.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001635/1.35, allocations: 32.77 kB / 0.5635 GB, free: 50.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001441/1.351, allocations: 1.298 MB / 0.5648 GB, free: 50.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002994/1.351, allocations: 176.1 kB / 0.565 GB, free: 50.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.847e-05/1.351, allocations: 13.06 kB / 0.565 GB, free: 50.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.303e-05/1.351, allocations: 350.4 kB / 0.5653 GB, free: 49.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005361/1.352, allocations: 189 kB / 0.5655 GB, free: 49.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007176/1.353, allocations: 0.5901 MB / 0.5661 GB, free: 49.44 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006514/1.353, allocations: 281.5 kB / 0.5664 GB, free: 49.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/1.353, allocations: 7 kB / 0.5664 GB, free: 49.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001873/1.355, allocations: 0.7791 MB / 0.5671 GB, free: 49.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/1.355, allocations: 7.625 kB / 0.5671 GB, free: 49.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001542/1.356, allocations: 81.19 kB / 0.5672 GB, free: 49.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.065e-05/1.356, allocations: 17.34 kB / 0.5672 GB, free: 49.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001377/1.357, allocations: 219.2 kB / 0.5674 GB, free: 49.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.194e-05/1.357, allocations: 22.53 kB / 0.5675 GB, free: 49.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/1.359, allocations: 127.6 kB / 0.5676 GB, free: 49.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/1.36, allocations: 68.3 kB / 0.5676 GB, free: 49.35 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0003055/1.36, allocations: 167.3 kB / 0.5678 GB, free: 49.24 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000791/1.361, allocations: 402.8 kB / 0.5682 GB, free: 49.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004673/1.365, allocations: 1.162 MB / 0.5693 GB, free: 48.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/1.365, allocations: 3.344 kB / 0.5693 GB, free: 48.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/1.365, allocations: 0 / 0.5693 GB, free: 48.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/1.365, allocations: 3.891 kB / 0.5693 GB, free: 48.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005499/1.371, allocations: 2.2 MB / 0.5715 GB, free: 48.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001412/1.371, allocations: 74.69 kB / 0.5715 GB, free: 48.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009397/1.372, allocations: 106.5 kB / 0.5716 GB, free: 48.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.051e-05/1.372, allocations: 3.906 kB / 0.5716 GB, free: 48.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.627e-05/1.372, allocations: 35.78 kB / 0.5717 GB, free: 48.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/1.372, allocations: 0 / 0.5717 GB, free: 48.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/1.372, allocations: 3.688 kB / 0.5717 GB, free: 48.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002419/1.375, allocations: 1.229 MB / 0.5729 GB, free: 48.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001427/1.376, allocations: 0.5116 MB / 0.5734 GB, free: 47.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006303/1.377, allocations: 10.78 kB / 0.5734 GB, free: 47.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/1.378, allocations: 54.72 kB / 0.5734 GB, free: 47.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/1.379, allocations: 66.81 kB / 0.5735 GB, free: 47.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/1.379, allocations: 42.22 kB / 0.5736 GB, free: 47.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004514/1.383, allocations: 2.023 MB / 0.5755 GB, free: 47.59 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.332e-06/1.383, allocations: 0 / 0.5755 GB, free: 47.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002663/1.386, allocations: 0.6697 MB / 0.5762 GB, free: 47.58 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.004499/1.39, allocations: 2.677 MB / 0.5788 GB, free: 46.51 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001698/1.392, allocations: 0.6908 MB / 0.5795 GB, free: 46.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.392, allocations: 3.969 kB / 0.5795 GB, free: 46.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007251/1.393, allocations: 392.7 kB / 0.5798 GB, free: 46.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003016/1.396, allocations: 0.5129 MB / 0.5803 GB, free: 46.22 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/1.407, allocations: 3.874 MB / 0.5841 GB, free: 45.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001296/1.408, allocations: 1.782 MB / 0.5859 GB, free: 44.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001838/1.41, allocations: 1.262 MB / 0.5871 GB, free: 44.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.353e-06/1.41, allocations: 3.719 kB / 0.5871 GB, free: 44.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.413/4.823, allocations: 50.35 MB / 0.6363 GB, free: 22.57 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat