Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.988/1.988, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.454e-05/3.46e-05, allocations: 6.5 kB / 292.2 MB, free: 8.766 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1077, allocations: 50.41 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4524/0.5602, allocations: 77.89 MB / 420.5 MB, free: 15.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.5605, allocations: 69.27 kB / 420.6 MB, free: 15.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01289/0.5734, allocations: 2.671 MB / 423.3 MB, free: 13.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.5735, allocations: 0 / 423.3 MB, free: 13.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.084e-05/0.5735, allocations: 4 kB / 423.3 MB, free: 13.54 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009628/0.5745, allocations: 484.9 kB / 423.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.118e-05/0.5746, allocations: 8.031 kB / 423.7 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.802e-05/0.5747, allocations: 52.73 kB / 423.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.652e-05/0.5747, allocations: 19.72 kB / 423.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003553/0.5751, allocations: 232.6 kB / 424 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.5751, allocations: 11.84 kB / 424 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.5752, allocations: 11.38 kB / 424.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004248/0.5756, allocations: 188.8 kB / 424.2 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.5757, allocations: 3.938 kB / 424.2 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.658e-05/0.5757, allocations: 7.5 kB / 424.3 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.662e-05/0.5757, allocations: 4 kB / 424.3 MB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003408/0.5761, allocations: 116.9 kB / 424.4 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.5777, allocations: 0.7864 MB / 425.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.5781, allocations: 143.2 kB / 425.3 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.5783, allocations: 63.14 kB / 425.4 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.96e-05/0.5784, allocations: 7.984 kB / 425.4 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003061/0.5787, allocations: 133.4 kB / 425.5 MB, free: 11.35 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.066e-06/0.5787, allocations: 0 / 425.5 MB, free: 11.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004864/0.5792, allocations: 164.7 kB / 425.7 MB, free: 11.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.5793, allocations: 77.11 kB / 425.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.5796, allocations: 187 kB / 425.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.5796, allocations: 25.7 kB / 425.9 MB, free: 10.92 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.5797, allocations: 201.8 kB / 426.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.837e-05/0.5798, allocations: 42.06 kB / 426.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.821e-05/0.5798, allocations: 7.125 kB / 426.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.58, allocations: 317.6 kB / 426.5 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001603/0.5802, allocations: 59.61 kB / 426.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.5804, allocations: 110.6 kB / 426.7 MB, free: 10.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.5806, allocations: 65.03 kB / 426.7 MB, free: 10.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.5806, allocations: 3.953 kB / 426.7 MB, free: 10.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004943/0.5811, allocations: 205.3 kB / 426.9 MB, free: 10.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.5811, allocations: 4 kB / 426.9 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.5812, allocations: 112 / 426.9 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.5812, allocations: 7.938 kB / 426.9 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003107/0.5815, allocations: 43.72 kB / 427 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.5815, allocations: 4.234 kB / 427 MB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002889/0.5818, allocations: 38.88 kB / 427 MB, free: 9.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.654e-05/0.5819, allocations: 8 kB / 427 MB, free: 9.914 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001276/0.582, allocations: 131.5 kB / 427.2 MB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.452e-05/0.5821, allocations: 19.77 kB / 427.2 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005387/0.5826, allocations: 190.5 kB / 427.4 MB, free: 9.613 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.5827, allocations: 8 kB / 427.4 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.5827, allocations: 0 / 427.4 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.5827, allocations: 0 / 427.4 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000368/0.5831, allocations: 264.2 kB / 427.6 MB, free: 9.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.5831, allocations: 3.984 kB / 427.6 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.5833, allocations: 31.19 kB / 427.7 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.5833, allocations: 0 / 427.7 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/0.5834, allocations: 4 kB / 427.7 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.5834, allocations: 0 / 427.7 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.5834, allocations: 0 / 427.7 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004466/0.5838, allocations: 214.7 kB / 427.9 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.385e-05/0.5839, allocations: 100.2 kB / 428 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.629e-05/0.584, allocations: 0 / 428 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.5842, allocations: 26.92 kB / 428 MB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.5e-05/0.5843, allocations: 15.97 kB / 428 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.5844, allocations: 6.5 kB / 428 MB, free: 8.938 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001661/0.5845, allocations: 143.6 kB / 428.2 MB, free: 8.816 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5845, allocations: 0 / 428.2 MB, free: 8.816 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003591/0.5849, allocations: 43.22 kB / 428.2 MB, free: 8.777 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008339/0.5858, allocations: 0.8252 MB / 429 MB, free: 7.953 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004274/0.5862, allocations: 151.2 kB / 429.2 MB, free: 7.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5862, allocations: 192 / 429.2 MB, free: 7.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000204/0.5864, allocations: 63.92 kB / 429.2 MB, free: 7.793 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004542/0.5869, allocations: 46.75 kB / 429.3 MB, free: 7.758 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.5879, allocations: 349.8 kB / 429.6 MB, free: 7.414 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.5884, allocations: 0.7437 MB / 430.4 MB, free: 6.641 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.5885, allocations: 60.61 kB / 430.4 MB, free: 6.617 MB / 346.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5885, allocations: 4 kB / 430.4 MB, free: 6.613 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.488/3.077, allocations: 3.139 MB / 433.6 MB, free: 3.516 MB / 346.7 MB