Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.026/1.026, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.928e-05/2.947e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1984, allocations: 25.14 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07687/0.2753, allocations: 33.73 MB / 210.4 MB, free: 15.63 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/0.2757, allocations: 63.97 kB / 210.4 MB, free: 15.57 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01175/0.2874, allocations: 1.96 MB / 212.4 MB, free: 13.61 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2875, allocations: 0 / 212.4 MB, free: 13.61 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.2875, allocations: 4 kB / 212.4 MB, free: 13.6 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006513/0.2882, allocations: 489 kB / 212.9 MB, free: 13.05 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.83e-05/0.2883, allocations: 12.03 kB / 212.9 MB, free: 13.04 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.687e-05/0.2884, allocations: 38.56 kB / 212.9 MB, free: 13 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.825e-05/0.2884, allocations: 11.91 kB / 212.9 MB, free: 12.98 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.2886, allocations: 178.8 kB / 213.1 MB, free: 12.77 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.2887, allocations: 8 kB / 213.1 MB, free: 12.76 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.2887, allocations: 8 kB / 213.1 MB, free: 12.75 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003415/0.2891, allocations: 90.94 kB / 213.2 MB, free: 12.66 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2891, allocations: 0 / 213.2 MB, free: 12.66 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.023e-05/0.2892, allocations: 7.953 kB / 213.2 MB, free: 12.65 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.2892, allocations: 3.984 kB / 213.2 MB, free: 12.65 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002064/0.2894, allocations: 52 kB / 213.3 MB, free: 12.6 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008197/0.2902, allocations: 344.7 kB / 213.6 MB, free: 12.21 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002388/0.2905, allocations: 66.52 kB / 213.7 MB, free: 12.14 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.2907, allocations: 52.91 kB / 213.7 MB, free: 12.08 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.2907, allocations: 4.094 kB / 213.7 MB, free: 12.08 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003692/0.2911, allocations: 170.6 kB / 213.9 MB, free: 11.89 MB / 186.7 MB Notification: Performance of pre-optimization done (n=11): time 3.346e-06/0.2911, allocations: 0 / 213.9 MB, free: 11.89 MB / 186.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006572/0.2918, allocations: 205 kB / 214.1 MB, free: 11.67 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/0.292, allocations: 166.2 kB / 214.3 MB, free: 11.47 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.2922, allocations: 125.2 kB / 214.4 MB, free: 11.34 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.944e-05/0.2922, allocations: 37.69 kB / 214.4 MB, free: 11.29 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.2924, allocations: 162.5 kB / 214.6 MB, free: 11.13 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.175e-05/0.2924, allocations: 23.7 kB / 214.6 MB, free: 11.11 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.705e-05/0.2925, allocations: 4 kB / 214.6 MB, free: 11.11 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.2927, allocations: 318.8 kB / 214.9 MB, free: 10.79 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.2928, allocations: 39.92 kB / 214.9 MB, free: 10.75 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.293, allocations: 43.94 kB / 215 MB, free: 10.7 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002253/0.2932, allocations: 140.3 kB / 215.1 MB, free: 10.54 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.2933, allocations: 3.953 kB / 215.1 MB, free: 10.54 MB / 186.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0006237/0.2939, allocations: 266.2 kB / 215.4 MB, free: 10.25 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.294, allocations: 114.8 kB / 215.5 MB, free: 10.11 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.2941, allocations: 3.984 kB / 215.5 MB, free: 10.11 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.2941, allocations: 4 kB / 215.5 MB, free: 10.11 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.904e-05/0.2942, allocations: 0 / 215.5 MB, free: 10.11 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.2942, allocations: 0 / 215.5 MB, free: 10.11 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001505/0.2943, allocations: 15.91 kB / 215.5 MB, free: 10.09 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.181e-05/0.2944, allocations: 4 kB / 215.5 MB, free: 10.09 MB / 186.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: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.u2,And1.y,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0002162/0.2946, allocations: 188.3 kB / 215.7 MB, free: 9.883 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.876e-05/0.2947, allocations: 15.86 kB / 215.7 MB, free: 9.867 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.943e-05/0.2948, allocations: 12.61 kB / 215.7 MB, free: 9.852 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.2948, allocations: 3.938 kB / 215.7 MB, free: 9.848 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2948, allocations: 0 / 215.7 MB, free: 9.848 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2948, allocations: 0 / 215.7 MB, free: 9.848 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003011/0.2951, allocations: 205.6 kB / 215.9 MB, free: 9.598 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2952, allocations: 0 / 215.9 MB, free: 9.598 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.379e-05/0.2952, allocations: 3.953 kB / 216 MB, free: 9.594 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.2952, allocations: 0 / 216 MB, free: 9.594 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.277e-05/0.2953, allocations: 16.06 kB / 216 MB, free: 9.578 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.2953, allocations: 0 / 216 MB, free: 9.578 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2953, allocations: 0 / 216 MB, free: 9.578 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006952/0.296, allocations: 272.3 kB / 216.2 MB, free: 9.281 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.301e-05/0.2961, allocations: 93.09 kB / 216.3 MB, free: 9.172 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.2962, allocations: 7.953 kB / 216.3 MB, free: 9.164 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.2963, allocations: 11.98 kB / 216.3 MB, free: 9.152 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.03e-05/0.2964, allocations: 15.98 kB / 216.4 MB, free: 9.137 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.2964, allocations: 4 kB / 216.4 MB, free: 9.133 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000103/0.2965, allocations: 103.3 kB / 216.5 MB, free: 9.031 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2965, allocations: 0 / 216.5 MB, free: 9.031 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004002/0.2969, allocations: 52 kB / 216.5 MB, free: 8.98 MB / 186.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: 11 ($whenCondition1,$whenCondition2,table2.y,table2.nextTime,table2.index,table1.y,table1.nextTime,table1.index,And1.u2,And1.y,Pre1.u) * Number of discrete states: 9 (Pre1.u,table1.y,table1.nextTime,table1.index,$whenCondition1,table2.y,table2.nextTime,table2.index,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.001109/0.2981, allocations: 0.8539 MB / 217.4 MB, free: 8.082 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004638/0.2986, allocations: 329.5 kB / 217.7 MB, free: 7.711 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2986, allocations: 0 / 217.7 MB, free: 7.711 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000248/0.2988, allocations: 194.8 kB / 217.9 MB, free: 7.496 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001577/0.299, allocations: 7.953 kB / 217.9 MB, free: 7.488 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007619/0.2998, allocations: 248.7 kB / 218.1 MB, free: 7.203 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.3001, allocations: 0.7121 MB / 218.8 MB, free: 6.465 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.769e-05/0.3002, allocations: 27.44 kB / 218.9 MB, free: 6.438 MB / 186.7 MB Notification: Performance of SimCode: time 1.002e-06/0.3002, allocations: 0 / 218.9 MB, free: 6.438 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.418/2.718, allocations: 2.073 MB / 220.9 MB, free: 4.367 MB / 186.7 MB