Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.53/2.53, allocations: 270 MB / 282.7 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.041e-05/4.046e-05, allocations: 7.984 kB / 347 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.421/0.421, allocations: 61.86 MB / 408.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1745/0.5956, allocations: 85.89 MB / 494.8 MB, free: 4.746 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.596, allocations: 55.98 kB / 494.9 MB, free: 4.691 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007003/0.603, allocations: 1.496 MB / 496.4 MB, free: 3.188 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.6031, allocations: 0 / 496.4 MB, free: 3.188 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.258e-05/0.6031, allocations: 4 kB / 496.4 MB, free: 3.184 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007087/0.6038, allocations: 406.5 kB / 496.8 MB, free: 2.738 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.344e-05/0.6039, allocations: 8.031 kB / 496.8 MB, free: 2.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000163/0.6041, allocations: 62.89 kB / 496.8 MB, free: 2.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.948e-05/0.6042, allocations: 27.66 kB / 496.8 MB, free: 2.633 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004477/0.6047, allocations: 226.9 kB / 497.1 MB, free: 2.371 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.6047, allocations: 16.44 kB / 497.1 MB, free: 2.355 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.322e-05/0.6048, allocations: 20 kB / 497.1 MB, free: 2.336 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006916/0.6055, allocations: 198.4 kB / 497.3 MB, free: 2.133 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.6056, allocations: 0 / 497.3 MB, free: 2.133 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.732e-05/0.6056, allocations: 8 kB / 497.3 MB, free: 2.125 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.6056, allocations: 4 kB / 497.3 MB, free: 2.121 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004248/0.6061, allocations: 116.8 kB / 497.4 MB, free: 2.008 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.6075, allocations: 0.5217 MB / 497.9 MB, free: 1.434 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001259/0.6077, allocations: 34.52 kB / 498 MB, free: 1.391 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.771e-05/0.6078, allocations: 24.98 kB / 498 MB, free: 1.363 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.6078, allocations: 0 / 498 MB, free: 1.363 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.6079, allocations: 34.56 kB / 498 MB, free: 1.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=5): time 3.376e-06/0.6079, allocations: 4 kB / 498 MB, free: 1.316 MB / 410.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002544/0.6082, allocations: 53.59 kB / 498.1 MB, free: 1.258 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.6083, allocations: 51.41 kB / 498.1 MB, free: 1.195 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.6084, allocations: 97 kB / 498.2 MB, free: 1.094 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.6085, allocations: 29.7 kB / 498.3 MB, free: 1.059 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.6086, allocations: 210.4 kB / 498.5 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.869e-05/0.6087, allocations: 19.73 kB / 498.5 MB, free: 0.8281 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.962e-06/0.6087, allocations: 4 kB / 498.5 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.6089, allocations: 314.8 kB / 498.8 MB, free: 0.5078 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.433e-05/0.6089, allocations: 12 kB / 498.8 MB, free: 0.4961 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.374e-05/0.609, allocations: 7.938 kB / 498.8 MB, free: 500 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.552e-05/0.6091, allocations: 12.17 kB / 498.8 MB, free: 488 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.6091, allocations: 3.938 kB / 498.8 MB, free: 484 kB / 410.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001694/0.6093, allocations: 53.61 kB / 498.9 MB, free: 424 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.6093, allocations: 8 kB / 498.9 MB, free: 416 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.6093, allocations: 0 / 498.9 MB, free: 416 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.6094, allocations: 0 / 498.9 MB, free: 416 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.6096, allocations: 11.98 kB / 498.9 MB, free: 404 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.6096, allocations: 4 kB / 498.9 MB, free: 400 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.037e-05/0.6097, allocations: 4 kB / 498.9 MB, free: 396 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.6097, allocations: 320 / 498.9 MB, free: 396 kB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.0001058/0.6098, allocations: 112.9 kB / 499 MB, free: 276 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.065e-05/0.6099, allocations: 0 / 499 MB, free: 276 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.365e-05/0.61, allocations: 12.09 kB / 499 MB, free: 260 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.61, allocations: 7.922 kB / 499.1 MB, free: 252 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.61, allocations: 0 / 499.1 MB, free: 252 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.61, allocations: 0 / 499.1 MB, free: 252 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007394/0.6108, allocations: 362.4 kB / 499.4 MB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.6108, allocations: 3.938 kB / 499.4 MB, free: 15.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.611, allocations: 8 kB / 499.4 MB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.611, allocations: 0 / 499.4 MB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.611, allocations: 0 / 499.4 MB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.656e-06/0.611, allocations: 3.938 kB / 499.4 MB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.6111, allocations: 4 kB / 499.4 MB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002147/0.6113, allocations: 151.5 kB / 499.6 MB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.972e-05/0.6114, allocations: 84.95 kB / 499.7 MB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.841e-05/0.6114, allocations: 11.98 kB / 499.7 MB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.6116, allocations: 192 / 499.7 MB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.565e-05/0.6116, allocations: 4 kB / 499.7 MB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-06/0.6117, allocations: 4 kB / 499.7 MB, free: 15.53 MB / 426.7 MB Notification: Performance of sorting global known variables: time 8.56e-05/0.6118, allocations: 95.25 kB / 499.8 MB, free: 15.44 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.6118, allocations: 0 / 499.8 MB, free: 15.44 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005505/0.6123, allocations: 27.84 kB / 499.8 MB, free: 15.41 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0006951/0.6131, allocations: 0.6967 MB / 0.4888 GB, free: 14.69 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001644/0.6133, allocations: 20.06 kB / 0.4888 GB, free: 14.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.6133, allocations: 0 / 0.4888 GB, free: 14.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.803e-05/0.6134, allocations: 12 kB / 0.4888 GB, free: 14.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/0.6137, allocations: 15.94 kB / 0.4888 GB, free: 14.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/0.6151, allocations: 289.5 kB / 0.4891 GB, free: 14.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.6155, allocations: 0.7394 MB / 0.4898 GB, free: 13.55 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.6157, allocations: 43.42 kB / 0.4898 GB, free: 13.51 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6157, allocations: 0 / 0.4898 GB, free: 13.51 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.375/2.991, allocations: 1.88 MB / 0.4917 GB, free: 11.63 MB / 426.7 MB