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 1.955/1.955, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.767e-05/2.769e-05, allocations: 0 / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1006, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4161/0.5168, allocations: 75.08 MB / 375 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.5171, allocations: 65.42 kB / 375.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02199/0.5391, allocations: 4.926 MB / 380 MB, free: 12.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5391, allocations: 0 / 380 MB, free: 12.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.572e-05/0.5392, allocations: 13.17 kB / 380 MB, free: 12.24 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.00126/0.5404, allocations: 0.6532 MB / 380.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.5405, allocations: 10.55 kB / 380.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001139/0.5406, allocations: 72.69 kB / 380.7 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.5408, allocations: 43.28 kB / 380.8 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005431/0.5414, allocations: 298.7 kB / 381.1 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.851e-05/0.5415, allocations: 59.23 kB / 381.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.858e-05/0.5416, allocations: 40.06 kB / 381.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009043/0.5425, allocations: 392.6 kB / 381.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.5425, allocations: 5.156 kB / 381.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.647e-05/0.5426, allocations: 16.72 kB / 381.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.362e-05/0.5427, allocations: 14.73 kB / 381.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006922/0.5434, allocations: 239.4 kB / 381.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002678/0.5461, allocations: 1.575 MB / 383.4 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007004/0.5468, allocations: 267.6 kB / 383.7 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/0.5471, allocations: 126.6 kB / 383.8 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.967e-05/0.5472, allocations: 11.7 kB / 383.8 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005578/0.5478, allocations: 344 kB / 384.1 MB, free: 9.855 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.196e-06/0.5478, allocations: 3.938 kB / 384.1 MB, free: 9.852 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.001045/0.5489, allocations: 405.4 kB / 384.5 MB, free: 9.734 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.136e-05/0.549, allocations: 201.8 kB / 384.7 MB, free: 9.508 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004058/0.5494, allocations: 262.5 kB / 385 MB, free: 9.398 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.374e-05/0.5495, allocations: 43.75 kB / 385 MB, free: 9.367 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.5496, allocations: 236.4 kB / 385.3 MB, free: 9.188 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.16e-05/0.5497, allocations: 80.22 kB / 385.3 MB, free: 9.152 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-05/0.5498, allocations: 10.12 kB / 385.3 MB, free: 9.152 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.578e-05/0.5498, allocations: 327.5 kB / 385.7 MB, free: 8.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003014/0.5502, allocations: 109.3 kB / 385.8 MB, free: 8.836 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004015/0.5506, allocations: 234.9 kB / 386 MB, free: 8.695 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003833/0.551, allocations: 223.7 kB / 386.2 MB, free: 8.582 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.551, allocations: 1.219 kB / 386.2 MB, free: 8.582 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00106/0.5521, allocations: 0.4897 MB / 386.7 MB, free: 8.418 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.248e-05/0.5522, allocations: 101.6 kB / 386.8 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.5522, allocations: 4.125 kB / 386.8 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.087e-05/0.5522, allocations: 10.83 kB / 386.8 MB, free: 8.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.5524, allocations: 31.25 kB / 386.9 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.88e-05/0.5525, allocations: 13.72 kB / 386.9 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004101/0.5529, allocations: 35.23 kB / 386.9 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.2e-05/0.553, allocations: 22.44 kB / 386.9 MB, free: 8.305 MB / 314.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.0002459/0.5532, allocations: 225 kB / 387.1 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-05/0.5533, allocations: 33.5 kB / 387.2 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006716/0.554, allocations: 245.6 kB / 387.4 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.554, allocations: 7.922 kB / 387.4 MB, free: 8.051 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.914e-06/0.5541, allocations: 5.219 kB / 387.4 MB, free: 8.047 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.5541, allocations: 3.875 kB / 387.4 MB, free: 8.047 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.556, allocations: 0.9768 MB / 388.4 MB, free: 7.594 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.556, allocations: 0 / 388.4 MB, free: 7.594 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.924e-05/0.5561, allocations: 18.62 kB / 388.4 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/0.5561, allocations: 2.688 kB / 388.4 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.817e-05/0.5562, allocations: 17.92 kB / 388.4 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.5562, allocations: 1.344 kB / 388.5 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.5562, allocations: 1.391 kB / 388.5 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.5573, allocations: 0.6266 MB / 389.1 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.075e-05/0.5574, allocations: 109.9 kB / 389.2 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.042e-05/0.5575, allocations: 10.97 kB / 389.2 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003965/0.5579, allocations: 30.06 kB / 389.2 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.5581, allocations: 42.64 kB / 389.3 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.004e-05/0.5582, allocations: 15.97 kB / 389.3 MB, free: 7.133 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000255/0.5584, allocations: 175.4 kB / 389.5 MB, free: 7.047 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5585, allocations: 4 kB / 389.5 MB, free: 7.043 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007984/0.5593, allocations: 104.3 kB / 389.6 MB, free: 7.035 MB / 314.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.001693/0.561, allocations: 1.376 MB / 390.9 MB, free: 22.03 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009195/0.5619, allocations: 0.4885 MB / 391.4 MB, free: 21.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.562, allocations: 0.875 kB / 391.4 MB, free: 21.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004822/0.5624, allocations: 311 kB / 391.7 MB, free: 21.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000605/0.5631, allocations: 53.25 kB / 391.8 MB, free: 21.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.5649, allocations: 0.5839 MB / 392.4 MB, free: 21.42 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004659/0.5654, allocations: 0.8018 MB / 393.2 MB, free: 20.72 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002581/0.5657, allocations: 120.8 kB / 393.3 MB, free: 20.71 MB / 330.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5657, allocations: 3.938 kB / 393.3 MB, free: 20.71 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.765/3.33, allocations: 5.907 MB / 399.2 MB, free: 20.13 MB / 330.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