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 2.306/2.306, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.216e-05/2.226e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3124, allocations: 44.5 MB / 294.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.4468, allocations: 70.86 MB / 365.1 MB, free: 11.12 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.4471, allocations: 67.97 kB / 365.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009924/0.457, allocations: 2.061 MB / 367.2 MB, free: 8.996 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4571, allocations: 0 / 367.2 MB, free: 8.996 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.4571, allocations: 4 kB / 367.2 MB, free: 8.992 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.0005849/0.4577, allocations: 481.2 kB / 367.7 MB, free: 8.453 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.4578, allocations: 11.97 kB / 367.7 MB, free: 8.441 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.137e-05/0.4579, allocations: 15.84 kB / 367.7 MB, free: 8.426 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.4581, allocations: 178.8 kB / 367.9 MB, free: 8.211 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.4581, allocations: 4 kB / 367.9 MB, free: 8.207 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.229e-05/0.4581, allocations: 11.98 kB / 367.9 MB, free: 8.195 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001957/0.4583, allocations: 40 kB / 367.9 MB, free: 8.156 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.4586, allocations: 81.67 kB / 368 MB, free: 8.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.4586, allocations: 0 / 368 MB, free: 8.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/0.4586, allocations: 8 kB / 368 MB, free: 8.062 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.4586, allocations: 0 / 368 MB, free: 8.062 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005994/0.4593, allocations: 313.2 kB / 368.3 MB, free: 7.719 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.4594, allocations: 66.58 kB / 368.4 MB, free: 7.645 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.4596, allocations: 48.91 kB / 368.4 MB, free: 7.594 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.612e-05/0.4596, allocations: 4 kB / 368.4 MB, free: 7.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002622/0.4599, allocations: 154.8 kB / 368.6 MB, free: 7.414 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 4.769e-06/0.4599, allocations: 3.984 kB / 368.6 MB, free: 7.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004645/0.4604, allocations: 149.5 kB / 368.7 MB, free: 7.258 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.4605, allocations: 166.2 kB / 368.9 MB, free: 7.059 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.4606, allocations: 121.2 kB / 369 MB, free: 6.93 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.4607, allocations: 37.69 kB / 369 MB, free: 6.887 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.889e-05/0.4608, allocations: 162.5 kB / 369.2 MB, free: 6.727 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.597e-05/0.4609, allocations: 19.72 kB / 369.2 MB, free: 6.707 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.959e-06/0.4609, allocations: 0 / 369.2 MB, free: 6.707 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.461, allocations: 322.8 kB / 369.5 MB, free: 6.383 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.325e-05/0.4611, allocations: 31.98 kB / 369.6 MB, free: 6.352 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.561e-05/0.4612, allocations: 28 kB / 369.6 MB, free: 6.324 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.4614, allocations: 43.97 kB / 369.6 MB, free: 6.281 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4614, allocations: 7.938 kB / 369.6 MB, free: 6.273 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004095/0.4619, allocations: 141.6 kB / 369.8 MB, free: 6.129 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.838e-05/0.462, allocations: 118.4 kB / 369.9 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.462, allocations: 0 / 369.9 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.184e-05/0.462, allocations: 0 / 369.9 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.822e-05/0.4621, allocations: 4 kB / 369.9 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.4621, allocations: 4 kB / 369.9 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.4622, allocations: 15.83 kB / 369.9 MB, free: 5.969 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.711e-05/0.4623, allocations: 7.953 kB / 369.9 MB, free: 5.961 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.0001789/0.4625, allocations: 184.1 kB / 370.1 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004381/0.4629, allocations: 173.6 kB / 370.3 MB, free: 5.586 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.759e-05/0.463, allocations: 7.906 kB / 370.3 MB, free: 5.578 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.932e-05/0.463, allocations: 8.75 kB / 370.3 MB, free: 5.57 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.463, allocations: 0 / 370.3 MB, free: 5.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.4631, allocations: 11.89 kB / 370.3 MB, free: 5.559 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.4631, allocations: 3.984 kB / 370.3 MB, free: 5.555 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002065/0.4633, allocations: 182.2 kB / 370.5 MB, free: 5.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.4633, allocations: 0 / 370.5 MB, free: 5.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.039e-05/0.4633, allocations: 4 kB / 370.5 MB, free: 5.336 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.4633, allocations: 0 / 370.5 MB, free: 5.336 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.4634, allocations: 4 kB / 370.5 MB, free: 5.332 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.4634, allocations: 0 / 370.5 MB, free: 5.332 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.4634, allocations: 4 kB / 370.5 MB, free: 5.328 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004517/0.4638, allocations: 208.8 kB / 370.7 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.773e-05/0.4639, allocations: 85.16 kB / 370.8 MB, free: 5.004 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.004e-05/0.464, allocations: 8 kB / 370.8 MB, free: 4.996 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.4641, allocations: 15.98 kB / 370.8 MB, free: 4.98 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.4642, allocations: 7.984 kB / 370.8 MB, free: 4.973 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.223e-05/0.4643, allocations: 8 kB / 370.8 MB, free: 4.965 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.014e-05/0.4644, allocations: 95.27 kB / 370.9 MB, free: 4.871 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4644, allocations: 0 / 370.9 MB, free: 4.871 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000426/0.4648, allocations: 51.94 kB / 371 MB, free: 4.82 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.001056/0.4659, allocations: 0.7832 MB / 371.7 MB, free: 4.012 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005025/0.4664, allocations: 313.6 kB / 372.1 MB, free: 3.656 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.4664, allocations: 0 / 372.1 MB, free: 3.656 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002387/0.4667, allocations: 190.7 kB / 372.2 MB, free: 3.445 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001712/0.4669, allocations: 8 kB / 372.3 MB, free: 3.438 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000773/0.4677, allocations: 237.4 kB / 372.5 MB, free: 3.164 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.468, allocations: 0.708 MB / 373.2 MB, free: 2.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.322e-05/0.4681, allocations: 23.44 kB / 373.2 MB, free: 2.406 MB / 314.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4681, allocations: 4 kB / 373.2 MB, free: 2.402 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.609/3.077, allocations: 2.04 MB / 375.3 MB, free: 372 kB / 314.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