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.077/2.077, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.408e-05/4.412e-05, allocations: 4 kB / 255.4 MB, free: 2.648 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 44.52 MB / 300 MB, free: 6.078 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4625/0.5728, allocations: 71.52 MB / 371.5 MB, free: 22.07 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.5731, allocations: 63.33 kB / 371.5 MB, free: 22.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01015/0.5832, allocations: 2.063 MB / 373.6 MB, free: 21.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5833, allocations: 4 kB / 373.6 MB, free: 21.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.749e-06/0.5833, allocations: 2.562 kB / 373.6 MB, free: 21.7 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.0004987/0.5838, allocations: 478.7 kB / 374.1 MB, free: 21.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.5839, allocations: 10.62 kB / 374.1 MB, free: 21.21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.413e-05/0.5839, allocations: 39.17 kB / 374.1 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.102e-05/0.584, allocations: 10.86 kB / 374.1 MB, free: 21.17 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.5841, allocations: 186 kB / 374.3 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.5842, allocations: 12.34 kB / 374.3 MB, free: 20.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.257e-05/0.5842, allocations: 7.719 kB / 374.3 MB, free: 20.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/0.5845, allocations: 92.19 kB / 374.4 MB, free: 20.92 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.5845, allocations: 0 / 374.4 MB, free: 20.92 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.5845, allocations: 6.938 kB / 374.4 MB, free: 20.92 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.5846, allocations: 2.031 kB / 374.4 MB, free: 20.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00015/0.5847, allocations: 46.34 kB / 374.5 MB, free: 20.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006118/0.5853, allocations: 349.3 kB / 374.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.5855, allocations: 67.77 kB / 374.9 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.5857, allocations: 47.03 kB / 374.9 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.5857, allocations: 5.281 kB / 374.9 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002571/0.586, allocations: 164.3 kB / 375.1 MB, free: 20.49 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.534e-06/0.586, allocations: 0 / 375.1 MB, free: 20.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004875/0.5865, allocations: 222.4 kB / 375.3 MB, free: 20.39 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.612e-05/0.5866, allocations: 165.1 kB / 375.5 MB, free: 20.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.5867, allocations: 120.3 kB / 375.6 MB, free: 20.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.5867, allocations: 32.2 kB / 375.6 MB, free: 20.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.212e-05/0.5868, allocations: 99.33 kB / 375.7 MB, free: 19.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.598e-05/0.5869, allocations: 27.09 kB / 375.8 MB, free: 19.97 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.202e-05/0.5869, allocations: 0.9688 kB / 375.8 MB, free: 19.97 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.995e-05/0.587, allocations: 324.3 kB / 376.1 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.5871, allocations: 34.23 kB / 376.1 MB, free: 19.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.52e-05/0.5872, allocations: 39.83 kB / 376.1 MB, free: 19.65 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.5874, allocations: 147.8 kB / 376.3 MB, free: 19.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.5874, allocations: 0 / 376.3 MB, free: 19.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004632/0.5878, allocations: 274.3 kB / 376.6 MB, free: 19.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.505e-05/0.5879, allocations: 112.2 kB / 376.7 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.5879, allocations: 2.531 kB / 376.7 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.588, allocations: 1.344 kB / 376.7 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.947e-05/0.588, allocations: 5.531 kB / 376.7 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.588, allocations: 7.891 kB / 376.7 MB, free: 19.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.5882, allocations: 15.59 kB / 376.7 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-05/0.5882, allocations: 5.531 kB / 376.7 MB, free: 19.21 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.0001332/0.5884, allocations: 178.5 kB / 376.9 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.143e-05/0.5884, allocations: 11.19 kB / 376.9 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.014e-05/0.5885, allocations: 13 kB / 376.9 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.5885, allocations: 0.9688 kB / 376.9 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.5885, allocations: 0 / 376.9 MB, free: 19.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.5885, allocations: 3.953 kB / 376.9 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001737/0.5887, allocations: 206.2 kB / 377.1 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.5887, allocations: 0 / 377.1 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.408e-06/0.5887, allocations: 1.25 kB / 377.1 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.5887, allocations: 0 / 377.1 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.5888, allocations: 9.219 kB / 377.1 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.5888, allocations: 1.125 kB / 377.1 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5888, allocations: 0 / 377.1 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004837/0.5893, allocations: 279.7 kB / 377.4 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.299e-05/0.5893, allocations: 91.25 kB / 377.5 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.345e-05/0.5894, allocations: 7.781 kB / 377.5 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.5895, allocations: 10.83 kB / 377.5 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.883e-05/0.5896, allocations: 12.22 kB / 377.5 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.5896, allocations: 5.422 kB / 377.5 MB, free: 18.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.223e-05/0.5897, allocations: 99.66 kB / 377.6 MB, free: 18.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5897, allocations: 0 / 377.6 MB, free: 18.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004166/0.5902, allocations: 53.47 kB / 377.7 MB, free: 18.52 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.0008825/0.5911, allocations: 0.854 MB / 378.5 MB, free: 17.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004057/0.5915, allocations: 324.4 kB / 378.8 MB, free: 17.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5915, allocations: 0 / 378.8 MB, free: 17.59 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002344/0.5917, allocations: 197.6 kB / 379 MB, free: 17.46 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001462/0.5919, allocations: 7.375 kB / 379 MB, free: 17.46 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007305/0.5926, allocations: 224.1 kB / 379.3 MB, free: 17.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000167/0.5928, allocations: 0.7055 MB / 380 MB, free: 16.64 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.639e-05/0.5929, allocations: 4.531 kB / 380 MB, free: 16.64 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.333e-05/0.5929, allocations: 30.94 kB / 380 MB, free: 16.63 MB / 314.7 MB Notification: Performance of SimCode: time 1.193e-06/0.5929, allocations: 3.938 kB / 380 MB, free: 16.62 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.6177, allocations: 2.517 MB / 382.5 MB, free: 16.3 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002418/0.618, allocations: 144.3 kB / 382.7 MB, free: 16.08 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.597/3.215, allocations: 1.312 kB / 382.7 MB, free: 16.08 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