Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.756/1.756, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.218e-05/3.227e-05, allocations: 3.984 kB / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3141, allocations: 38.78 MB / 263.8 MB, free: 9.762 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1569/0.4711, allocations: 69.79 MB / 333.6 MB, free: 3.871 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/0.4715, allocations: 63.97 kB / 333.7 MB, free: 3.809 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03103/0.5025, allocations: 4.929 MB / 338.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.5026, allocations: 0 / 338.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.201e-05/0.5027, allocations: 15.98 kB / 338.6 MB, free: 14.84 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001831/0.5045, allocations: 0.6416 MB / 339.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.834e-05/0.5046, allocations: 8.031 kB / 339.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002363/0.5049, allocations: 74.47 kB / 339.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002073/0.5051, allocations: 59.36 kB / 339.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008262/0.506, allocations: 289.6 kB / 339.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.5061, allocations: 58.48 kB / 339.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.5063, allocations: 43.95 kB / 339.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.5077, allocations: 391.5 kB / 340.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.5078, allocations: 3.938 kB / 340.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-05/0.5078, allocations: 12 kB / 340.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.854e-05/0.5079, allocations: 16.42 kB / 340.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009924/0.5089, allocations: 228.7 kB / 340.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004153/0.5131, allocations: 1.585 MB / 342 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.5142, allocations: 256 kB / 342.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004835/0.5148, allocations: 122.6 kB / 342.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.5149, allocations: 12 kB / 342.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009281/0.5158, allocations: 345.4 kB / 342.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 5.31e-06/0.5159, allocations: 0 / 342.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.001561/0.5175, allocations: 399.1 kB / 343.1 MB, free: 10.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002006/0.5177, allocations: 203.8 kB / 343.3 MB, free: 9.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006436/0.5184, allocations: 258.9 kB / 343.6 MB, free: 9.496 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001378/0.5186, allocations: 41.7 kB / 343.6 MB, free: 9.449 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002972/0.5189, allocations: 247.1 kB / 343.9 MB, free: 9.207 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/0.5191, allocations: 75.05 kB / 343.9 MB, free: 9.133 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.5191, allocations: 12 kB / 343.9 MB, free: 9.121 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.5193, allocations: 334.8 kB / 344.3 MB, free: 8.785 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004626/0.5198, allocations: 109.1 kB / 344.4 MB, free: 8.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005844/0.5204, allocations: 231 kB / 344.6 MB, free: 8.402 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005923/0.521, allocations: 217 kB / 344.8 MB, free: 8.172 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.989e-06/0.5211, allocations: 0 / 344.8 MB, free: 8.172 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001632/0.5227, allocations: 490.1 kB / 345.3 MB, free: 7.668 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001323/0.5229, allocations: 95.72 kB / 345.4 MB, free: 7.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.812e-05/0.5229, allocations: 8 kB / 345.4 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.486e-05/0.523, allocations: 8.125 kB / 345.4 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.5233, allocations: 31.86 kB / 345.4 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.703e-05/0.5233, allocations: 16.05 kB / 345.5 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005667/0.5239, allocations: 35.89 kB / 345.5 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.524, allocations: 24.05 kB / 345.5 MB, free: 7.438 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.onDelay.u,$PRE.onDelay.t_next,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 3 * 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.0004199/0.5245, allocations: 236.1 kB / 345.7 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.5246, allocations: 31.62 kB / 345.8 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009601/0.5256, allocations: 235.6 kB / 346 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/0.5257, allocations: 4 kB / 346 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.5257, allocations: 3.938 kB / 346 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.543e-05/0.5257, allocations: 11.98 kB / 346 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002894/0.5287, allocations: 0.9805 MB / 347 MB, free: 5.852 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.5287, allocations: 0 / 347 MB, free: 5.852 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001272/0.5289, allocations: 15.92 kB / 347 MB, free: 5.836 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.264e-05/0.5289, allocations: 0 / 347 MB, free: 5.836 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-05/0.529, allocations: 12 kB / 347 MB, free: 5.824 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.936e-05/0.529, allocations: 19.94 kB / 347 MB, free: 5.805 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.529, allocations: 0 / 347 MB, free: 5.805 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.5307, allocations: 0.6265 MB / 347.7 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.5309, allocations: 104.7 kB / 347.8 MB, free: 5.012 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001319/0.5311, allocations: 16 kB / 347.8 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/0.5317, allocations: 31.97 kB / 347.8 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/0.5319, allocations: 35.95 kB / 347.9 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.712e-05/0.5321, allocations: 15.98 kB / 347.9 MB, free: 4.914 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003855/0.5325, allocations: 179.1 kB / 348.1 MB, free: 4.738 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.5325, allocations: 0 / 348.1 MB, free: 4.738 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001272/0.5338, allocations: 108 kB / 348.2 MB, free: 4.633 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 38 (onDelay.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulsStart,booleanPulse2.pulsStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 14 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,rSFlipFlop.pre.u,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay.t_next,onDelay.delaySignal,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 3 * 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.002663/0.5365, allocations: 1.374 MB / 349.5 MB, free: 3.211 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.5381, allocations: 482.5 kB / 350 MB, free: 2.703 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.5381, allocations: 0 / 350 MB, free: 2.703 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008396/0.539, allocations: 298.7 kB / 350.3 MB, free: 2.387 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009208/0.54, allocations: 51.94 kB / 350.3 MB, free: 2.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.5431, allocations: 0.6019 MB / 350.9 MB, free: 1.688 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006628/0.5438, allocations: 0.7997 MB / 351.7 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/0.5443, allocations: 127.4 kB / 351.9 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of SimCode: time 1.773e-06/0.5443, allocations: 3.938 kB / 351.9 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.853/3.397, allocations: 5.874 MB / 357.7 MB, free: 10.86 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.BooleanNetwork1_res.mat does not exist to compare? outputFormat=mat