Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.884/1.884, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.262e-05/3.267e-05, allocations: 4 kB / 225.1 MB, free: 2.742 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2672, allocations: 38.77 MB / 263.8 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1347/0.402, allocations: 66.22 MB / 330.1 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.4023, allocations: 59.97 kB / 330.1 MB, free: 7.387 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01294/0.4153, allocations: 2.08 MB / 332.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4154, allocations: 0 / 332.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.4154, allocations: 0 / 332.2 MB, free: 5.301 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.0007184/0.4161, allocations: 481.1 kB / 332.7 MB, free: 4.762 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.972e-05/0.4162, allocations: 8.031 kB / 332.7 MB, free: 4.754 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.928e-05/0.4163, allocations: 42.56 kB / 332.7 MB, free: 4.703 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.283e-05/0.4164, allocations: 11.91 kB / 332.7 MB, free: 4.691 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001985/0.4166, allocations: 182.8 kB / 332.9 MB, free: 4.473 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.4166, allocations: 8 kB / 332.9 MB, free: 4.465 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.43e-05/0.4167, allocations: 8 kB / 332.9 MB, free: 4.457 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003589/0.4171, allocations: 93.62 kB / 333 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.4171, allocations: 0 / 333 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.316e-05/0.4171, allocations: 0 / 333 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.4172, allocations: 4 kB / 333 MB, free: 4.355 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002092/0.4174, allocations: 47.98 kB / 333.1 MB, free: 4.309 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008276/0.4182, allocations: 348.6 kB / 333.4 MB, free: 3.918 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.4185, allocations: 66.58 kB / 333.5 MB, free: 3.844 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.4187, allocations: 52.84 kB / 333.5 MB, free: 3.789 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.4187, allocations: 4 kB / 333.5 MB, free: 3.785 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003724/0.4191, allocations: 170.7 kB / 333.7 MB, free: 3.594 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 3.667e-06/0.4191, allocations: 0 / 333.7 MB, free: 3.594 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007285/0.4199, allocations: 205 kB / 333.9 MB, free: 3.375 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.4201, allocations: 170.2 kB / 334.1 MB, free: 3.172 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/0.4203, allocations: 125.1 kB / 334.2 MB, free: 3.039 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.774e-05/0.4204, allocations: 33.69 kB / 334.2 MB, free: 3 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.4205, allocations: 178.4 kB / 334.4 MB, free: 2.824 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.999e-05/0.4206, allocations: 19.72 kB / 334.4 MB, free: 2.805 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.725e-05/0.4206, allocations: 0 / 334.4 MB, free: 2.805 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.4208, allocations: 330.7 kB / 334.7 MB, free: 2.473 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.421, allocations: 35.98 kB / 334.8 MB, free: 2.438 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.4211, allocations: 32 kB / 334.8 MB, free: 2.406 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/0.4214, allocations: 147.5 kB / 334.9 MB, free: 2.238 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4214, allocations: 0 / 334.9 MB, free: 2.238 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0006747/0.4221, allocations: 266.4 kB / 335.2 MB, free: 1.949 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001396/0.4223, allocations: 118.8 kB / 335.3 MB, free: 1.809 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.4223, allocations: 4 kB / 335.3 MB, free: 1.805 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.4223, allocations: 0 / 335.3 MB, free: 1.805 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.665e-05/0.4224, allocations: 4 kB / 335.3 MB, free: 1.801 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.4224, allocations: 0 / 335.3 MB, free: 1.801 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.4226, allocations: 8 kB / 335.3 MB, free: 1.793 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.632e-05/0.4227, allocations: 4 kB / 335.3 MB, free: 1.789 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.0002536/0.4229, allocations: 192.2 kB / 335.5 MB, free: 1.582 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.132e-05/0.423, allocations: 15.91 kB / 335.5 MB, free: 1.566 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.663e-05/0.4231, allocations: 8.609 kB / 335.6 MB, free: 1.562 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.4231, allocations: 3.984 kB / 335.6 MB, free: 1.559 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.4231, allocations: 4 kB / 335.6 MB, free: 1.555 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.4231, allocations: 0 / 335.6 MB, free: 1.555 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003731/0.4235, allocations: 213.4 kB / 335.8 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4235, allocations: 0 / 335.8 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.436e-05/0.4235, allocations: 0 / 335.8 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-06/0.4236, allocations: 0 / 335.8 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.147e-05/0.4236, allocations: 8 kB / 335.8 MB, free: 1.289 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.553e-06/0.4236, allocations: 8 kB / 335.8 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4237, allocations: 0 / 335.8 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000786/0.4244, allocations: 268.4 kB / 336.1 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.419e-05/0.4246, allocations: 93.03 kB / 336.1 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.173e-05/0.4246, allocations: 8 kB / 336.1 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.4249, allocations: 11.98 kB / 336.2 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.695e-05/0.425, allocations: 11.98 kB / 336.2 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.425, allocations: 7.938 kB / 336.2 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001338/0.4252, allocations: 103.3 kB / 336.3 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4252, allocations: 0 / 336.3 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006564/0.4258, allocations: 48 kB / 336.3 MB, free: 0.6914 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.001574/0.4274, allocations: 0.8525 MB / 337.2 MB, free: 15.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006593/0.4282, allocations: 329.5 kB / 337.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.4282, allocations: 0 / 337.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003457/0.4286, allocations: 194.8 kB / 337.7 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002295/0.4288, allocations: 4 kB / 337.7 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.4299, allocations: 248.8 kB / 337.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.4302, allocations: 0.7043 MB / 338.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.548e-05/0.4303, allocations: 39.36 kB / 338.7 MB, free: 14.15 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.4303, allocations: 0 / 338.7 MB, free: 14.15 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.61/3.04, allocations: 2.034 MB / 340.7 MB, free: 12.12 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat