Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.128/2.128, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.503e-05/3.511e-05, allocations: 4 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1071, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4667/0.5738, allocations: 104.1 MB / 446.7 MB, free: 6.289 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.5741, allocations: 65.78 kB / 446.8 MB, free: 6.258 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6076/1.182, allocations: 99.29 MB / 0.5333 GB, free: 106.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.182, allocations: 0.8438 kB / 0.5333 GB, free: 106.5 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.678e-05/1.182, allocations: 22.12 kB / 0.5333 GB, free: 106.5 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.004233/1.186, allocations: 1.6 MB / 0.5349 GB, free: 105.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/1.186, allocations: 9.25 kB / 0.5349 GB, free: 105.8 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/1.186, allocations: 75.92 kB / 0.535 GB, free: 105.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00042/1.187, allocations: 200.9 kB / 0.5351 GB, free: 105.6 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002847/1.19, allocations: 1.204 MB / 0.5363 GB, free: 105.2 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/1.19, allocations: 17 kB / 0.5363 GB, free: 105.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/1.19, allocations: 27.38 kB / 0.5364 GB, free: 105.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/1.191, allocations: 446.5 kB / 0.5368 GB, free: 105.1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/1.191, allocations: 0 / 0.5368 GB, free: 105.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.878e-05/1.191, allocations: 11 kB / 0.5368 GB, free: 105.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/1.191, allocations: 14.56 kB / 0.5368 GB, free: 105.1 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009405/1.192, allocations: 373.2 kB / 0.5372 GB, free: 105.1 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004604/1.197, allocations: 1.66 MB / 0.5388 GB, free: 104.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006699/1.197, allocations: 267.7 kB / 0.539 GB, free: 104.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007276/1.198, allocations: 373.5 kB / 0.5394 GB, free: 104.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02369/1.222, allocations: 18.13 MB / 0.5571 GB, free: 91.37 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004708/1.222, allocations: 209.4 kB / 0.5573 GB, free: 91.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=29): time 3.176e-06/1.222, allocations: 0 / 0.5573 GB, free: 91.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=29): time 0.001198/1.224, allocations: 493.3 kB / 0.5578 GB, free: 91.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/1.224, allocations: 161.7 kB / 0.5579 GB, free: 91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001966/1.226, allocations: 1.2 MB / 0.5591 GB, free: 90.78 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.399e-05/1.226, allocations: 37.48 kB / 0.5591 GB, free: 90.75 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000552/1.226, allocations: 0.6411 MB / 0.5598 GB, free: 90.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/1.226, allocations: 86.58 kB / 0.5598 GB, free: 90.46 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.385e-05/1.226, allocations: 9.062 kB / 0.5599 GB, free: 90.46 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.211e-05/1.226, allocations: 337.2 kB / 0.5602 GB, free: 90.14 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003079/1.227, allocations: 107.2 kB / 0.5603 GB, free: 90.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004144/1.227, allocations: 333.1 kB / 0.5606 GB, free: 89.88 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003877/1.228, allocations: 151.5 kB / 0.5607 GB, free: 89.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/1.228, allocations: 3.531 kB / 0.5607 GB, free: 89.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001148/1.229, allocations: 494 kB / 0.5612 GB, free: 89.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/1.229, allocations: 7.812 kB / 0.5612 GB, free: 89.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.181e-05/1.229, allocations: 39.38 kB / 0.5613 GB, free: 89.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004205/1.229, allocations: 138.1 kB / 0.5614 GB, free: 89.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007298/1.23, allocations: 118.1 kB / 0.5615 GB, free: 89.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006788/1.231, allocations: 0.6826 MB / 0.5622 GB, free: 89.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/1.232, allocations: 81.98 kB / 0.5622 GB, free: 89.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-05/1.232, allocations: 32.97 kB / 0.5623 GB, free: 89.27 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001726/1.232, allocations: 139.6 kB / 0.5624 GB, free: 89.16 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000225/1.233, allocations: 189.6 kB / 0.5626 GB, free: 89.06 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002404/1.235, allocations: 0.6708 MB / 0.5633 GB, free: 88.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/1.235, allocations: 3.719 kB / 0.5633 GB, free: 88.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.235, allocations: 0 / 0.5633 GB, free: 88.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/1.235, allocations: 2.781 kB / 0.5633 GB, free: 88.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00241/1.238, allocations: 1.243 MB / 0.5645 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-05/1.238, allocations: 38.02 kB / 0.5645 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004614/1.238, allocations: 56.41 kB / 0.5646 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003351/1.238, allocations: 122.7 kB / 0.5647 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.059e-05/1.238, allocations: 23.08 kB / 0.5647 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006218/1.239, allocations: 0.6693 MB / 0.5654 GB, free: 88.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.239, allocations: 0 / 0.5654 GB, free: 88.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/1.24, allocations: 0.6473 MB / 0.566 GB, free: 87.78 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005898/1.241, allocations: 282.8 kB / 0.5663 GB, free: 87.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002684/1.241, allocations: 11.64 kB / 0.5663 GB, free: 87.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00085/1.242, allocations: 42.8 kB / 0.5663 GB, free: 87.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001448/1.242, allocations: 38.89 kB / 0.5663 GB, free: 87.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.875e-05/1.242, allocations: 27.14 kB / 0.5664 GB, free: 87.58 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001554/1.244, allocations: 0.9219 MB / 0.5673 GB, free: 87.42 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.244, allocations: 0 / 0.5673 GB, free: 87.42 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001459/1.245, allocations: 360.7 kB / 0.5676 GB, free: 87.38 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002448/1.248, allocations: 1.849 MB / 0.5694 GB, free: 86.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/1.249, allocations: 413.1 kB / 0.5698 GB, free: 86.32 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/1.249, allocations: 0 / 0.5698 GB, free: 86.32 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005704/1.25, allocations: 249.2 kB / 0.5701 GB, free: 86.26 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/1.252, allocations: 284.8 kB / 0.5703 GB, free: 86.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004699/1.257, allocations: 1.82 MB / 0.5721 GB, free: 85.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006037/1.257, allocations: 1.179 MB / 0.5733 GB, free: 84.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007906/1.258, allocations: 0.5507 MB / 0.5738 GB, free: 84.9 MB / 442.7 MB Notification: Performance of SimCode: time 1.022e-06/1.258, allocations: 3.188 kB / 0.5738 GB, free: 84.9 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.97/4.228, allocations: 29.7 MB / 0.6028 GB, free: 79.4 MB / 442.7 MB