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.771/1.771, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.338e-05/2.347e-05, allocations: 4 kB / 219.6 MB, free: 6.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2573, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1177/0.375, allocations: 65.55 MB / 323.9 MB, free: 12.23 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.3753, allocations: 63.97 kB / 323.9 MB, free: 12.16 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009601/0.3849, allocations: 2.065 MB / 326 MB, free: 10.1 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.385, allocations: 0 / 326 MB, free: 10.1 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.385, allocations: 7.938 kB / 326 MB, free: 10.09 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.0005561/0.3856, allocations: 489.1 kB / 326.5 MB, free: 9.543 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.3856, allocations: 8.031 kB / 326.5 MB, free: 9.535 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.232e-05/0.3857, allocations: 11.91 kB / 326.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.3859, allocations: 174.9 kB / 326.7 MB, free: 9.312 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.177e-05/0.3859, allocations: 8 kB / 326.7 MB, free: 9.305 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.386, allocations: 8 kB / 326.7 MB, free: 9.297 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001705/0.3861, allocations: 39.98 kB / 326.7 MB, free: 9.258 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.3864, allocations: 88.3 kB / 326.8 MB, free: 9.168 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.3864, allocations: 0 / 326.8 MB, free: 9.168 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.3864, allocations: 8 kB / 326.8 MB, free: 9.16 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.3864, allocations: 0 / 326.8 MB, free: 9.16 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005904/0.387, allocations: 309.3 kB / 327.1 MB, free: 8.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001734/0.3872, allocations: 70.56 kB / 327.2 MB, free: 8.742 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.3873, allocations: 40.92 kB / 327.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.3874, allocations: 4.094 kB / 327.3 MB, free: 8.695 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/0.3877, allocations: 166.6 kB / 327.4 MB, free: 8.508 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.124e-06/0.3877, allocations: 0 / 327.4 MB, free: 8.508 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004486/0.3881, allocations: 149.6 kB / 327.6 MB, free: 8.355 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.3883, allocations: 162.2 kB / 327.7 MB, free: 8.16 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.3884, allocations: 127.5 kB / 327.8 MB, free: 8.027 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.659e-05/0.3885, allocations: 29.7 kB / 327.9 MB, free: 7.992 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.295e-05/0.3886, allocations: 104 kB / 328 MB, free: 7.887 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.017e-05/0.3886, allocations: 19.72 kB / 328 MB, free: 7.867 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.127e-06/0.3886, allocations: 0 / 328 MB, free: 7.867 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3888, allocations: 322.8 kB / 328.3 MB, free: 7.543 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.869e-05/0.3889, allocations: 31.98 kB / 328.3 MB, free: 7.512 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.054e-05/0.389, allocations: 39.53 kB / 328.4 MB, free: 7.477 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001596/0.3892, allocations: 31.97 kB / 328.4 MB, free: 7.445 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.3892, allocations: 11.89 kB / 328.4 MB, free: 7.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004141/0.3896, allocations: 153.5 kB / 328.6 MB, free: 7.277 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.3897, allocations: 118.8 kB / 328.7 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3897, allocations: 0 / 328.7 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.3898, allocations: 0 / 328.7 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.921e-05/0.3898, allocations: 0 / 328.7 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.3898, allocations: 7.984 kB / 328.7 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.39, allocations: 4 kB / 328.7 MB, free: 7.125 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.419e-05/0.39, allocations: 4 kB / 328.7 MB, free: 7.121 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.0001688/0.3902, allocations: 180.3 kB / 328.9 MB, free: 6.926 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004092/0.3906, allocations: 177.5 kB / 329.1 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.902e-05/0.3906, allocations: 7.906 kB / 329.1 MB, free: 6.738 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.28e-05/0.3907, allocations: 16.56 kB / 329.1 MB, free: 6.719 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.3907, allocations: 3.984 kB / 329.1 MB, free: 6.715 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3907, allocations: 0 / 329.1 MB, free: 6.715 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3907, allocations: 0 / 329.1 MB, free: 6.715 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.391, allocations: 186 kB / 329.3 MB, free: 6.496 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.391, allocations: 0 / 329.3 MB, free: 6.496 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.037e-06/0.391, allocations: 4 kB / 329.3 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.391, allocations: 0 / 329.3 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.846e-05/0.391, allocations: 4 kB / 329.3 MB, free: 6.488 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.171e-06/0.3911, allocations: 4 kB / 329.3 MB, free: 6.484 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.3911, allocations: 3.938 kB / 329.3 MB, free: 6.48 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004345/0.3915, allocations: 197.1 kB / 329.5 MB, free: 6.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.392e-05/0.3916, allocations: 93.16 kB / 329.6 MB, free: 6.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.842e-05/0.3917, allocations: 8 kB / 329.6 MB, free: 6.152 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.3918, allocations: 15.98 kB / 329.6 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.9e-05/0.3919, allocations: 11.98 kB / 329.6 MB, free: 6.125 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.3919, allocations: 4 kB / 329.6 MB, free: 6.121 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.514e-05/0.392, allocations: 99.27 kB / 329.7 MB, free: 6.023 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.392, allocations: 0 / 329.7 MB, free: 6.023 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004153/0.3924, allocations: 55.88 kB / 329.8 MB, free: 5.969 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.001048/0.3935, allocations: 0.7757 MB / 330.5 MB, free: 5.168 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005628/0.3941, allocations: 317.6 kB / 330.8 MB, free: 4.809 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3941, allocations: 0 / 330.8 MB, free: 4.809 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003163/0.3944, allocations: 194.7 kB / 331 MB, free: 4.594 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002113/0.3947, allocations: 4 kB / 331 MB, free: 4.59 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008955/0.3956, allocations: 206.1 kB / 331.2 MB, free: 4.355 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/0.396, allocations: 0.708 MB / 331.9 MB, free: 3.621 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.416e-05/0.3961, allocations: 7.984 kB / 332 MB, free: 3.613 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.817e-05/0.3961, allocations: 23.44 kB / 332 MB, free: 3.594 MB / 282.7 MB Notification: Performance of SimCode: time 1.122e-06/0.3962, allocations: 0 / 332 MB, free: 3.594 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08222/0.4784, allocations: 2.226 MB / 334.2 MB, free: 1.383 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003146/0.4788, allocations: 129.3 kB / 334.3 MB, free: 1.188 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.314/2.793, allocations: 0 / 334.3 MB, free: 1.188 MB / 282.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