Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.058/2.058, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.336e-05/3.351e-05, allocations: 4 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1066, allocations: 50.42 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4679/0.5746, allocations: 104.5 MB / 447.1 MB, free: 5.539 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.5749, allocations: 71.03 kB / 447.2 MB, free: 5.504 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7736/1.349, allocations: 141 MB / 0.5744 GB, free: 100 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.349, allocations: 0 / 0.5744 GB, free: 100 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002334/1.349, allocations: 44.22 kB / 0.5745 GB, free: 100 MB / 442.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.00681/1.356, allocations: 2.707 MB / 0.5771 GB, free: 98.37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/1.356, allocations: 6.844 kB / 0.5771 GB, free: 98.37 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002868/1.356, allocations: 106.8 kB / 0.5772 GB, free: 98.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007891/1.357, allocations: 400.3 kB / 0.5776 GB, free: 98.08 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00648/1.363, allocations: 2.35 MB / 0.5799 GB, free: 96.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.235e-05/1.363, allocations: 39.62 kB / 0.5799 GB, free: 96.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002402/1.364, allocations: 60.61 kB / 0.58 GB, free: 96.96 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001815/1.366, allocations: 0.7828 MB / 0.5808 GB, free: 96.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/1.366, allocations: 0 / 0.5808 GB, free: 96.59 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001161/1.366, allocations: 22.84 kB / 0.5808 GB, free: 96.58 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.169e-05/1.366, allocations: 21.75 kB / 0.5808 GB, free: 96.57 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/1.367, allocations: 0.6996 MB / 0.5815 GB, free: 96.37 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009149/1.377, allocations: 3.177 MB / 0.5846 GB, free: 94.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/1.378, allocations: 484.2 kB / 0.5851 GB, free: 94.62 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/1.379, allocations: 0.5909 MB / 0.5856 GB, free: 94.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04712/1.426, allocations: 36.08 MB / 0.6209 GB, free: 62.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000674/1.427, allocations: 321.5 kB / 0.6212 GB, free: 61.96 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 4.158e-06/1.427, allocations: 0 / 0.6212 GB, free: 61.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001988/1.429, allocations: 0.7938 MB / 0.6219 GB, free: 61.15 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.974e-05/1.429, allocations: 265 kB / 0.6222 GB, free: 60.83 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004992/1.434, allocations: 2.507 MB / 0.6246 GB, free: 58.31 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000156/1.434, allocations: 33.7 kB / 0.6247 GB, free: 58.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/1.436, allocations: 1.238 MB / 0.6259 GB, free: 57.04 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002632/1.436, allocations: 173.5 kB / 0.626 GB, free: 56.87 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.842e-05/1.436, allocations: 16 kB / 0.6261 GB, free: 56.85 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.259e-05/1.436, allocations: 346.8 kB / 0.6264 GB, free: 56.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005074/1.437, allocations: 190 kB / 0.6266 GB, free: 56.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007209/1.437, allocations: 0.5912 MB / 0.6272 GB, free: 55.53 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006375/1.438, allocations: 277.4 kB / 0.6274 GB, free: 55.26 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/1.438, allocations: 4 kB / 0.6274 GB, free: 55.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001811/1.44, allocations: 0.7762 MB / 0.6282 GB, free: 54.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/1.44, allocations: 8 kB / 0.6282 GB, free: 54.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001488/1.44, allocations: 79.98 kB / 0.6283 GB, free: 54.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.694e-05/1.44, allocations: 24.03 kB / 0.6283 GB, free: 54.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/1.441, allocations: 207.7 kB / 0.6285 GB, free: 54.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.028e-05/1.441, allocations: 31.86 kB / 0.6285 GB, free: 54.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002174/1.444, allocations: 123 kB / 0.6286 GB, free: 54.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000191/1.444, allocations: 71.94 kB / 0.6287 GB, free: 53.95 MB / 442.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.0002414/1.444, allocations: 168.1 kB / 0.6289 GB, free: 53.78 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006496/1.445, allocations: 383.3 kB / 0.6292 GB, free: 53.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004386/1.449, allocations: 1.144 MB / 0.6303 GB, free: 52.26 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/1.449, allocations: 4 kB / 0.6303 GB, free: 52.26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/1.449, allocations: 0 / 0.6303 GB, free: 52.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/1.449, allocations: 3.984 kB / 0.6304 GB, free: 52.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004922/1.454, allocations: 2.114 MB / 0.6324 GB, free: 50.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001357/1.454, allocations: 68 kB / 0.6325 GB, free: 50.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009213/1.455, allocations: 107.9 kB / 0.6326 GB, free: 49.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/1.455, allocations: 4 kB / 0.6326 GB, free: 49.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.579e-05/1.455, allocations: 28 kB / 0.6326 GB, free: 49.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.474e-06/1.455, allocations: 7.984 kB / 0.6326 GB, free: 49.87 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.455, allocations: 7.953 kB / 0.6326 GB, free: 49.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/1.458, allocations: 1.204 MB / 0.6338 GB, free: 48.62 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/1.459, allocations: 0.5567 MB / 0.6344 GB, free: 48.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007073/1.46, allocations: 12 kB / 0.6344 GB, free: 48.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001608/1.462, allocations: 43.95 kB / 0.6344 GB, free: 47.97 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002316/1.462, allocations: 64 kB / 0.6345 GB, free: 47.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/1.462, allocations: 39.98 kB / 0.6345 GB, free: 47.87 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003939/1.466, allocations: 1.906 MB / 0.6364 GB, free: 45.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.466, allocations: 0 / 0.6364 GB, free: 45.96 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002537/1.469, allocations: 0.6419 MB / 0.637 GB, free: 45.32 MB / 442.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.004155/1.473, allocations: 2.606 MB / 0.6395 GB, free: 42.83 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001607/1.474, allocations: 0.6925 MB / 0.6402 GB, free: 42.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/1.474, allocations: 4 kB / 0.6402 GB, free: 42.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007129/1.475, allocations: 387.1 kB / 0.6406 GB, free: 41.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004582/1.48, allocations: 0.5999 MB / 0.6412 GB, free: 41.12 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01016/1.49, allocations: 3.692 MB / 0.6448 GB, free: 37.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001311/1.491, allocations: 1.72 MB / 0.6465 GB, free: 35.63 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001896/1.493, allocations: 1.218 MB / 0.6476 GB, free: 34.41 MB / 442.7 MB Notification: Performance of SimCode: time 1.903e-06/1.493, allocations: 0 / 0.6476 GB, free: 34.41 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.387/4.88, allocations: 48.06 MB / 0.6946 GB, free: 2.488 MB / 458.7 MB