Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.772/1.772, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.331e-05/3.341e-05, allocations: 4 kB / 225 MB, free: 2.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3215, allocations: 38.77 MB / 263.8 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1218/0.4434, allocations: 66.22 MB / 330 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.4437, allocations: 63.97 kB / 330.1 MB, free: 7.387 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009847/0.4536, allocations: 2.079 MB / 332.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4536, allocations: 0 / 332.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.096e-06/0.4536, allocations: 4 kB / 332.2 MB, free: 5.297 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.0005452/0.4542, allocations: 485.1 kB / 332.7 MB, free: 4.754 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.4543, allocations: 8.031 kB / 332.7 MB, free: 4.746 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.889e-05/0.4543, allocations: 38.56 kB / 332.7 MB, free: 4.699 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.641e-05/0.4544, allocations: 15.89 kB / 332.7 MB, free: 4.684 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.4545, allocations: 174.9 kB / 332.9 MB, free: 4.473 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.4546, allocations: 4 kB / 332.9 MB, free: 4.469 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.91e-05/0.4546, allocations: 11.94 kB / 332.9 MB, free: 4.457 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002675/0.4549, allocations: 97.62 kB / 333 MB, free: 4.355 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.4549, allocations: 3.938 kB / 333 MB, free: 4.352 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.192e-05/0.455, allocations: 8 kB / 333 MB, free: 4.344 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.455, allocations: 0 / 333 MB, free: 4.344 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.4552, allocations: 47.98 kB / 333.1 MB, free: 4.297 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006278/0.4558, allocations: 348.6 kB / 333.4 MB, free: 3.906 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.456, allocations: 62.58 kB / 333.5 MB, free: 3.836 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.4561, allocations: 52.91 kB / 333.5 MB, free: 3.781 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.274e-05/0.4562, allocations: 0 / 333.5 MB, free: 3.781 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002792/0.4565, allocations: 162.8 kB / 333.7 MB, free: 3.598 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.495e-06/0.4565, allocations: 0 / 333.7 MB, free: 3.598 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005147/0.457, allocations: 217 kB / 333.9 MB, free: 3.367 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.4571, allocations: 170.2 kB / 334 MB, free: 3.164 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.4573, allocations: 121.1 kB / 334.2 MB, free: 3.035 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.65e-05/0.4573, allocations: 33.7 kB / 334.2 MB, free: 2.996 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.4574, allocations: 166.5 kB / 334.4 MB, free: 2.832 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.485e-05/0.4575, allocations: 19.72 kB / 334.4 MB, free: 2.812 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.202e-05/0.4575, allocations: 7.938 kB / 334.4 MB, free: 2.805 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.4577, allocations: 322.8 kB / 334.7 MB, free: 2.48 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.4578, allocations: 39.98 kB / 334.7 MB, free: 2.441 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.976e-05/0.4579, allocations: 32 kB / 334.8 MB, free: 2.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001757/0.4581, allocations: 151.6 kB / 334.9 MB, free: 2.238 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.4581, allocations: 0 / 334.9 MB, free: 2.238 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004597/0.4586, allocations: 266.3 kB / 335.2 MB, free: 1.949 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.247e-05/0.4587, allocations: 118.8 kB / 335.3 MB, free: 1.809 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.4587, allocations: 0 / 335.3 MB, free: 1.809 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.4587, allocations: 0 / 335.3 MB, free: 1.809 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.749e-05/0.4588, allocations: 4 kB / 335.3 MB, free: 1.805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.4588, allocations: 0 / 335.3 MB, free: 1.805 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.4589, allocations: 8 kB / 335.3 MB, free: 1.797 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.953e-05/0.459, allocations: 8 kB / 335.3 MB, free: 1.789 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.0001963/0.4592, allocations: 192.2 kB / 335.5 MB, free: 1.582 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.72e-05/0.4592, allocations: 15.89 kB / 335.5 MB, free: 1.566 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.877e-05/0.4593, allocations: 8.625 kB / 335.5 MB, free: 1.562 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.4593, allocations: 0 / 335.5 MB, free: 1.562 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.4593, allocations: 4 kB / 335.5 MB, free: 1.559 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.4593, allocations: 4 kB / 335.5 MB, free: 1.555 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.4596, allocations: 209.5 kB / 335.7 MB, free: 1.301 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4596, allocations: 0 / 335.7 MB, free: 1.301 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.538e-06/0.4596, allocations: 0 / 335.7 MB, free: 1.301 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-06/0.4596, allocations: 4 kB / 335.7 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.4596, allocations: 0 / 335.7 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.4597, allocations: 7.938 kB / 335.8 MB, free: 1.289 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4597, allocations: 4.062 kB / 335.8 MB, free: 1.285 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005417/0.4602, allocations: 276.3 kB / 336 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.724e-05/0.4603, allocations: 97.08 kB / 336.1 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.4604, allocations: 7.984 kB / 336.1 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.4605, allocations: 12 kB / 336.1 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.43e-05/0.4606, allocations: 7.984 kB / 336.2 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.4606, allocations: 4 kB / 336.2 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.611e-05/0.4607, allocations: 99.27 kB / 336.3 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4607, allocations: 0 / 336.3 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003801/0.4611, allocations: 52 kB / 336.3 MB, free: 0.6914 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.001068/0.4622, allocations: 0.8538 MB / 337.2 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004733/0.4627, allocations: 326.7 kB / 337.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4627, allocations: 0 / 337.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000243/0.463, allocations: 194.8 kB / 337.7 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001656/0.4631, allocations: 12 kB / 337.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007352/0.4639, allocations: 252.7 kB / 337.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000326/0.4642, allocations: 0.7082 MB / 338.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.168e-05/0.4643, allocations: 19.44 kB / 338.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.4643, allocations: 4 kB / 338.7 MB, free: 14.15 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.613/3.077, allocations: 2.032 MB / 340.7 MB, free: 12.12 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat