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.115/2.115, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.041e-05/2.064e-05, allocations: 3.375 kB / 249.8 MB, free: 5.25 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09726, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4475/0.5448, allocations: 70.85 MB / 365.1 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/0.5451, allocations: 62.92 kB / 365.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01505/0.5602, allocations: 2.067 MB / 367.3 MB, free: 26.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.5603, allocations: 0 / 367.3 MB, free: 26.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.5603, allocations: 0 / 367.3 MB, free: 26.52 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.000574/0.5609, allocations: 485.5 kB / 367.7 MB, free: 26.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.561, allocations: 7.562 kB / 367.8 MB, free: 26.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.664e-05/0.5611, allocations: 11.53 kB / 367.8 MB, free: 26.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.5612, allocations: 176.5 kB / 367.9 MB, free: 25.83 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.5613, allocations: 3.906 kB / 367.9 MB, free: 25.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.403e-05/0.5613, allocations: 11.16 kB / 367.9 MB, free: 25.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002336/0.5616, allocations: 43.89 kB / 368 MB, free: 25.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.5619, allocations: 84.11 kB / 368.1 MB, free: 25.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.5619, allocations: 3.844 kB / 368.1 MB, free: 25.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.562, allocations: 0 / 368.1 MB, free: 25.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.562, allocations: 0 / 368.1 MB, free: 25.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007071/0.5627, allocations: 323.1 kB / 368.4 MB, free: 25.54 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.563, allocations: 68.14 kB / 368.5 MB, free: 25.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.5632, allocations: 43.73 kB / 368.5 MB, free: 25.51 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.5632, allocations: 1.031 kB / 368.5 MB, free: 25.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003326/0.5636, allocations: 152.8 kB / 368.7 MB, free: 25.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 3.086e-06/0.5636, allocations: 0 / 368.7 MB, free: 25.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006607/0.5643, allocations: 152.2 kB / 368.8 MB, free: 25.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.305e-05/0.5644, allocations: 174.5 kB / 369 MB, free: 25.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.5646, allocations: 125.7 kB / 369.1 MB, free: 25.06 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.5646, allocations: 27.58 kB / 369.1 MB, free: 25.03 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.5648, allocations: 98.19 kB / 369.2 MB, free: 24.95 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.36e-05/0.5648, allocations: 26.44 kB / 369.2 MB, free: 24.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.822e-05/0.5649, allocations: 3.938 kB / 369.2 MB, free: 24.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.5651, allocations: 318.9 kB / 369.6 MB, free: 24.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.5653, allocations: 36.34 kB / 369.6 MB, free: 24.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.5654, allocations: 32.5 kB / 369.6 MB, free: 24.61 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.5657, allocations: 32.45 kB / 369.7 MB, free: 24.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.5657, allocations: 0 / 369.7 MB, free: 24.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0006548/0.5664, allocations: 156.5 kB / 369.8 MB, free: 24.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001311/0.5666, allocations: 116.4 kB / 369.9 MB, free: 24.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.5666, allocations: 2.344 kB / 369.9 MB, free: 24.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.5666, allocations: 0 / 369.9 MB, free: 24.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.931e-05/0.5667, allocations: 7.812 kB / 369.9 MB, free: 24.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.5667, allocations: 3.984 kB / 369.9 MB, free: 24.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001415/0.5669, allocations: 7.875 kB / 369.9 MB, free: 24.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/0.5669, allocations: 13.83 kB / 370 MB, free: 24.43 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.0002486/0.5672, allocations: 179.3 kB / 370.1 MB, free: 24.26 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006239/0.5679, allocations: 173.9 kB / 370.3 MB, free: 24.22 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.772e-05/0.5679, allocations: 11.62 kB / 370.3 MB, free: 24.21 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.221e-05/0.568, allocations: 17.75 kB / 370.3 MB, free: 24.21 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.5681, allocations: 3.938 kB / 370.3 MB, free: 24.2 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5681, allocations: 7.953 kB / 370.3 MB, free: 24.2 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.5681, allocations: 0.875 kB / 370.3 MB, free: 24.2 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002608/0.5684, allocations: 176.6 kB / 370.5 MB, free: 24.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.5684, allocations: 0 / 370.5 MB, free: 24.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.506e-05/0.5684, allocations: 3.984 kB / 370.5 MB, free: 24.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.5684, allocations: 1.594 kB / 370.5 MB, free: 24.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.93e-05/0.5685, allocations: 3.875 kB / 370.5 MB, free: 24.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.5685, allocations: 4.125 kB / 370.5 MB, free: 24.03 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.5685, allocations: 0 / 370.5 MB, free: 24.03 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006161/0.5692, allocations: 204.6 kB / 370.7 MB, free: 23.96 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.767e-05/0.5693, allocations: 81.16 kB / 370.8 MB, free: 23.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.279e-05/0.5694, allocations: 12.62 kB / 370.8 MB, free: 23.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.5696, allocations: 9.5 kB / 370.8 MB, free: 23.86 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.645e-05/0.5697, allocations: 10.92 kB / 370.8 MB, free: 23.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.182e-05/0.5697, allocations: 9.312 kB / 370.9 MB, free: 23.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001111/0.5699, allocations: 96.44 kB / 370.9 MB, free: 23.78 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.5699, allocations: 0 / 370.9 MB, free: 23.78 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007035/0.5706, allocations: 54.16 kB / 371 MB, free: 23.77 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.001318/0.5719, allocations: 0.7857 MB / 371.8 MB, free: 23.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006119/0.5726, allocations: 322.4 kB / 372.1 MB, free: 22.9 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.5726, allocations: 3.781 kB / 372.1 MB, free: 22.9 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003453/0.573, allocations: 187.8 kB / 372.3 MB, free: 22.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.5732, allocations: 5.969 kB / 372.3 MB, free: 22.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.5743, allocations: 205.3 kB / 372.5 MB, free: 22.65 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004755/0.5748, allocations: 0.7056 MB / 373.2 MB, free: 21.96 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.9e-05/0.5749, allocations: 0 / 373.2 MB, free: 21.96 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.66e-05/0.575, allocations: 29.83 kB / 373.2 MB, free: 21.95 MB / 314.7 MB Notification: Performance of SimCode: time 1.583e-06/0.575, allocations: 0 / 373.2 MB, free: 21.95 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07859/0.6536, allocations: 2.212 MB / 375.4 MB, free: 21.78 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002767/0.6539, allocations: 127.5 kB / 375.6 MB, free: 21.59 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.1/3.754, allocations: 1.469 kB / 375.6 MB, free: 21.59 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat