Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_2_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.226/2.226, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.763e-05/2.757e-05, allocations: 4 kB / 249.7 MB, free: 14.83 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.3327, allocations: 44.5 MB / 294.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1336/0.4664, allocations: 70.86 MB / 365.1 MB, free: 11 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/0.4667, allocations: 63.97 kB / 365.1 MB, free: 10.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009654/0.4764, allocations: 2.065 MB / 367.2 MB, free: 8.867 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4764, allocations: 0 / 367.2 MB, free: 8.867 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.4764, allocations: 8 kB / 367.2 MB, free: 8.859 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.0005417/0.477, allocations: 477.2 kB / 367.7 MB, free: 8.324 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.477, allocations: 8.031 kB / 367.7 MB, free: 8.316 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.827e-05/0.4771, allocations: 15.84 kB / 367.7 MB, free: 8.301 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/0.4773, allocations: 178.9 kB / 367.9 MB, free: 8.086 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.4773, allocations: 4 kB / 367.9 MB, free: 8.082 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/0.4773, allocations: 7.984 kB / 367.9 MB, free: 8.074 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001676/0.4775, allocations: 47.94 kB / 367.9 MB, free: 8.027 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.4777, allocations: 77.67 kB / 368 MB, free: 7.945 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.4778, allocations: 4 kB / 368 MB, free: 7.941 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.4778, allocations: 0 / 368 MB, free: 7.941 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.4778, allocations: 4 kB / 368 MB, free: 7.938 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005945/0.4784, allocations: 321.1 kB / 368.3 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001821/0.4786, allocations: 66.58 kB / 368.4 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.4787, allocations: 44.91 kB / 368.4 MB, free: 7.465 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.4787, allocations: 0 / 368.4 MB, free: 7.465 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002639/0.479, allocations: 158.8 kB / 368.6 MB, free: 7.285 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.144e-06/0.479, allocations: 0 / 368.6 MB, free: 7.285 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004394/0.4795, allocations: 153.5 kB / 368.7 MB, free: 7.129 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.4796, allocations: 170.2 kB / 368.9 MB, free: 6.926 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.4798, allocations: 121.2 kB / 369 MB, free: 6.797 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.4798, allocations: 25.7 kB / 369.1 MB, free: 6.766 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.581e-05/0.4799, allocations: 104 kB / 369.2 MB, free: 6.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/0.48, allocations: 23.7 kB / 369.2 MB, free: 6.637 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.799e-06/0.48, allocations: 0 / 369.2 MB, free: 6.637 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.4801, allocations: 322.8 kB / 369.5 MB, free: 6.312 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.949e-05/0.4803, allocations: 31.98 kB / 369.5 MB, free: 6.281 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.939e-05/0.4804, allocations: 31.98 kB / 369.6 MB, free: 6.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001603/0.4805, allocations: 31.98 kB / 369.6 MB, free: 6.219 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.4805, allocations: 4 kB / 369.6 MB, free: 6.215 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004084/0.481, allocations: 153.5 kB / 369.7 MB, free: 6.059 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.045e-05/0.4811, allocations: 122.4 kB / 369.9 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4811, allocations: 0 / 369.9 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.4811, allocations: 7.938 kB / 369.9 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.16e-05/0.4812, allocations: 0 / 369.9 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.4812, allocations: 0 / 369.9 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.4813, allocations: 11.94 kB / 369.9 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.803e-05/0.4813, allocations: 7.953 kB / 369.9 MB, free: 5.891 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.0001891/0.4815, allocations: 188.1 kB / 370.1 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004141/0.482, allocations: 169.5 kB / 370.2 MB, free: 5.516 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.85e-05/0.482, allocations: 11.91 kB / 370.3 MB, free: 5.504 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.81e-05/0.4821, allocations: 12.62 kB / 370.3 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.4821, allocations: 0 / 370.3 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.4821, allocations: 3.953 kB / 370.3 MB, free: 5.488 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.4821, allocations: 0 / 370.3 MB, free: 5.488 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002212/0.4823, allocations: 174.3 kB / 370.4 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.4824, allocations: 8 kB / 370.4 MB, free: 5.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.179e-05/0.4824, allocations: 3.984 kB / 370.5 MB, free: 5.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.4824, allocations: 0 / 370.5 MB, free: 5.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.4824, allocations: 4 kB / 370.5 MB, free: 5.266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.4824, allocations: 0 / 370.5 MB, free: 5.266 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.4824, allocations: 0 / 370.5 MB, free: 5.266 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004325/0.4829, allocations: 204.9 kB / 370.7 MB, free: 5.047 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.211e-05/0.4829, allocations: 85.09 kB / 370.7 MB, free: 4.945 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.717e-05/0.483, allocations: 11.98 kB / 370.7 MB, free: 4.934 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.4832, allocations: 12 kB / 370.8 MB, free: 4.922 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.49e-05/0.4832, allocations: 15.92 kB / 370.8 MB, free: 4.906 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.4833, allocations: 4 kB / 370.8 MB, free: 4.902 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.946e-05/0.4834, allocations: 98.77 kB / 370.9 MB, free: 4.809 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4834, allocations: 4 kB / 370.9 MB, free: 4.805 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004131/0.4838, allocations: 47.94 kB / 370.9 MB, free: 4.758 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.0009622/0.4848, allocations: 0.7802 MB / 371.7 MB, free: 3.949 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000479/0.4853, allocations: 321.5 kB / 372 MB, free: 3.586 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4853, allocations: 0 / 372 MB, free: 3.586 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002599/0.4856, allocations: 186.8 kB / 372.2 MB, free: 3.379 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001657/0.4857, allocations: 4.844 kB / 372.2 MB, free: 3.375 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007872/0.4865, allocations: 223.6 kB / 372.4 MB, free: 3.121 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.4869, allocations: 0.7002 MB / 373.1 MB, free: 2.395 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.855e-05/0.4869, allocations: 4 kB / 373.1 MB, free: 2.391 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.205e-05/0.487, allocations: 27.42 kB / 373.2 MB, free: 2.363 MB / 314.7 MB Notification: Performance of SimCode: time 3.377e-06/0.487, allocations: 0 / 373.2 MB, free: 2.363 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04243/0.5295, allocations: 2.216 MB / 375.4 MB, free: 168 kB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003075/0.5299, allocations: 125.6 kB / 375.5 MB, free: 15.97 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.5/3.03, allocations: 0 / 375.5 MB, free: 15.97 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat