Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.099/2.099, allocations: 194.9 MB / 208.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.126e-05/3.14e-05, allocations: 0 / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09725, allocations: 44.51 MB / 299.9 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4968/0.5941, allocations: 71.53 MB / 371.5 MB, free: 21.16 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/0.5945, allocations: 63.31 kB / 371.5 MB, free: 21.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01073/0.6052, allocations: 2.068 MB / 373.6 MB, free: 20.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.6053, allocations: 0 / 373.6 MB, free: 20.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.6053, allocations: 0.9688 kB / 373.6 MB, free: 20.78 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.0005003/0.6058, allocations: 480.4 kB / 374.1 MB, free: 20.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.6059, allocations: 9.031 kB / 374.1 MB, free: 20.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.935e-05/0.6059, allocations: 43.55 kB / 374.1 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.556e-05/0.606, allocations: 10.62 kB / 374.1 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.6061, allocations: 184.3 kB / 374.3 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.6061, allocations: 8.734 kB / 374.3 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.6062, allocations: 10.06 kB / 374.3 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.6065, allocations: 90.89 kB / 374.4 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.6065, allocations: 0 / 374.4 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.6065, allocations: 3.938 kB / 374.4 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.6065, allocations: 2.312 kB / 374.4 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001633/0.6067, allocations: 50.12 kB / 374.5 MB, free: 20 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006321/0.6074, allocations: 344.8 kB / 374.8 MB, free: 19.72 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000195/0.6076, allocations: 75.98 kB / 374.9 MB, free: 19.7 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.6077, allocations: 45.7 kB / 374.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.476e-05/0.6077, allocations: 0 / 374.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002596/0.608, allocations: 158.4 kB / 375.1 MB, free: 19.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.264e-06/0.608, allocations: 5.125 kB / 375.1 MB, free: 19.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005045/0.6085, allocations: 220.2 kB / 375.3 MB, free: 19.47 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.6086, allocations: 166 kB / 375.5 MB, free: 19.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.6088, allocations: 120.1 kB / 375.6 MB, free: 19.19 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.127e-05/0.6088, allocations: 33.3 kB / 375.6 MB, free: 19.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.299e-05/0.6089, allocations: 169.1 kB / 375.8 MB, free: 19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.595e-05/0.609, allocations: 27.73 kB / 375.8 MB, free: 18.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.063e-05/0.609, allocations: 2.406 kB / 375.8 MB, free: 18.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.548e-05/0.6091, allocations: 322 kB / 376.1 MB, free: 18.67 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.6092, allocations: 34.92 kB / 376.2 MB, free: 18.67 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.6093, allocations: 35.72 kB / 376.2 MB, free: 18.67 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.6095, allocations: 145.2 kB / 376.3 MB, free: 18.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.6095, allocations: 0 / 376.3 MB, free: 18.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004353/0.6099, allocations: 264.2 kB / 376.6 MB, free: 18.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.979e-05/0.61, allocations: 117.6 kB / 376.7 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.61, allocations: 1.312 kB / 376.7 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.6101, allocations: 0.6562 kB / 376.7 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.634e-05/0.6101, allocations: 3.688 kB / 376.7 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.6101, allocations: 13.39 kB / 376.7 MB, free: 18.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.6103, allocations: 16.03 kB / 376.8 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.6103, allocations: 6.062 kB / 376.8 MB, free: 18.23 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.0001476/0.6105, allocations: 178.3 kB / 376.9 MB, free: 18.07 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/0.6105, allocations: 11.59 kB / 376.9 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.657e-05/0.6106, allocations: 10.84 kB / 377 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.6106, allocations: 0 / 377 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.6106, allocations: 5.375 kB / 377 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.6106, allocations: 6.203 kB / 377 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001839/0.6108, allocations: 198.7 kB / 377.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.6108, allocations: 1.188 kB / 377.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.028e-05/0.6109, allocations: 3.312 kB / 377.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.6109, allocations: 1.25 kB / 377.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.6109, allocations: 5.609 kB / 377.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.6109, allocations: 0 / 377.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.6109, allocations: 1.062 kB / 377.2 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000506/0.6114, allocations: 283.8 kB / 377.4 MB, free: 17.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.63e-05/0.6115, allocations: 96.88 kB / 377.5 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.436e-05/0.6116, allocations: 4.781 kB / 377.5 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.6117, allocations: 14.39 kB / 377.6 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.751e-05/0.6118, allocations: 7.469 kB / 377.6 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.6118, allocations: 13.05 kB / 377.6 MB, free: 17.6 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.655e-05/0.6119, allocations: 96.48 kB / 377.7 MB, free: 17.53 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6119, allocations: 0 / 377.7 MB, free: 17.53 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004761/0.6124, allocations: 57 kB / 377.7 MB, free: 17.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.0009847/0.6134, allocations: 0.8512 MB / 378.6 MB, free: 16.85 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004355/0.6139, allocations: 325.7 kB / 378.9 MB, free: 16.6 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.6139, allocations: 0 / 378.9 MB, free: 16.6 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007088/0.6146, allocations: 193.9 kB / 379.1 MB, free: 32.47 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001809/0.6148, allocations: 11.41 kB / 379.1 MB, free: 32.47 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008134/0.6157, allocations: 246.7 kB / 379.3 MB, free: 32.31 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.616, allocations: 0.7092 MB / 380.1 MB, free: 31.61 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.279e-05/0.6161, allocations: 23.12 kB / 380.1 MB, free: 31.61 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6161, allocations: 0 / 380.1 MB, free: 31.61 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.577/3.193, allocations: 2.03 MB / 382.1 MB, free: 31.42 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat