Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.351/2.351, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.69e-05/3.696e-05, allocations: 3 kB / 249.7 MB, free: 5.25 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1397, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5668/0.7066, allocations: 70.87 MB / 365.1 MB, free: 7.164 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.707, allocations: 61.53 kB / 365.2 MB, free: 7.164 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0129/0.7199, allocations: 2.057 MB / 367.2 MB, free: 22.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.72, allocations: 0 / 367.2 MB, free: 22.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.72, allocations: 4 kB / 367.2 MB, free: 22.78 MB / 314.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.000514/0.7205, allocations: 482.2 kB / 367.7 MB, free: 22.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.7206, allocations: 7.75 kB / 367.7 MB, free: 22.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.507e-05/0.7206, allocations: 41.81 kB / 367.8 MB, free: 22.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.264e-05/0.7207, allocations: 11.66 kB / 367.8 MB, free: 22.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.7208, allocations: 185.8 kB / 368 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.7209, allocations: 3.875 kB / 368 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.4e-05/0.7209, allocations: 7.719 kB / 368 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002161/0.7212, allocations: 39.66 kB / 368 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002387/0.7214, allocations: 93.39 kB / 368.1 MB, free: 22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.7214, allocations: 0 / 368.1 MB, free: 22 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.228e-05/0.7215, allocations: 0.875 kB / 368.1 MB, free: 22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.7215, allocations: 3.844 kB / 368.1 MB, free: 22 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006169/0.7221, allocations: 310.9 kB / 368.4 MB, free: 21.76 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.7223, allocations: 76.58 kB / 368.5 MB, free: 21.73 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001132/0.7225, allocations: 42.42 kB / 368.5 MB, free: 21.72 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.7225, allocations: 0 / 368.5 MB, free: 21.72 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002673/0.7228, allocations: 162.1 kB / 368.7 MB, free: 21.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.755e-06/0.7228, allocations: 0 / 368.7 MB, free: 21.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005164/0.7233, allocations: 146.5 kB / 368.8 MB, free: 21.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.229e-05/0.7234, allocations: 176.1 kB / 369 MB, free: 21.37 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.7236, allocations: 120.9 kB / 369.1 MB, free: 21.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.7236, allocations: 33.52 kB / 369.1 MB, free: 21.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.357e-05/0.7237, allocations: 94.44 kB / 369.2 MB, free: 21.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.949e-05/0.7237, allocations: 24.47 kB / 369.3 MB, free: 21.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.263e-05/0.7238, allocations: 0 / 369.3 MB, free: 21.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.7239, allocations: 324.6 kB / 369.6 MB, free: 20.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.7241, allocations: 32.41 kB / 369.6 MB, free: 20.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.7242, allocations: 28.27 kB / 369.6 MB, free: 20.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001942/0.7244, allocations: 42.22 kB / 369.7 MB, free: 20.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.7244, allocations: 0 / 369.7 MB, free: 20.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004898/0.7249, allocations: 152.8 kB / 369.8 MB, free: 20.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.7251, allocations: 119.2 kB / 369.9 MB, free: 20.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.7251, allocations: 4 kB / 369.9 MB, free: 20.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.7251, allocations: 3.938 kB / 370 MB, free: 20.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.166e-05/0.7252, allocations: 0 / 370 MB, free: 20.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.7252, allocations: 0 / 370 MB, free: 20.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.7254, allocations: 14.45 kB / 370 MB, free: 20.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.186e-05/0.7254, allocations: 11.84 kB / 370 MB, free: 20.64 MB / 314.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.0002161/0.7257, allocations: 183 kB / 370.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.084e-05/0.7257, allocations: 11.66 kB / 370.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.753e-05/0.7258, allocations: 4.625 kB / 370.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.7258, allocations: 3.875 kB / 370.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.7258, allocations: 0 / 370.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.7258, allocations: 2.25 kB / 370.2 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002207/0.7261, allocations: 183.3 kB / 370.4 MB, free: 20.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.7261, allocations: 4 kB / 370.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.134e-05/0.7261, allocations: 0 / 370.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.7261, allocations: 0 / 370.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.853e-05/0.7262, allocations: 7.469 kB / 370.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.7262, allocations: 0 / 370.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.7262, allocations: 0 / 370.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005213/0.7267, allocations: 201.3 kB / 370.6 MB, free: 20.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.504e-05/0.7268, allocations: 89.03 kB / 370.7 MB, free: 20.12 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.547e-05/0.7269, allocations: 11.25 kB / 370.7 MB, free: 20.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.7271, allocations: 17.59 kB / 370.7 MB, free: 20.11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.331e-05/0.7272, allocations: 9.156 kB / 370.7 MB, free: 20.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.7272, allocations: 7.125 kB / 370.7 MB, free: 20.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.44e-05/0.7273, allocations: 96.98 kB / 370.8 MB, free: 20.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.7273, allocations: 0 / 370.8 MB, free: 20.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004937/0.7278, allocations: 52.58 kB / 370.8 MB, free: 20.03 MB / 314.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.001119/0.729, allocations: 0.7815 MB / 371.6 MB, free: 19.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005005/0.7295, allocations: 319.2 kB / 371.9 MB, free: 19.16 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.7295, allocations: 0 / 371.9 MB, free: 19.16 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002664/0.7298, allocations: 185.7 kB / 372.1 MB, free: 19.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001847/0.73, allocations: 13.02 kB / 372.1 MB, free: 19.04 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008004/0.7308, allocations: 210.8 kB / 372.3 MB, free: 18.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.7312, allocations: 0.7115 MB / 373 MB, free: 18.21 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.955e-05/0.7312, allocations: 3.938 kB / 373.1 MB, free: 18.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.095e-05/0.7313, allocations: 27.77 kB / 373.1 MB, free: 18.2 MB / 314.7 MB Notification: Performance of SimCode: time 1.162e-06/0.7313, allocations: 0 / 373.1 MB, free: 18.2 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04987/0.7812, allocations: 2.268 MB / 375.3 MB, free: 18.02 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003133/0.7816, allocations: 126.1 kB / 375.5 MB, free: 17.83 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.016/3.798, allocations: 11.75 kB / 375.5 MB, free: 17.82 MB / 314.7 MB "" Variables in the reference:time,Pre1.u,table1.y,table2.y Variables in the result:And1.u1,And1.u2,And1.y,Not1.u,Not1.y,Or1.u1,Or1.u2,Or1.y,Pre1.pre_u_start,Pre1.u,Pre1.y,_D_whenCondition1,_D_whenCondition2,table1.index,table1.n,table1.nextTime,table1.startValue,table1.table[1],table1.table[2],table1.table[3],table1.table[4],table1.y,table2.index,table2.n,table2.nextTime,table2.startValue,table2.table[1],table2.table[2],table2.table[3],table2.table[4],table2.y,time