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.851/1.851, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.848e-05/2.852e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2841, allocations: 38.75 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.409, allocations: 65.56 MB / 323.9 MB, free: 12.28 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.4093, allocations: 63.97 kB / 323.9 MB, free: 12.22 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009744/0.419, allocations: 2.06 MB / 326 MB, free: 10.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4191, allocations: 0 / 326 MB, free: 10.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.4191, allocations: 8 kB / 326 MB, free: 10.15 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.0005715/0.4197, allocations: 481.1 kB / 326.5 MB, free: 9.609 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.4197, allocations: 8.031 kB / 326.5 MB, free: 9.602 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.469e-05/0.4198, allocations: 11.91 kB / 326.5 MB, free: 9.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001564/0.42, allocations: 181.9 kB / 326.7 MB, free: 9.375 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.42, allocations: 4 kB / 326.7 MB, free: 9.371 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.137e-05/0.42, allocations: 4 kB / 326.7 MB, free: 9.367 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001771/0.4202, allocations: 51.98 kB / 326.7 MB, free: 9.316 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.4205, allocations: 86.61 kB / 326.8 MB, free: 9.227 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.4205, allocations: 4 kB / 326.8 MB, free: 9.223 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/0.4205, allocations: 7.938 kB / 326.8 MB, free: 9.215 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.4206, allocations: 0 / 326.8 MB, free: 9.215 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005736/0.4211, allocations: 305.3 kB / 327.1 MB, free: 8.879 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.4213, allocations: 70.56 kB / 327.2 MB, free: 8.801 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.4214, allocations: 52.94 kB / 327.2 MB, free: 8.746 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.4215, allocations: 0 / 327.2 MB, free: 8.746 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002503/0.4217, allocations: 150.7 kB / 327.4 MB, free: 8.574 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.354e-06/0.4218, allocations: 0 / 327.4 MB, free: 8.574 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004432/0.4222, allocations: 153.5 kB / 327.5 MB, free: 8.418 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.4223, allocations: 170.2 kB / 327.7 MB, free: 8.215 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.4225, allocations: 125.1 kB / 327.8 MB, free: 8.082 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.4225, allocations: 25.7 kB / 327.8 MB, free: 8.051 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.987e-05/0.4227, allocations: 166.5 kB / 328 MB, free: 7.887 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.274e-05/0.4227, allocations: 27.69 kB / 328 MB, free: 7.859 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.808e-06/0.4227, allocations: 0 / 328 MB, free: 7.859 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.4229, allocations: 318.8 kB / 328.3 MB, free: 7.539 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.81e-05/0.423, allocations: 35.92 kB / 328.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.42e-05/0.4231, allocations: 35.98 kB / 328.4 MB, free: 7.469 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.4233, allocations: 34.64 kB / 328.5 MB, free: 7.438 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.4233, allocations: 7.891 kB / 328.5 MB, free: 7.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004184/0.4237, allocations: 149.5 kB / 328.6 MB, free: 7.277 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.63e-05/0.4238, allocations: 118.8 kB / 328.7 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.4238, allocations: 0 / 328.7 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.4239, allocations: 4 kB / 328.7 MB, free: 7.133 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.015e-05/0.4239, allocations: 0 / 328.7 MB, free: 7.133 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.4239, allocations: 0 / 328.7 MB, free: 7.133 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.901e-05/0.424, allocations: 8 kB / 328.7 MB, free: 7.125 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.545e-05/0.4241, 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.0001774/0.4243, allocations: 185.7 kB / 328.9 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004333/0.4247, allocations: 173.5 kB / 329.1 MB, free: 6.746 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.001e-05/0.4248, allocations: 11.91 kB / 329.1 MB, free: 6.734 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.448e-05/0.4248, allocations: 8.625 kB / 329.1 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.4248, allocations: 0 / 329.1 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4248, allocations: 0 / 329.1 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.4249, allocations: 0 / 329.1 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.4251, allocations: 190 kB / 329.3 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4251, allocations: 4 kB / 329.3 MB, free: 6.496 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.624e-05/0.4251, allocations: 3.984 kB / 329.3 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.4251, allocations: 0 / 329.3 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.4252, allocations: 7.938 kB / 329.3 MB, free: 6.484 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.4252, allocations: 0 / 329.3 MB, free: 6.484 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.4252, allocations: 3.984 kB / 329.3 MB, free: 6.48 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004313/0.4256, allocations: 197 kB / 329.5 MB, free: 6.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.403e-05/0.4257, allocations: 85.11 kB / 329.6 MB, free: 6.168 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.537e-05/0.4258, allocations: 16.17 kB / 329.6 MB, free: 6.152 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.4259, allocations: 12 kB / 329.6 MB, free: 6.141 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.745e-05/0.426, allocations: 11.98 kB / 329.6 MB, free: 6.129 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.032e-05/0.426, allocations: 4 kB / 329.6 MB, free: 6.125 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.995e-05/0.4261, allocations: 91.27 kB / 329.7 MB, free: 6.035 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4261, allocations: 4 kB / 329.7 MB, free: 6.031 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004206/0.4265, allocations: 55.88 kB / 329.8 MB, free: 5.977 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.0009473/0.4275, allocations: 0.7826 MB / 330.6 MB, free: 5.168 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004254/0.4279, allocations: 317.6 kB / 330.9 MB, free: 4.809 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.428, allocations: 0 / 330.9 MB, free: 4.809 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002308/0.4282, allocations: 194.7 kB / 331.1 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.0001701/0.4284, allocations: 5.688 kB / 331.1 MB, free: 4.59 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006921/0.4291, allocations: 235.8 kB / 331.3 MB, free: 4.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.4294, allocations: 0.7041 MB / 332 MB, free: 3.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.418e-05/0.4295, allocations: 27.42 kB / 332 MB, free: 3.566 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.4295, allocations: 0 / 332 MB, free: 3.566 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.465/2.895, allocations: 2.037 MB / 334.1 MB, free: 1.531 MB / 282.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