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.115/2.115, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.41e-05/3.418e-05, allocations: 0 / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1036, allocations: 44.5 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4301/0.5338, allocations: 71.53 MB / 371.5 MB, free: 21.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.5341, allocations: 67.77 kB / 371.6 MB, free: 21.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009978/0.5441, allocations: 2.067 MB / 373.6 MB, free: 21.35 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5441, allocations: 0 / 373.6 MB, free: 21.35 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.5442, allocations: 2.219 kB / 373.6 MB, free: 21.35 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.0004887/0.5447, allocations: 479.1 kB / 374.1 MB, free: 20.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.5447, allocations: 14.62 kB / 374.1 MB, free: 20.86 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.61e-05/0.5448, allocations: 39.52 kB / 374.1 MB, free: 20.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.096e-05/0.5449, allocations: 14.52 kB / 374.2 MB, free: 20.81 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.545, allocations: 185.2 kB / 374.3 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.129e-05/0.545, allocations: 5 kB / 374.3 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.068e-05/0.5451, allocations: 11.41 kB / 374.4 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.5453, allocations: 90.33 kB / 374.4 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.5454, allocations: 4 kB / 374.5 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.5454, allocations: 5.562 kB / 374.5 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.5454, allocations: 5.156 kB / 374.5 MB, free: 20.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.5456, allocations: 50.23 kB / 374.5 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005376/0.5461, allocations: 339.1 kB / 374.8 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001734/0.5463, allocations: 69.92 kB / 374.9 MB, free: 20.26 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.5464, allocations: 58.83 kB / 375 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.268e-05/0.5465, allocations: 1.25 kB / 375 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002313/0.5467, allocations: 158.9 kB / 375.1 MB, free: 20.13 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.334e-06/0.5467, allocations: 0 / 375.1 MB, free: 20.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004915/0.5472, allocations: 217.4 kB / 375.3 MB, free: 20.03 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.5473, allocations: 167.7 kB / 375.5 MB, free: 19.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.5474, allocations: 118.8 kB / 375.6 MB, free: 19.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.5475, allocations: 36.48 kB / 375.7 MB, free: 19.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.647e-05/0.5476, allocations: 99.55 kB / 375.8 MB, free: 19.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/0.5476, allocations: 22.64 kB / 375.8 MB, free: 19.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.168e-05/0.5476, allocations: 4.781 kB / 375.8 MB, free: 19.61 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.782e-05/0.5477, allocations: 320.7 kB / 376.1 MB, free: 19.3 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.5478, allocations: 37.94 kB / 376.1 MB, free: 19.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.69e-05/0.5479, allocations: 35.7 kB / 376.2 MB, free: 19.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001389/0.5481, allocations: 144.3 kB / 376.3 MB, free: 19.17 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.5481, allocations: 0 / 376.3 MB, free: 19.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004081/0.5485, allocations: 271.5 kB / 376.6 MB, free: 19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.569e-05/0.5486, allocations: 119.5 kB / 376.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.5486, allocations: 0 / 376.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.5486, allocations: 3.328 kB / 376.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.182e-05/0.5487, allocations: 1.5 kB / 376.7 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.5487, allocations: 3.953 kB / 376.7 MB, free: 18.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.5488, allocations: 15.81 kB / 376.7 MB, free: 18.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/0.5489, allocations: 5.812 kB / 376.7 MB, free: 18.87 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.0001307/0.549, allocations: 188.4 kB / 376.9 MB, free: 18.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.142e-05/0.549, allocations: 10.84 kB / 376.9 MB, free: 18.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.68e-05/0.5491, allocations: 9.281 kB / 376.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.5491, allocations: 0 / 376.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.5491, allocations: 1.094 kB / 376.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.5491, allocations: 3.953 kB / 376.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001891/0.5493, allocations: 204.6 kB / 377.1 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.5493, allocations: 1.531 kB / 377.1 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.198e-06/0.5494, allocations: 0 / 377.1 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.5494, allocations: 5.219 kB / 377.1 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.5494, allocations: 8.578 kB / 377.1 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.5494, allocations: 0 / 377.1 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.5494, allocations: 1.625 kB / 377.1 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004771/0.5499, allocations: 276.6 kB / 377.4 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.459e-05/0.55, allocations: 91.05 kB / 377.5 MB, free: 18.24 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.441e-05/0.55, allocations: 10.36 kB / 377.5 MB, free: 18.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.5502, allocations: 9.906 kB / 377.5 MB, free: 18.24 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.323e-05/0.5502, allocations: 19.56 kB / 377.5 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.5503, allocations: 10.31 kB / 377.5 MB, free: 18.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.187e-05/0.5504, allocations: 98.25 kB / 377.6 MB, free: 18.15 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5504, allocations: 0 / 377.6 MB, free: 18.15 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004422/0.5508, allocations: 50.67 kB / 377.7 MB, free: 18.15 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.00132/0.5521, allocations: 0.8533 MB / 378.5 MB, free: 17.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004736/0.5527, allocations: 328.3 kB / 378.9 MB, free: 17.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5527, allocations: 1.188 kB / 378.9 MB, free: 17.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002058/0.5529, allocations: 187.3 kB / 379.1 MB, free: 17.1 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001646/0.5531, allocations: 11.34 kB / 379.1 MB, free: 17.1 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007158/0.5538, allocations: 221.2 kB / 379.3 MB, free: 16.98 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001682/0.554, allocations: 0.7133 MB / 380 MB, free: 16.27 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.607e-05/0.554, allocations: 4.594 kB / 380 MB, free: 16.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.016e-05/0.5541, allocations: 26.06 kB / 380 MB, free: 16.27 MB / 314.7 MB Notification: Performance of SimCode: time 1.893e-06/0.5541, allocations: 0 / 380 MB, free: 16.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02694/0.5811, allocations: 2.519 MB / 382.5 MB, free: 15.94 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000272/0.5814, allocations: 146 kB / 382.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.088, allocations: 0 / 382.7 MB, free: 15.71 MB / 314.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