Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.491/2.491, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.191e-05/3.197e-05, allocations: 4 kB / 292.2 MB, free: 8.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1091, allocations: 50.42 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4292/0.5384, allocations: 80.58 MB / 423.2 MB, free: 13.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.5387, allocations: 71.77 kB / 423.3 MB, free: 13.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04163/0.5803, allocations: 9.192 MB / 432.5 MB, free: 5.848 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5804, allocations: 7.938 kB / 432.5 MB, free: 5.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.793e-05/0.5804, allocations: 12 kB / 432.5 MB, free: 5.828 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001018/0.5815, allocations: 0.564 MB / 433.1 MB, free: 5.223 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.5815, allocations: 8.031 kB / 433.1 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.099e-05/0.5816, allocations: 57.94 kB / 433.1 MB, free: 5.152 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.5817, allocations: 38.53 kB / 433.2 MB, free: 5.117 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007763/0.5825, allocations: 331.7 kB / 433.5 MB, free: 4.789 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.5826, allocations: 7.312 kB / 433.5 MB, free: 4.785 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.5826, allocations: 11.88 kB / 433.5 MB, free: 4.777 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003499/0.583, allocations: 149.2 kB / 433.7 MB, free: 4.648 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.583, allocations: 0 / 433.7 MB, free: 4.648 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.665e-05/0.583, allocations: 7.938 kB / 433.7 MB, free: 4.645 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.5831, allocations: 3.953 kB / 433.7 MB, free: 4.641 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.5833, allocations: 65.17 kB / 433.7 MB, free: 4.598 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.5843, allocations: 0.5068 MB / 434.2 MB, free: 4.129 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003574/0.5847, allocations: 132 kB / 434.4 MB, free: 4.027 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.5848, allocations: 49.92 kB / 434.4 MB, free: 3.992 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.5849, allocations: 0 / 434.4 MB, free: 3.992 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002667/0.5851, allocations: 117.1 kB / 434.5 MB, free: 3.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.103e-06/0.5852, allocations: 0 / 434.5 MB, free: 3.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004943/0.5857, allocations: 160.5 kB / 434.7 MB, free: 3.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.252e-05/0.5858, allocations: 113.9 kB / 434.8 MB, free: 3.617 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007219/0.5865, allocations: 391.8 kB / 435.2 MB, free: 3.316 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.156e-05/0.5865, allocations: 28.95 kB / 435.2 MB, free: 3.285 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.5867, allocations: 171.9 kB / 435.4 MB, free: 3.164 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.867e-05/0.5868, allocations: 41.22 kB / 435.4 MB, free: 3.129 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.297e-05/0.5868, allocations: 2.812 kB / 435.4 MB, free: 3.129 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.587, allocations: 343.6 kB / 435.8 MB, free: 2.797 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.5871, allocations: 38.38 kB / 435.8 MB, free: 2.773 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.5873, allocations: 105.6 kB / 435.9 MB, free: 2.672 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.5875, allocations: 46.5 kB / 435.9 MB, free: 2.641 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.5875, allocations: 0 / 435.9 MB, free: 2.641 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004242/0.5879, allocations: 183.4 kB / 436.1 MB, free: 2.488 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.5879, allocations: 4 kB / 436.1 MB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.588, allocations: 4 kB / 436.1 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.588, allocations: 0 / 436.1 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000229/0.5882, allocations: 27.92 kB / 436.2 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.5883, allocations: 0 / 436.2 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.5885, allocations: 23.14 kB / 436.2 MB, free: 2.434 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.5885, allocations: 7.953 kB / 436.2 MB, free: 2.426 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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.000126/0.5887, allocations: 125.7 kB / 436.3 MB, free: 2.305 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-05/0.5888, allocations: 39.59 kB / 436.3 MB, free: 2.266 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005177/0.5893, allocations: 192.7 kB / 436.5 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.5893, allocations: 0 / 436.5 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.5893, allocations: 0 / 436.5 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5893, allocations: 0 / 436.5 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004087/0.5898, allocations: 322.2 kB / 436.8 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.5898, allocations: 0 / 436.8 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.5899, allocations: 19.98 kB / 436.9 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.5899, allocations: 4 kB / 436.9 MB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.5899, allocations: 0 / 436.9 MB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/0.5899, allocations: 4 kB / 436.9 MB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.59, allocations: 3.938 kB / 436.9 MB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000441/0.5904, allocations: 208.7 kB / 437.1 MB, free: 1.574 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000157/0.5906, allocations: 120.4 kB / 437.2 MB, free: 1.445 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.204e-05/0.5907, allocations: 7.75 kB / 437.2 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.5909, allocations: 19.67 kB / 437.2 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.979e-05/0.5909, allocations: 11.48 kB / 437.2 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.591, allocations: 7.984 kB / 437.2 MB, free: 1.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005374/0.5915, allocations: 312.1 kB / 437.5 MB, free: 1.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5915, allocations: 0 / 437.5 MB, free: 1.18 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004673/0.592, allocations: 63.98 kB / 437.6 MB, free: 1.121 MB / 346.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 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001939/0.594, allocations: 1.067 MB / 438.7 MB, free: 196 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004142/0.5944, allocations: 123.4 kB / 438.8 MB, free: 104 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5944, allocations: 0 / 438.8 MB, free: 104 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.5946, allocations: 68.3 kB / 438.9 MB, free: 56 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005877/0.5952, allocations: 58.86 kB / 438.9 MB, free: 12 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.5966, allocations: 478.6 kB / 439.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000435/0.5971, allocations: 0.7856 MB / 440.2 MB, free: 14.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002319/0.5973, allocations: 53.91 kB / 440.2 MB, free: 14.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.5975, allocations: 99.33 kB / 440.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5976, allocations: 7.938 kB / 440.3 MB, free: 14.67 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03194/0.6295, allocations: 6.629 MB / 447 MB, free: 8.152 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003032/0.6299, allocations: 188.9 kB / 447.1 MB, free: 7.926 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.846/3.476, allocations: 0 / 447.1 MB, free: 7.926 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat