Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.196/2.196, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.205e-05/3.222e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3379, allocations: 44.5 MB / 294.2 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1789/0.5169, allocations: 74.42 MB / 368.6 MB, free: 7.539 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.5172, allocations: 67.97 kB / 368.7 MB, free: 7.473 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02347/0.5407, allocations: 4.894 MB / 373.6 MB, free: 2.559 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5408, allocations: 0 / 373.6 MB, free: 2.559 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.571e-05/0.5408, allocations: 12 kB / 373.6 MB, free: 2.547 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001291/0.5421, allocations: 0.6531 MB / 374.2 MB, free: 1.828 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.5422, allocations: 8.031 kB / 374.3 MB, free: 1.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.5423, allocations: 43.53 kB / 374.3 MB, free: 1.777 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005501/0.5429, allocations: 297.4 kB / 374.6 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.721e-05/0.543, allocations: 42.48 kB / 374.6 MB, free: 1.398 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.557e-05/0.5431, allocations: 24 kB / 374.6 MB, free: 1.375 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006192/0.5437, allocations: 209.5 kB / 374.9 MB, free: 1.168 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007899/0.5445, allocations: 351.5 kB / 375.2 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.5445, allocations: 0 / 375.2 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.08e-05/0.5446, allocations: 7.984 kB / 375.2 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-05/0.5446, allocations: 16.38 kB / 375.2 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002687/0.5473, allocations: 1.507 MB / 376.7 MB, free: 15.18 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006317/0.548, allocations: 247.8 kB / 377 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002724/0.5483, allocations: 114.6 kB / 377.1 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.596e-05/0.5484, allocations: 15.92 kB / 377.1 MB, free: 14.78 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005836/0.549, allocations: 337.3 kB / 377.4 MB, free: 14.4 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 2.825e-06/0.549, allocations: 0 / 377.4 MB, free: 14.4 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001113/0.5501, allocations: 324.8 kB / 377.7 MB, free: 14.08 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/0.5503, allocations: 199.8 kB / 377.9 MB, free: 13.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003673/0.5507, allocations: 246 kB / 378.2 MB, free: 13.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.492e-05/0.5507, allocations: 29.7 kB / 378.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.5509, allocations: 243.2 kB / 378.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.551, allocations: 67.12 kB / 378.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.5511, allocations: 7.938 kB / 378.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.5512, allocations: 334.8 kB / 378.8 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.5515, allocations: 101 kB / 378.9 MB, free: 12.81 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003825/0.5519, allocations: 219 kB / 379.2 MB, free: 12.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005126/0.5525, allocations: 134.9 kB / 379.3 MB, free: 12.42 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.5525, allocations: 4 kB / 379.3 MB, free: 12.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001122/0.5536, allocations: 389.2 kB / 379.7 MB, free: 12.03 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.722e-05/0.5537, allocations: 93.09 kB / 379.8 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.5537, allocations: 4 kB / 379.8 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.05e-05/0.5538, allocations: 8 kB / 379.8 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.554, allocations: 31.86 kB / 379.8 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.554, allocations: 7.938 kB / 379.8 MB, free: 11.87 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003437/0.5543, allocations: 31.92 kB / 379.8 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.972e-05/0.5544, allocations: 28.16 kB / 379.9 MB, free: 11.81 MB / 330.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.0002553/0.5547, allocations: 209.3 kB / 380.1 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009925/0.5557, allocations: 337.1 kB / 380.4 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.685e-05/0.5558, allocations: 39.61 kB / 380.4 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007441/0.5565, allocations: 224 kB / 380.7 MB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.5566, allocations: 7.953 kB / 380.7 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.5566, allocations: 0 / 380.7 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.5566, allocations: 7.984 kB / 380.7 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.5585, allocations: 0.8452 MB / 381.5 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.5585, allocations: 11.89 kB / 381.5 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.924e-05/0.5586, allocations: 19.92 kB / 381.6 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.968e-06/0.5586, allocations: 4 kB / 381.6 MB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.941e-05/0.5587, allocations: 8.125 kB / 381.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.5587, allocations: 4 kB / 381.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5587, allocations: 0 / 381.6 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.5598, allocations: 0.5552 MB / 382.1 MB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.127e-05/0.5599, allocations: 96.83 kB / 382.2 MB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.825e-05/0.56, allocations: 11.94 kB / 382.2 MB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003698/0.5604, allocations: 23.97 kB / 382.3 MB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.5606, allocations: 43.88 kB / 382.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.616e-05/0.5606, allocations: 20 kB / 382.3 MB, free: 9.238 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002154/0.5609, allocations: 162 kB / 382.5 MB, free: 9.078 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5609, allocations: 0 / 382.5 MB, free: 9.078 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007803/0.5617, allocations: 88.03 kB / 382.6 MB, free: 8.992 MB / 330.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.001728/0.5634, allocations: 1.288 MB / 383.9 MB, free: 7.668 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009091/0.5643, allocations: 474.3 kB / 384.3 MB, free: 7.168 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.5644, allocations: 256 / 384.3 MB, free: 7.168 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004881/0.5649, allocations: 290.7 kB / 384.6 MB, free: 6.859 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005475/0.5654, allocations: 46.27 kB / 384.6 MB, free: 6.816 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.5672, allocations: 0.5548 MB / 385.2 MB, free: 6.211 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004897/0.5677, allocations: 0.7994 MB / 386 MB, free: 5.383 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002885/0.568, allocations: 123.4 kB / 386.1 MB, free: 5.262 MB / 330.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5681, allocations: 4 kB / 386.1 MB, free: 5.258 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.88/3.448, allocations: 5.865 MB / 392 MB, free: 15.39 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.BooleanNetwork1_res.mat does not exist to compare? outputFormat=mat