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 1.99/1.99, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.409e-05/3.437e-05, allocations: 11.98 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1027, allocations: 44.51 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4365/0.5392, allocations: 97.79 MB / 397.7 MB, free: 12.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/0.5396, allocations: 70.91 kB / 397.8 MB, free: 12.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4367/0.9763, allocations: 127.2 MB / 0.5127 GB, free: 6.664 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.9764, allocations: 0 / 0.5127 GB, free: 6.664 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.866e-05/0.9765, allocations: 52 kB / 0.5127 GB, free: 6.613 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.008004/0.9845, allocations: 2.807 MB / 0.5154 GB, free: 3.754 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.9846, allocations: 8.031 kB / 0.5155 GB, free: 3.746 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003615/0.985, allocations: 106.5 kB / 0.5156 GB, free: 3.633 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009461/0.9859, allocations: 414.9 kB / 0.5159 GB, free: 3.223 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007639/0.9936, allocations: 2.425 MB / 0.5183 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.766e-05/0.9937, allocations: 40.98 kB / 0.5184 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003167/0.994, allocations: 55.94 kB / 0.5184 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2753/1.269, allocations: 0.7845 MB / 0.5192 GB, free: 77.76 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/1.269, allocations: 0 / 0.5192 GB, free: 77.76 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/1.27, allocations: 20.94 kB / 0.5192 GB, free: 77.76 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.031e-05/1.27, allocations: 20.94 kB / 0.5192 GB, free: 77.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002194/1.272, allocations: 0.7147 MB / 0.5199 GB, free: 77.76 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/1.282, allocations: 3.285 MB / 0.5231 GB, free: 77.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/1.283, allocations: 490.7 kB / 0.5236 GB, free: 77.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001281/1.285, allocations: 0.593 MB / 0.5242 GB, free: 77.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04996/1.335, allocations: 36.21 MB / 0.5595 GB, free: 50.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007147/1.335, allocations: 320 kB / 0.5598 GB, free: 50.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.827e-06/1.335, allocations: 0 / 0.5598 GB, free: 50.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001978/1.337, allocations: 0.8165 MB / 0.5606 GB, free: 50.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/1.338, allocations: 267 kB / 0.5609 GB, free: 50.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005565/1.343, allocations: 2.672 MB / 0.5635 GB, free: 49.99 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001684/1.343, allocations: 36.45 kB / 0.5635 GB, free: 49.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001483/1.345, allocations: 1.297 MB / 0.5648 GB, free: 49.69 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002782/1.345, allocations: 169 kB / 0.565 GB, free: 49.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.097e-05/1.345, allocations: 15.19 kB / 0.565 GB, free: 49.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.824e-05/1.345, allocations: 347.5 kB / 0.5653 GB, free: 49.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005221/1.346, allocations: 196.2 kB / 0.5655 GB, free: 49.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007208/1.347, allocations: 0.5884 MB / 0.5661 GB, free: 48.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006775/1.347, allocations: 282.1 kB / 0.5663 GB, free: 48.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/1.347, allocations: 6.188 kB / 0.5663 GB, free: 48.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001868/1.349, allocations: 0.8154 MB / 0.5671 GB, free: 48.71 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/1.349, allocations: 15.38 kB / 0.5672 GB, free: 48.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001532/1.349, allocations: 79.61 kB / 0.5672 GB, free: 48.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.097e-05/1.35, allocations: 21.53 kB / 0.5673 GB, free: 48.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/1.351, allocations: 213.4 kB / 0.5675 GB, free: 48.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.008e-05/1.351, allocations: 26.5 kB / 0.5675 GB, free: 48.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/1.353, allocations: 129.4 kB / 0.5676 GB, free: 48.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001823/1.353, allocations: 59.97 kB / 0.5677 GB, free: 48.68 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.0002585/1.354, allocations: 173.7 kB / 0.5678 GB, free: 48.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007167/1.354, allocations: 398.3 kB / 0.5682 GB, free: 48.37 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004402/1.359, allocations: 1.161 MB / 0.5693 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/1.359, allocations: 3.719 kB / 0.5693 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/1.359, allocations: 3.344 kB / 0.5693 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/1.359, allocations: 3.281 kB / 0.5693 GB, free: 48.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005468/1.364, allocations: 2.202 MB / 0.5715 GB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001425/1.365, allocations: 75.14 kB / 0.5716 GB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009125/1.365, allocations: 102.2 kB / 0.5717 GB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.067e-05/1.365, allocations: 3.219 kB / 0.5717 GB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.235e-05/1.366, allocations: 33.33 kB / 0.5717 GB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.095e-06/1.366, allocations: 6.656 kB / 0.5717 GB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/1.366, allocations: 0 / 0.5717 GB, free: 47.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/1.368, allocations: 1.236 MB / 0.5729 GB, free: 47.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001433/1.369, allocations: 0.5114 MB / 0.5734 GB, free: 47.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006766/1.37, allocations: 12.78 kB / 0.5734 GB, free: 47.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001643/1.372, allocations: 54.88 kB / 0.5735 GB, free: 47.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002525/1.372, allocations: 63.94 kB / 0.5735 GB, free: 47.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/1.372, allocations: 42.67 kB / 0.5736 GB, free: 47.13 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004464/1.377, allocations: 2.028 MB / 0.5756 GB, free: 46.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.377, allocations: 2.5 kB / 0.5756 GB, free: 46.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002506/1.379, allocations: 0.663 MB / 0.5762 GB, free: 46.92 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.004436/1.384, allocations: 2.676 MB / 0.5788 GB, free: 45.85 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001693/1.386, allocations: 0.7112 MB / 0.5795 GB, free: 45.72 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.386, allocations: 0 / 0.5795 GB, free: 45.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007348/1.386, allocations: 393.7 kB / 0.5799 GB, free: 45.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/1.389, allocations: 0.5169 MB / 0.5804 GB, free: 45.56 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/1.4, allocations: 3.868 MB / 0.5842 GB, free: 44.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001324/1.401, allocations: 1.785 MB / 0.5859 GB, free: 43.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001887/1.403, allocations: 1.262 MB / 0.5872 GB, free: 43.67 MB / 410.7 MB Notification: Performance of SimCode: time 1.493e-06/1.403, allocations: 0 / 0.5872 GB, free: 43.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.428/4.831, allocations: 50.55 MB / 0.6365 GB, free: 21.67 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