Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.434/2.434, allocations: 270 MB / 282.6 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.802e-05/3.814e-05, allocations: 4 kB / 347.1 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4157/0.4158, allocations: 61.87 MB / 408.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.206/0.6219, allocations: 88.62 MB / 497.5 MB, free: 1.898 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003844/0.6223, allocations: 75.95 kB / 497.6 MB, free: 1.824 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03536/0.6577, allocations: 4.742 MB / 0.4906 GB, free: 13.06 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.6578, allocations: 4 kB / 0.4906 GB, free: 13.06 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.369e-05/0.6579, allocations: 4 kB / 0.4906 GB, free: 13.05 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001959/0.6598, allocations: 0.5606 MB / 0.4911 GB, free: 12.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.407e-05/0.6599, allocations: 8.031 kB / 0.4912 GB, free: 12.44 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001482/0.6601, allocations: 66.53 kB / 0.4912 GB, free: 12.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001484/0.6603, allocations: 31.62 kB / 0.4912 GB, free: 12.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006248/0.6609, allocations: 254.8 kB / 0.4915 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.382e-05/0.661, allocations: 28.52 kB / 0.4915 GB, free: 12.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-05/0.6611, allocations: 24 kB / 0.4915 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.6623, allocations: 291.5 kB / 0.4918 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.6624, allocations: 0 / 0.4918 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-05/0.6625, allocations: 12 kB / 0.4918 GB, free: 11.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.6625, allocations: 11.98 kB / 0.4918 GB, free: 11.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.6636, allocations: 201 kB / 0.492 GB, free: 11.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005516/0.6691, allocations: 1.3 MB / 0.4933 GB, free: 10.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001491/0.6707, allocations: 437.2 kB / 0.4937 GB, free: 9.625 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005953/0.6713, allocations: 149.2 kB / 0.4939 GB, free: 9.477 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.222e-05/0.6714, allocations: 240 / 0.4939 GB, free: 9.477 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.906e-05/0.6714, allocations: 38.73 kB / 0.4939 GB, free: 9.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 3.577e-06/0.6715, allocations: 4 kB / 0.4939 GB, free: 9.426 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.002505/0.674, allocations: 402.3 kB / 0.4943 GB, free: 9.023 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.6741, allocations: 55.41 kB / 0.4943 GB, free: 8.957 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005594/0.6747, allocations: 213.1 kB / 0.4945 GB, free: 8.738 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.6748, allocations: 29.7 kB / 0.4946 GB, free: 8.703 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.675, allocations: 226.6 kB / 0.4948 GB, free: 8.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.6752, allocations: 94.64 kB / 0.4949 GB, free: 8.387 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.6753, allocations: 4 kB / 0.4949 GB, free: 8.383 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.6755, allocations: 322.8 kB / 0.4952 GB, free: 8.059 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003808/0.6759, allocations: 80.5 kB / 0.4953 GB, free: 7.977 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/0.6764, allocations: 115.3 kB / 0.4954 GB, free: 7.855 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004084/0.6768, allocations: 79.97 kB / 0.4955 GB, free: 7.777 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.6768, allocations: 0 / 0.4955 GB, free: 7.777 MB / 426.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.002555/0.6794, allocations: 427.5 kB / 0.4959 GB, free: 7.348 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.061e-05/0.6795, allocations: 4 kB / 0.4959 GB, free: 7.344 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.6795, allocations: 8 kB / 0.4959 GB, free: 7.336 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002408/0.682, allocations: 229.5 kB / 0.4961 GB, free: 7.105 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004439/0.6825, allocations: 23.98 kB / 0.4961 GB, free: 7.082 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007616/0.6901, allocations: 3.265 MB / 0.4993 GB, free: 3.547 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006434/0.6908, allocations: 35.73 kB / 0.4993 GB, free: 3.512 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.6909, allocations: 8 kB / 0.4993 GB, free: 3.504 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002262/0.6911, allocations: 121 kB / 0.4995 GB, free: 3.379 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.6913, allocations: 31.7 kB / 0.4995 GB, free: 3.348 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001335/0.6915, allocations: 30.88 kB / 0.4995 GB, free: 3.316 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.6915, allocations: 4 kB / 0.4995 GB, free: 3.312 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.6915, allocations: 0 / 0.4995 GB, free: 3.312 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.6915, allocations: 3.984 kB / 0.4995 GB, free: 3.309 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003712/0.6953, allocations: 0.8623 MB / 0.5004 GB, free: 2.387 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.6953, allocations: 0 / 0.5004 GB, free: 2.387 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002709/0.6956, allocations: 20 kB / 0.5004 GB, free: 2.367 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002355/0.698, allocations: 233.5 kB / 0.5006 GB, free: 2.133 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.378e-05/0.6981, allocations: 0 / 0.5006 GB, free: 2.133 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00745/0.7056, allocations: 3.277 MB / 0.5038 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.7057, allocations: 3.938 kB / 0.5038 GB, free: 14.58 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002257/0.7079, allocations: 0.4967 MB / 0.5043 GB, free: 14.06 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003359/0.7083, allocations: 120.7 kB / 0.5044 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.22e-05/0.7084, allocations: 4 kB / 0.5044 GB, free: 13.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006326/0.7091, allocations: 35.92 kB / 0.5045 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001843/0.7093, allocations: 31.95 kB / 0.5045 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.557e-05/0.7094, allocations: 12 kB / 0.5045 GB, free: 13.84 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003727/0.7097, allocations: 165.4 kB / 0.5047 GB, free: 13.69 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.7098, allocations: 0 / 0.5047 GB, free: 13.69 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001034/0.7108, allocations: 107.8 kB / 0.5048 GB, free: 13.58 MB / 442.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: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002755/0.7136, allocations: 1.053 MB / 0.5058 GB, free: 12.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001962/0.7156, allocations: 487.4 kB / 0.5062 GB, free: 12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/0.7157, allocations: 0 / 0.5062 GB, free: 12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001319/0.7171, allocations: 403.2 kB / 0.5066 GB, free: 11.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007945/0.7179, allocations: 42.05 kB / 0.5067 GB, free: 11.55 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.72, allocations: 430.9 kB / 0.5071 GB, free: 11.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005807/0.7206, allocations: 0.7718 MB / 0.5078 GB, free: 10.29 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002786/0.7209, allocations: 75.41 kB / 0.5079 GB, free: 10.21 MB / 442.7 MB Notification: Performance of SimCode: time 1.272e-06/0.7209, allocations: 0 / 0.5079 GB, free: 10.21 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.104/3.825, allocations: 6.494 MB / 0.5142 GB, free: 3.727 MB / 442.7 MB