Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.159/2.159, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.839e-05/3.876e-05, allocations: 7.984 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1071, allocations: 50.41 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4681/0.5752, allocations: 104.6 MB / 447.3 MB, free: 5.773 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.5756, allocations: 70.66 kB / 447.3 MB, free: 5.738 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.063/1.639, allocations: 219.8 MB / 0.6515 GB, free: 36.99 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.639, allocations: 0 / 0.6515 GB, free: 36.99 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00845/1.648, allocations: 84 kB / 0.6515 GB, free: 36.91 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.02718/1.675, allocations: 4.655 MB / 0.6561 GB, free: 32.19 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.126e-05/1.675, allocations: 11.97 kB / 0.6561 GB, free: 32.18 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005145/1.68, allocations: 161.2 kB / 0.6563 GB, free: 32.01 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002019/1.682, allocations: 0.743 MB / 0.657 GB, free: 31.26 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02054/1.703, allocations: 4.484 MB / 0.6614 GB, free: 26.69 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.64e-05/1.703, allocations: 69.95 kB / 0.6614 GB, free: 26.62 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000421/1.703, allocations: 95.91 kB / 0.6615 GB, free: 26.53 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003228/1.707, allocations: 1.437 MB / 0.6629 GB, free: 25.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.408e-05/1.707, allocations: 0 / 0.6629 GB, free: 25.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002144/1.707, allocations: 40 kB / 0.663 GB, free: 24.98 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-05/1.707, allocations: 43.97 kB / 0.663 GB, free: 24.94 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003286/1.71, allocations: 1.34 MB / 0.6643 GB, free: 23.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01756/1.728, allocations: 5.855 MB / 0.67 GB, free: 17.65 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001996/1.73, allocations: 0.8709 MB / 0.6709 GB, free: 16.77 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002196/1.732, allocations: 1.168 MB / 0.672 GB, free: 15.6 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4374/2.169, allocations: 71.68 MB / 0.742 GB, free: 21.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001065/2.171, allocations: 0.5027 MB / 0.7425 GB, free: 21.65 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 4.258e-06/2.171, allocations: 3.281 kB / 0.7425 GB, free: 21.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.003328/2.174, allocations: 1.457 MB / 0.7439 GB, free: 21.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/2.174, allocations: 482.7 kB / 0.7444 GB, free: 20.68 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01111/2.185, allocations: 4.761 MB / 0.7491 GB, free: 20.22 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002887/2.186, allocations: 38.83 kB / 0.7491 GB, free: 20.19 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003112/2.189, allocations: 2.376 MB / 0.7514 GB, free: 19.81 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005192/2.189, allocations: 295 kB / 0.7517 GB, free: 19.67 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/2.189, allocations: 31.09 kB / 0.7517 GB, free: 19.67 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/2.19, allocations: 376.2 kB / 0.7521 GB, free: 19.36 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009035/2.191, allocations: 345 kB / 0.7524 GB, free: 19.35 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/2.192, allocations: 1.111 MB / 0.7535 GB, free: 18.36 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001418/2.193, allocations: 0.5173 MB / 0.754 GB, free: 18.35 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.958e-05/2.193, allocations: 6.812 kB / 0.754 GB, free: 18.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003766/2.197, allocations: 1.418 MB / 0.7554 GB, free: 18.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.798e-05/2.197, allocations: 15.16 kB / 0.7554 GB, free: 18.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002845/2.198, allocations: 162.9 kB / 0.7556 GB, free: 18.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.03e-05/2.198, allocations: 40.58 kB / 0.7556 GB, free: 18.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002333/2.2, allocations: 373.3 kB / 0.756 GB, free: 18.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-05/2.2, allocations: 47.8 kB / 0.756 GB, free: 18.26 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004068/2.204, allocations: 205.6 kB / 0.7562 GB, free: 18.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004485/2.205, allocations: 123.2 kB / 0.7563 GB, free: 18.21 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0003884/2.205, allocations: 219.2 kB / 0.7565 GB, free: 18.11 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001281/2.206, allocations: 0.7178 MB / 0.7572 GB, free: 17.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00887/2.215, allocations: 2.12 MB / 0.7593 GB, free: 33.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.833e-05/2.215, allocations: 10.22 kB / 0.7593 GB, free: 33.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/2.215, allocations: 7.234 kB / 0.7593 GB, free: 33.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/2.215, allocations: 6.656 kB / 0.7593 GB, free: 33.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009733/2.225, allocations: 3.707 MB / 0.7629 GB, free: 33.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002752/2.225, allocations: 137.2 kB / 0.7631 GB, free: 33.13 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001498/2.227, allocations: 166 kB / 0.7632 GB, free: 33.13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-05/2.227, allocations: 3.875 kB / 0.7632 GB, free: 33.13 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001954/2.227, allocations: 59.56 kB / 0.7633 GB, free: 33.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.457e-06/2.227, allocations: 8.844 kB / 0.7633 GB, free: 33.13 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/2.227, allocations: 0 / 0.7633 GB, free: 33.13 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004267/2.231, allocations: 2.093 MB / 0.7653 GB, free: 32.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002824/2.234, allocations: 0.9318 MB / 0.7662 GB, free: 31.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001583/2.236, allocations: 20.88 kB / 0.7663 GB, free: 31.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003135/2.239, allocations: 47.78 kB / 0.7663 GB, free: 31.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004271/2.24, allocations: 100.9 kB / 0.7664 GB, free: 31.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001831/2.24, allocations: 67.5 kB / 0.7665 GB, free: 31.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008772/2.249, allocations: 3.616 MB / 0.77 GB, free: 31.61 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.042e-06/2.249, allocations: 0 / 0.77 GB, free: 31.61 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004342/2.253, allocations: 1.165 MB / 0.7711 GB, free: 31.59 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.007422/2.26, allocations: 3.859 MB / 0.7749 GB, free: 30.34 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00309/2.264, allocations: 1.286 MB / 0.7762 GB, free: 30.09 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/2.264, allocations: 3.625 kB / 0.7762 GB, free: 30.09 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/2.265, allocations: 0.7089 MB / 0.7769 GB, free: 29.83 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008455/2.274, allocations: 1.159 MB / 0.778 GB, free: 29.76 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02044/2.294, allocations: 7.039 MB / 0.7849 GB, free: 27.76 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003632/2.298, allocations: 2.711 MB / 0.7875 GB, free: 26.98 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003979/2.302, allocations: 2.424 MB / 0.7899 GB, free: 26.97 MB / 458.7 MB Notification: Performance of SimCode: time 2.154e-06/2.302, allocations: 0 / 0.7899 GB, free: 26.97 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.631/6.933, allocations: 90.08 MB / 0.8779 GB, free: 107.1 MB / 490.7 MB