Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_1_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.657/1.657, allocations: 171.2 MB / 183.3 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.71e-05/3.72e-05, allocations: 11.98 kB / 225.1 MB, free: 2.211 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2576, allocations: 38.76 MB / 263.8 MB, free: 9.789 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1171/0.3747, allocations: 66.22 MB / 330.1 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.3751, allocations: 63.97 kB / 330.1 MB, free: 7.414 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009807/0.3849, allocations: 2.084 MB / 332.2 MB, free: 5.324 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3849, allocations: 0 / 332.2 MB, free: 5.324 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.3849, allocations: 0 / 332.2 MB, free: 5.324 MB / 282.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.0005474/0.3855, allocations: 481.1 kB / 332.7 MB, free: 4.785 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.3856, allocations: 8.031 kB / 332.7 MB, free: 4.777 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.015e-05/0.3856, allocations: 42.55 kB / 332.7 MB, free: 4.727 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.013e-05/0.3857, allocations: 11.91 kB / 332.7 MB, free: 4.715 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.3859, allocations: 170.9 kB / 332.9 MB, free: 4.508 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.3859, allocations: 8 kB / 332.9 MB, free: 4.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.3859, allocations: 8 kB / 332.9 MB, free: 4.492 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.3862, allocations: 97.56 kB / 333 MB, free: 4.391 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.3862, allocations: 4 kB / 333 MB, free: 4.387 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.3863, allocations: 7.984 kB / 333 MB, free: 4.379 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.3863, allocations: 0 / 333 MB, free: 4.379 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001532/0.3865, allocations: 48 kB / 333.1 MB, free: 4.332 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006118/0.3871, allocations: 340.6 kB / 333.4 MB, free: 3.949 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001916/0.3873, allocations: 74.56 kB / 333.5 MB, free: 3.867 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.3874, allocations: 52.86 kB / 333.5 MB, free: 3.812 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.297e-06/0.3875, allocations: 0 / 333.5 MB, free: 3.812 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002844/0.3878, allocations: 162.8 kB / 333.7 MB, free: 3.629 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.295e-06/0.3878, allocations: 0 / 333.7 MB, free: 3.629 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005011/0.3883, allocations: 213 kB / 333.9 MB, free: 3.402 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.3884, allocations: 170.2 kB / 334.1 MB, free: 3.199 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.3886, allocations: 125.1 kB / 334.2 MB, free: 3.066 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/0.3886, allocations: 29.7 kB / 334.2 MB, free: 3.031 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.008e-05/0.3887, allocations: 104 kB / 334.3 MB, free: 2.926 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.828e-05/0.3887, allocations: 23.7 kB / 334.3 MB, free: 2.902 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.563e-05/0.3888, allocations: 11.94 kB / 334.4 MB, free: 2.891 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.3889, allocations: 322.8 kB / 334.7 MB, free: 2.566 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.389, allocations: 39.98 kB / 334.7 MB, free: 2.527 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.3892, allocations: 29.88 kB / 334.7 MB, free: 2.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.3894, allocations: 154.8 kB / 334.9 MB, free: 2.324 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3894, allocations: 0 / 334.9 MB, free: 2.324 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004667/0.3899, allocations: 268.9 kB / 335.2 MB, free: 2.031 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.175e-05/0.39, allocations: 121 kB / 335.3 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.39, allocations: 4 kB / 335.3 MB, free: 1.887 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.39, allocations: 0 / 335.3 MB, free: 1.887 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.566e-05/0.3901, allocations: 4 kB / 335.3 MB, free: 1.883 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.3901, allocations: 0 / 335.3 MB, free: 1.883 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.3902, allocations: 4 kB / 335.3 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.085e-05/0.3902, allocations: 12 kB / 335.3 MB, free: 1.867 MB / 282.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.0001695/0.3904, allocations: 192.2 kB / 335.5 MB, free: 1.66 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.3905, allocations: 11.91 kB / 335.5 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.68e-05/0.3905, allocations: 12.61 kB / 335.5 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.3905, allocations: 4 kB / 335.5 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3905, allocations: 0 / 335.5 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3906, allocations: 0 / 335.5 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.3908, allocations: 205.5 kB / 335.7 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3908, allocations: 0 / 335.7 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-05/0.3908, allocations: 8 kB / 335.7 MB, free: 1.375 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.3908, allocations: 0 / 335.7 MB, free: 1.375 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.3909, allocations: 8 kB / 335.7 MB, free: 1.367 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3909, allocations: 0 / 335.7 MB, free: 1.367 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3909, allocations: 0 / 335.7 MB, free: 1.367 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005178/0.3914, allocations: 272.3 kB / 336 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.09e-05/0.3915, allocations: 93.03 kB / 336.1 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.623e-05/0.3915, allocations: 11.98 kB / 336.1 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.3917, allocations: 12 kB / 336.1 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.598e-05/0.3918, allocations: 11.98 kB / 336.1 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.3918, allocations: 7.938 kB / 336.1 MB, free: 0.918 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.544e-05/0.3919, allocations: 95.27 kB / 336.2 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.3919, allocations: 0 / 336.2 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003823/0.3923, allocations: 56 kB / 336.3 MB, free: 0.7695 MB / 282.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.001074/0.3934, allocations: 0.8538 MB / 337.1 MB, free: 15.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004686/0.3939, allocations: 330.7 kB / 337.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3939, allocations: 0 / 337.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002434/0.3942, allocations: 194.8 kB / 337.6 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.3943, allocations: 4 kB / 337.6 MB, free: 15.28 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007202/0.3951, allocations: 223 kB / 337.9 MB, free: 15.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.3954, allocations: 0.7082 MB / 338.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.881e-05/0.3954, allocations: 3.984 kB / 338.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.614e-05/0.3955, allocations: 23.44 kB / 338.6 MB, free: 14.27 MB / 298.7 MB Notification: Performance of SimCode: time 1.412e-06/0.3955, allocations: 0 / 338.6 MB, free: 14.27 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02718/0.4227, allocations: 2.528 MB / 341.1 MB, free: 11.8 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003563/0.4231, allocations: 149.8 kB / 341.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.368/2.791, allocations: 3.938 kB / 341.3 MB, free: 11.56 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat