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.818/1.818, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.643e-05/2.655e-05, allocations: 7.938 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2822, allocations: 38.76 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.411, allocations: 69.11 MB / 327.4 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/0.4113, allocations: 67.97 kB / 327.5 MB, free: 8.637 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0222/0.4335, allocations: 4.898 MB / 332.4 MB, free: 3.715 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4336, allocations: 0 / 332.4 MB, free: 3.715 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.556e-05/0.4336, allocations: 12 kB / 332.4 MB, free: 3.703 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001295/0.4349, allocations: 0.6454 MB / 333 MB, free: 2.992 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.435, allocations: 11.97 kB / 333.1 MB, free: 2.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.4351, allocations: 51.38 kB / 333.1 MB, free: 2.93 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005734/0.4357, allocations: 289.6 kB / 333.4 MB, free: 2.605 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.465e-05/0.4358, allocations: 42.48 kB / 333.4 MB, free: 2.559 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.133e-05/0.4359, allocations: 24 kB / 333.5 MB, free: 2.535 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006332/0.4366, allocations: 209.5 kB / 333.7 MB, free: 2.332 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007981/0.4374, allocations: 347.5 kB / 334 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.4374, allocations: 3.938 kB / 334 MB, free: 1.949 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.315e-05/0.4375, allocations: 4 kB / 334 MB, free: 1.945 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-05/0.4375, allocations: 12.44 kB / 334 MB, free: 1.934 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00271/0.4402, allocations: 1.506 MB / 335.5 MB, free: 360 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006466/0.4409, allocations: 252 kB / 335.8 MB, free: 80 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003539/0.4413, allocations: 122.7 kB / 335.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.172e-05/0.4414, allocations: 8 kB / 335.9 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005836/0.442, allocations: 337.3 kB / 336.2 MB, free: 15.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 2.635e-06/0.442, allocations: 0 / 336.2 MB, free: 15.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.001132/0.4432, allocations: 324.5 kB / 336.5 MB, free: 15.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.4433, allocations: 199.8 kB / 336.7 MB, free: 15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004039/0.4437, allocations: 245.9 kB / 337 MB, free: 14.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.523e-05/0.4438, allocations: 33.7 kB / 337 MB, free: 14.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.444, allocations: 243 kB / 337.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.798e-05/0.4442, allocations: 79.11 kB / 337.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.422e-05/0.4442, allocations: 0 / 337.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.4443, allocations: 334.8 kB / 337.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.4446, allocations: 101.1 kB / 337.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/0.445, allocations: 215.1 kB / 338 MB, free: 13.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005917/0.4456, allocations: 138.9 kB / 338.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.4457, allocations: 4 kB / 338.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001828/0.4475, allocations: 385.1 kB / 338.5 MB, free: 13.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001315/0.4477, allocations: 88.7 kB / 338.6 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.382e-05/0.4477, allocations: 4.125 kB / 338.6 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.444e-05/0.4478, allocations: 15.98 kB / 338.6 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.4481, allocations: 27.92 kB / 338.6 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.449e-05/0.4481, allocations: 11.94 kB / 338.6 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006155/0.4488, allocations: 36.11 kB / 338.7 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.4489, allocations: 23.98 kB / 338.7 MB, free: 12.96 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.0004582/0.4494, allocations: 213.4 kB / 338.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001999/0.4514, allocations: 345.2 kB / 339.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.4516, allocations: 35.62 kB / 339.3 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001285/0.4529, allocations: 223.6 kB / 339.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.742e-05/0.453, allocations: 4 kB / 339.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.453, allocations: 0 / 339.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-05/0.4531, allocations: 7.984 kB / 339.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003353/0.4565, allocations: 0.8454 MB / 340.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.4565, allocations: 4.062 kB / 340.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.4566, allocations: 19.92 kB / 340.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/0.4567, allocations: 0 / 340.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-05/0.4567, allocations: 8 kB / 340.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-05/0.4568, allocations: 4 kB / 340.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/0.4568, allocations: 3.953 kB / 340.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002084/0.4589, allocations: 0.553 MB / 340.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.4591, allocations: 104.8 kB / 341 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.4592, allocations: 8 kB / 341 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006077/0.4599, allocations: 31.95 kB / 341.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.4601, allocations: 39.95 kB / 341.1 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.58e-05/0.4602, allocations: 15.98 kB / 341.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003166/0.4605, allocations: 162 kB / 341.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.4606, allocations: 0 / 341.3 MB, free: 10.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001207/0.4618, allocations: 91.92 kB / 341.4 MB, free: 10.14 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.002639/0.4645, allocations: 1.289 MB / 342.7 MB, free: 8.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.466, allocations: 462.7 kB / 343.1 MB, free: 8.332 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.466, allocations: 4.125 kB / 343.1 MB, free: 8.328 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007955/0.4669, allocations: 298.6 kB / 343.4 MB, free: 8.012 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008539/0.4677, allocations: 40.75 kB / 343.5 MB, free: 7.973 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002875/0.4706, allocations: 0.5581 MB / 344 MB, free: 7.363 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006715/0.4714, allocations: 0.8072 MB / 344.8 MB, free: 6.531 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004357/0.4718, allocations: 123.4 kB / 344.9 MB, free: 6.414 MB / 298.7 MB Notification: Performance of SimCode: time 5.18e-06/0.4719, allocations: 0 / 344.9 MB, free: 6.414 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.757/3.229, allocations: 5.851 MB / 350.8 MB, free: 0.5625 MB / 298.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