Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.934/1.934, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.718e-05/2.73e-05, allocations: 0 / 255.4 MB, free: 3.121 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09222/0.09227, allocations: 44.5 MB / 299.9 MB, free: 6.555 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3932/0.4856, allocations: 71.53 MB / 371.4 MB, free: 21.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.4859, allocations: 62.52 kB / 371.5 MB, free: 21.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009763/0.4957, allocations: 2.063 MB / 373.6 MB, free: 21.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4958, allocations: 0 / 373.6 MB, free: 21.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.4958, allocations: 6.688 kB / 373.6 MB, free: 21.07 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.0004726/0.4963, allocations: 478.8 kB / 374 MB, free: 20.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.4963, allocations: 9.156 kB / 374.1 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.817e-05/0.4964, allocations: 39.44 kB / 374.1 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.254e-05/0.4964, allocations: 19.41 kB / 374.1 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.4966, allocations: 182.5 kB / 374.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.4966, allocations: 8.219 kB / 374.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.4966, allocations: 7.031 kB / 374.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.4969, allocations: 92.62 kB / 374.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.4969, allocations: 4.906 kB / 374.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.4969, allocations: 1.969 kB / 374.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.497, allocations: 1.828 kB / 374.4 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001503/0.4971, allocations: 47.17 kB / 374.5 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005825/0.4977, allocations: 347 kB / 374.8 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.4979, allocations: 71.28 kB / 374.9 MB, free: 19.99 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.498, allocations: 47.19 kB / 374.9 MB, free: 19.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.4981, allocations: 3.938 kB / 374.9 MB, free: 19.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002423/0.4983, allocations: 161.7 kB / 375.1 MB, free: 19.86 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.285e-06/0.4983, allocations: 0 / 375.1 MB, free: 19.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004756/0.4988, allocations: 221.9 kB / 375.3 MB, free: 19.76 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.053e-05/0.4989, allocations: 171.8 kB / 375.5 MB, free: 19.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.499, allocations: 120.6 kB / 375.6 MB, free: 19.47 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.4991, allocations: 28.08 kB / 375.6 MB, free: 19.44 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.08e-05/0.4991, allocations: 165.5 kB / 375.8 MB, free: 19.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.257e-05/0.4992, allocations: 24.31 kB / 375.8 MB, free: 19.28 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.118e-05/0.4992, allocations: 5.188 kB / 375.8 MB, free: 19.28 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.288e-05/0.4993, allocations: 318.1 kB / 376.1 MB, free: 18.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.4994, allocations: 33.36 kB / 376.1 MB, free: 18.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.4995, allocations: 40.59 kB / 376.2 MB, free: 18.96 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.4997, allocations: 150.7 kB / 376.3 MB, free: 18.83 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.4997, allocations: 0 / 376.3 MB, free: 18.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004025/0.5001, allocations: 261.7 kB / 376.6 MB, free: 18.67 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.29e-05/0.5002, allocations: 119 kB / 376.7 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.5002, allocations: 0 / 376.7 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.5002, allocations: 0.9688 kB / 376.7 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.468e-05/0.5003, allocations: 1.25 kB / 376.7 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.5003, allocations: 10.69 kB / 376.7 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.5004, allocations: 12.62 kB / 376.7 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.646e-05/0.5004, allocations: 11.28 kB / 376.7 MB, free: 18.53 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.000116/0.5006, allocations: 181.3 kB / 376.9 MB, free: 18.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.5006, allocations: 11.34 kB / 376.9 MB, free: 18.35 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.751e-05/0.5006, allocations: 13.14 kB / 376.9 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.5007, allocations: 0 / 376.9 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.5007, allocations: 0 / 376.9 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.5007, allocations: 5.422 kB / 376.9 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.5009, allocations: 201.5 kB / 377.1 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.5009, allocations: 4 kB / 377.1 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.446e-06/0.5009, allocations: 0 / 377.1 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.5009, allocations: 1.406 kB / 377.1 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.5009, allocations: 8.094 kB / 377.1 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.501, allocations: 1.438 kB / 377.1 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.501, allocations: 0 / 377.1 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005029/0.5015, allocations: 282.9 kB / 377.4 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.318e-05/0.5015, allocations: 91.81 kB / 377.5 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.386e-05/0.5016, allocations: 14.53 kB / 377.5 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.5017, allocations: 9.281 kB / 377.5 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.682e-05/0.5018, allocations: 12.86 kB / 377.5 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.5018, allocations: 6.094 kB / 377.6 MB, free: 17.89 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.954e-05/0.5019, allocations: 102.5 kB / 377.7 MB, free: 17.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5019, allocations: 0 / 377.7 MB, free: 17.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004008/0.5023, allocations: 50.36 kB / 377.7 MB, free: 17.81 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.0008667/0.5032, allocations: 0.8555 MB / 378.6 MB, free: 17.14 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003957/0.5036, allocations: 325.4 kB / 378.9 MB, free: 16.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5036, allocations: 0 / 378.9 MB, free: 16.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002049/0.5038, allocations: 195 kB / 379.1 MB, free: 16.76 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.504, allocations: 9.938 kB / 379.1 MB, free: 16.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006594/0.5047, allocations: 248.4 kB / 379.3 MB, free: 16.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007331/0.5054, allocations: 0.7034 MB / 380 MB, free: 31.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.455e-05/0.5055, allocations: 27.27 kB / 380 MB, free: 31.9 MB / 330.7 MB Notification: Performance of SimCode: time 7.51e-07/0.5055, allocations: 3.938 kB / 380.1 MB, free: 31.89 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.517/3.022, allocations: 2.024 MB / 382.1 MB, free: 31.71 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat