Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.127/2.127, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.332e-05/3.344e-05, allocations: 4 kB / 292.2 MB, free: 8.773 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1074, allocations: 50.41 MB / 342.6 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4678/0.5753, allocations: 104.5 MB / 447.1 MB, free: 5.516 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/0.5756, allocations: 70.31 kB / 447.2 MB, free: 5.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7975/1.373, allocations: 143.2 MB / 0.5765 GB, free: 67.26 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.373, allocations: 0 / 0.5765 GB, free: 67.26 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001707/1.373, allocations: 45.38 kB / 0.5766 GB, free: 67.26 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.006916/1.38, allocations: 2.797 MB / 0.5793 GB, free: 65.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/1.38, allocations: 11.62 kB / 0.5793 GB, free: 65.72 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002916/1.381, allocations: 99.05 kB / 0.5794 GB, free: 65.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007835/1.381, allocations: 411.5 kB / 0.5798 GB, free: 65.47 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006413/1.388, allocations: 2.416 MB / 0.5822 GB, free: 64.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.803e-05/1.388, allocations: 38.19 kB / 0.5822 GB, free: 64.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002039/1.388, allocations: 54.78 kB / 0.5823 GB, free: 64.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/1.39, allocations: 0.7891 MB / 0.583 GB, free: 64.67 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/1.39, allocations: 0 / 0.583 GB, free: 64.67 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/1.39, allocations: 17.91 kB / 0.5831 GB, free: 64.67 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.803e-05/1.39, allocations: 22.97 kB / 0.5831 GB, free: 64.67 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/1.392, allocations: 0.7038 MB / 0.5838 GB, free: 64.67 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008805/1.4, allocations: 3.275 MB / 0.587 GB, free: 64.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/1.402, allocations: 484.8 kB / 0.5874 GB, free: 63.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/1.403, allocations: 0.5903 MB / 0.588 GB, free: 63.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04698/1.45, allocations: 36.1 MB / 0.6233 GB, free: 34.67 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006795/1.45, allocations: 318.9 kB / 0.6236 GB, free: 34.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 3.567e-06/1.45, allocations: 7.688 kB / 0.6236 GB, free: 34.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001922/1.452, allocations: 0.8053 MB / 0.6244 GB, free: 34.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.671e-05/1.452, allocations: 271.8 kB / 0.6246 GB, free: 33.89 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005432/1.458, allocations: 2.656 MB / 0.6272 GB, free: 32.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001614/1.458, allocations: 37.52 kB / 0.6272 GB, free: 32.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/1.459, allocations: 1.301 MB / 0.6285 GB, free: 31.67 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002378/1.46, allocations: 170.1 kB / 0.6287 GB, free: 31.54 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.99e-05/1.46, allocations: 15.31 kB / 0.6287 GB, free: 31.53 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.521e-05/1.46, allocations: 345.7 kB / 0.629 GB, free: 31.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005071/1.46, allocations: 190.8 kB / 0.6292 GB, free: 31.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000736/1.461, allocations: 0.5858 MB / 0.6298 GB, free: 30.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006432/1.462, allocations: 285.4 kB / 0.63 GB, free: 30.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/1.462, allocations: 3.719 kB / 0.6301 GB, free: 30.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001823/1.464, allocations: 0.7777 MB / 0.6308 GB, free: 30.13 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/1.464, allocations: 13.19 kB / 0.6308 GB, free: 30.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/1.464, allocations: 83.78 kB / 0.6309 GB, free: 30.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.819e-05/1.464, allocations: 19 kB / 0.6309 GB, free: 30.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/1.465, allocations: 212.2 kB / 0.6311 GB, free: 30.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.018e-05/1.465, allocations: 25.08 kB / 0.6311 GB, free: 30.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002164/1.468, allocations: 122.3 kB / 0.6313 GB, free: 30.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/1.468, allocations: 69.08 kB / 0.6313 GB, free: 30.02 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.0002368/1.468, allocations: 170.4 kB / 0.6315 GB, free: 29.87 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005331/1.469, allocations: 397.6 kB / 0.6319 GB, free: 29.67 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004388/1.473, allocations: 1.157 MB / 0.633 GB, free: 29.22 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/1.473, allocations: 3.969 kB / 0.633 GB, free: 29.22 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/1.473, allocations: 3.938 kB / 0.633 GB, free: 29.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/1.473, allocations: 0 / 0.633 GB, free: 29.22 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005034/1.478, allocations: 2.194 MB / 0.6352 GB, free: 28.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001385/1.478, allocations: 70.92 kB / 0.6352 GB, free: 28.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009133/1.479, allocations: 99.92 kB / 0.6353 GB, free: 28.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/1.479, allocations: 3.062 kB / 0.6353 GB, free: 28.21 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.174e-05/1.479, allocations: 39.66 kB / 0.6354 GB, free: 28.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.423e-06/1.479, allocations: 4 kB / 0.6354 GB, free: 28.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/1.479, allocations: 10.69 kB / 0.6354 GB, free: 28.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002307/1.482, allocations: 1.227 MB / 0.6366 GB, free: 27.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/1.483, allocations: 0.5213 MB / 0.6371 GB, free: 27.17 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006035/1.484, allocations: 11.16 kB / 0.6371 GB, free: 27.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/1.485, allocations: 39.77 kB / 0.6371 GB, free: 27.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/1.485, allocations: 64.59 kB / 0.6372 GB, free: 27.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/1.485, allocations: 36.73 kB / 0.6372 GB, free: 27.15 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003917/1.489, allocations: 2.023 MB / 0.6392 GB, free: 26.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.489, allocations: 0 / 0.6392 GB, free: 26.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002506/1.492, allocations: 0.6518 MB / 0.6398 GB, free: 26.28 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.004085/1.496, allocations: 2.671 MB / 0.6424 GB, free: 24.87 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001562/1.498, allocations: 0.6906 MB / 0.6431 GB, free: 24.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/1.498, allocations: 0 / 0.6431 GB, free: 24.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006981/1.498, allocations: 396.5 kB / 0.6435 GB, free: 24.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004458/1.503, allocations: 0.6189 MB / 0.6441 GB, free: 24.11 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009925/1.513, allocations: 3.842 MB / 0.6479 GB, free: 22.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/1.514, allocations: 1.775 MB / 0.6496 GB, free: 21.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001815/1.516, allocations: 1.256 MB / 0.6508 GB, free: 19.99 MB / 442.7 MB Notification: Performance of SimCode: time 1.183e-06/1.516, allocations: 0 / 0.6508 GB, free: 19.99 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.615/5.13, allocations: 50.12 MB / 0.6998 GB, free: 2.367 MB / 474.7 MB