Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_1_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.966/1.966, allocations: 171.2 MB / 183.4 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.563e-05/3.572e-05, allocations: 4 kB / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2806, allocations: 38.77 MB / 263.9 MB, free: 9.812 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1722/0.4529, allocations: 66.22 MB / 330.1 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000337/0.4533, allocations: 67.95 kB / 330.2 MB, free: 7.426 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01464/0.4679, allocations: 2.076 MB / 332.2 MB, free: 5.344 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.468, allocations: 0 / 332.2 MB, free: 5.344 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.468, allocations: 0 / 332.2 MB, free: 5.344 MB / 282.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.0007506/0.4688, allocations: 485.1 kB / 332.7 MB, free: 4.801 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.471e-05/0.4689, allocations: 8.031 kB / 332.7 MB, free: 4.785 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.971e-05/0.469, allocations: 46.55 kB / 332.8 MB, free: 4.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.4692, allocations: 11.91 kB / 332.8 MB, free: 4.719 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.4694, allocations: 174.9 kB / 332.9 MB, free: 4.508 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.312e-05/0.4694, allocations: 8 kB / 333 MB, free: 4.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.477e-05/0.4695, allocations: 8 kB / 333 MB, free: 4.492 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003747/0.4699, allocations: 93.62 kB / 333.1 MB, free: 4.395 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.4699, allocations: 0 / 333.1 MB, free: 4.395 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.47, allocations: 3.984 kB / 333.1 MB, free: 4.391 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.47, allocations: 4 kB / 333.1 MB, free: 4.387 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002554/0.4703, allocations: 47.98 kB / 333.1 MB, free: 4.34 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008869/0.4712, allocations: 344.6 kB / 333.4 MB, free: 3.953 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002627/0.4715, allocations: 70.58 kB / 333.5 MB, free: 3.875 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.4717, allocations: 48.91 kB / 333.6 MB, free: 3.824 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.4717, allocations: 4 kB / 333.6 MB, free: 3.82 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004004/0.4721, allocations: 154.9 kB / 333.7 MB, free: 3.645 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 3.506e-06/0.4721, allocations: 3.938 kB / 333.7 MB, free: 3.641 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.001136/0.4733, allocations: 220.9 kB / 333.9 MB, free: 3.406 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/0.4735, allocations: 166.2 kB / 334.1 MB, free: 3.207 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/0.4738, allocations: 125.1 kB / 334.2 MB, free: 3.074 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.474, allocations: 29.7 kB / 334.2 MB, free: 3.039 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.4742, allocations: 104 kB / 334.4 MB, free: 2.934 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.55e-05/0.4742, allocations: 23.7 kB / 334.4 MB, free: 2.91 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.447e-05/0.4742, allocations: 11.94 kB / 334.4 MB, free: 2.898 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.4744, allocations: 322.8 kB / 334.7 MB, free: 2.574 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.4745, allocations: 32 kB / 334.7 MB, free: 2.543 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.4746, allocations: 35.98 kB / 334.8 MB, free: 2.508 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001766/0.4748, allocations: 147.6 kB / 334.9 MB, free: 2.34 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4748, allocations: 0 / 334.9 MB, free: 2.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005044/0.4753, allocations: 270.2 kB / 335.2 MB, free: 2.047 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.993e-05/0.4755, allocations: 118.8 kB / 335.3 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.4755, allocations: 4 kB / 335.3 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.4755, allocations: 64 / 335.3 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.063e-05/0.4756, allocations: 11.98 kB / 335.3 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.4756, allocations: 0 / 335.3 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.4757, allocations: 4 kB / 335.3 MB, free: 1.887 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.856e-05/0.4758, allocations: 8 kB / 335.3 MB, free: 1.879 MB / 282.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.0001821/0.476, allocations: 188.3 kB / 335.5 MB, free: 1.676 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.616e-05/0.476, allocations: 15.91 kB / 335.5 MB, free: 1.66 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.375e-05/0.4761, allocations: 12.61 kB / 335.5 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.4761, allocations: 4 kB / 335.5 MB, free: 1.645 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.4761, allocations: 3.938 kB / 335.5 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.4761, allocations: 0 / 335.5 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002406/0.4764, allocations: 201.6 kB / 335.7 MB, free: 1.395 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4764, allocations: 0 / 335.7 MB, free: 1.395 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.198e-05/0.4764, allocations: 3.984 kB / 335.7 MB, free: 1.391 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.4764, allocations: 4 kB / 335.7 MB, free: 1.387 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.222e-05/0.4764, allocations: 4 kB / 335.7 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.4765, allocations: 4 kB / 335.8 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4765, allocations: 0 / 335.8 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005531/0.477, allocations: 276.3 kB / 336 MB, free: 1.078 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.221e-05/0.4771, allocations: 89.09 kB / 336.1 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.4772, allocations: 4 kB / 336.1 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.4773, allocations: 15.98 kB / 336.1 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.309e-05/0.4774, allocations: 7.984 kB / 336.1 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.4774, allocations: 8 kB / 336.1 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001003/0.4775, allocations: 99.27 kB / 336.2 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.4776, allocations: 0 / 336.2 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004235/0.478, allocations: 52 kB / 336.3 MB, free: 0.7891 MB / 282.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.001163/0.4792, allocations: 0.8645 MB / 337.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005429/0.4797, allocations: 326.7 kB / 337.5 MB, free: 15.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4798, allocations: 0 / 337.5 MB, free: 15.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002925/0.4801, allocations: 190.8 kB / 337.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001786/0.4803, allocations: 8 kB / 337.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008701/0.4811, allocations: 219 kB / 337.9 MB, free: 15.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/0.4816, allocations: 0.7082 MB / 338.6 MB, free: 14.31 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.104e-05/0.4816, allocations: 8 kB / 338.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.436e-05/0.4817, allocations: 27.42 kB / 338.6 MB, free: 14.28 MB / 298.7 MB Notification: Performance of SimCode: time 1.503e-06/0.4817, allocations: 0 / 338.6 MB, free: 14.28 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02362/0.5053, allocations: 2.528 MB / 341.2 MB, free: 11.81 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003031/0.5057, allocations: 142 kB / 341.3 MB, free: 11.59 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.585/3.091, allocations: 0 / 341.3 MB, free: 11.59 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat