Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.057/2.057, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.211e-05/3.216e-05, allocations: 4 kB / 292.2 MB, free: 8.762 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50.41 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4495/0.5592, allocations: 78.31 MB / 420.9 MB, free: 15.44 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/0.5596, allocations: 64.72 kB / 421 MB, free: 15.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01373/0.5733, allocations: 2.801 MB / 423.8 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5734, allocations: 0 / 423.8 MB, free: 13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.658e-05/0.5734, allocations: 8 kB / 423.8 MB, free: 12.99 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001078/0.5745, allocations: 476.4 kB / 424.3 MB, free: 12.49 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.5746, allocations: 8.031 kB / 424.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.518e-05/0.5747, allocations: 56.12 kB / 424.3 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.393e-05/0.5748, allocations: 19.72 kB / 424.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004103/0.5752, allocations: 239.8 kB / 424.6 MB, free: 12.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.079e-05/0.5752, allocations: 15.38 kB / 424.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.45e-05/0.5753, allocations: 17.44 kB / 424.6 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005016/0.5758, allocations: 185 kB / 424.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.5758, allocations: 0 / 424.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.5759, allocations: 14.36 kB / 424.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.883e-05/0.5759, allocations: 15.94 kB / 424.8 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003454/0.5763, allocations: 107.3 kB / 424.9 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.5781, allocations: 0.8073 MB / 425.7 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009384/0.5791, allocations: 190.2 kB / 425.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.5793, allocations: 54.09 kB / 426 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.375e-05/0.5794, allocations: 4.172 kB / 426 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003226/0.5798, allocations: 141 kB / 426.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.295e-06/0.5798, allocations: 0 / 426.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005397/0.5803, allocations: 163.2 kB / 426.3 MB, free: 10.59 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.724e-05/0.5804, allocations: 85.11 kB / 426.4 MB, free: 10.49 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003006/0.5807, allocations: 192.1 kB / 426.5 MB, free: 10.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.5808, allocations: 33.64 kB / 426.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.5809, allocations: 197.9 kB / 426.8 MB, free: 10.1 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.731e-05/0.581, allocations: 27.39 kB / 426.8 MB, free: 10.08 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.856e-05/0.581, allocations: 7.875 kB / 426.8 MB, free: 10.08 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.5812, allocations: 318.6 kB / 427.1 MB, free: 9.762 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.5813, allocations: 54.98 kB / 427.2 MB, free: 9.723 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002214/0.5816, allocations: 123.6 kB / 427.3 MB, free: 9.594 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.5818, allocations: 79.08 kB / 427.4 MB, free: 9.535 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.5818, allocations: 0 / 427.4 MB, free: 9.535 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005467/0.5824, allocations: 204.1 kB / 427.6 MB, free: 9.367 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.5824, allocations: 11.89 kB / 427.6 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.5825, allocations: 8.25 kB / 427.6 MB, free: 9.348 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.5825, allocations: 4 kB / 427.6 MB, free: 9.344 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003452/0.5828, allocations: 35.92 kB / 427.6 MB, free: 9.312 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.903e-05/0.5829, allocations: 11.92 kB / 427.6 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00032/0.5832, allocations: 35.73 kB / 427.7 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.057e-05/0.5833, allocations: 11.88 kB / 427.7 MB, free: 9.258 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001819/0.5835, allocations: 134.9 kB / 427.8 MB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.35e-05/0.5835, allocations: 15.81 kB / 427.8 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004006/0.5839, allocations: 133.4 kB / 428 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.584, allocations: 0 / 428 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.584, allocations: 4 kB / 428 MB, free: 9 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.584, allocations: 0 / 428 MB, free: 9 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009502/0.5849, allocations: 478.7 kB / 428.4 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.585, allocations: 3.953 kB / 428.4 MB, free: 8.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.5852, allocations: 23.86 kB / 428.5 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/0.5853, allocations: 3.938 kB / 428.5 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.5853, allocations: 7.969 kB / 428.5 MB, free: 8.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.583e-06/0.5853, allocations: 4 kB / 428.5 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.5853, allocations: 0 / 428.5 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005195/0.5858, allocations: 279.8 kB / 428.8 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.502e-05/0.5859, allocations: 92.98 kB / 428.8 MB, free: 8.117 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.968e-05/0.586, allocations: 7.984 kB / 428.9 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003044/0.5863, allocations: 23.86 kB / 428.9 MB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.5864, allocations: 23.59 kB / 428.9 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-05/0.5865, allocations: 7.984 kB / 428.9 MB, free: 8.062 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001976/0.5867, allocations: 143.3 kB / 429 MB, free: 7.941 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5867, allocations: 0 / 429 MB, free: 7.941 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004782/0.5872, allocations: 43.78 kB / 429.1 MB, free: 7.906 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: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001066/0.5883, allocations: 0.9114 MB / 430 MB, free: 6.992 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004834/0.5888, allocations: 142.7 kB / 430.1 MB, free: 6.887 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.5888, allocations: 0 / 430.1 MB, free: 6.887 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.5891, allocations: 62.61 kB / 430.2 MB, free: 6.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/0.5895, allocations: 34.12 kB / 430.2 MB, free: 6.816 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.5907, allocations: 328.9 kB / 430.6 MB, free: 6.492 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.5912, allocations: 0.7365 MB / 431.3 MB, free: 5.727 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001943/0.5914, allocations: 65.67 kB / 431.4 MB, free: 5.699 MB / 346.7 MB Notification: Performance of SimCode: time 1.623e-06/0.5914, allocations: 0 / 431.4 MB, free: 5.699 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.503/3.094, allocations: 3.137 MB / 434.5 MB, free: 2.594 MB / 346.7 MB