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.015/2.015, allocations: 194.9 MB / 208.5 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.01e-05/3.016e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.099/0.09907, allocations: 44.5 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5004/0.5996, allocations: 75.09 MB / 375 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.5999, allocations: 65.38 kB / 375.1 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02304/0.6229, allocations: 4.927 MB / 380 MB, free: 11.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.623, allocations: 0 / 380 MB, free: 11.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.495e-05/0.623, allocations: 13.72 kB / 380 MB, free: 11.91 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.001297/0.6243, allocations: 0.6496 MB / 380.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.086e-05/0.6244, allocations: 9.031 kB / 380.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00015/0.6246, allocations: 72.14 kB / 380.8 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.6248, allocations: 44.03 kB / 380.8 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000563/0.6254, allocations: 299.5 kB / 381.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.6255, allocations: 61.27 kB / 381.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.951e-05/0.6256, allocations: 36.31 kB / 381.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009178/0.6265, allocations: 394.2 kB / 381.6 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.6266, allocations: 3.938 kB / 381.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.282e-05/0.6266, allocations: 18.59 kB / 381.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-05/0.6267, allocations: 11.28 kB / 381.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006536/0.6274, allocations: 227.3 kB / 381.8 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002748/0.6301, allocations: 1.579 MB / 383.4 MB, free: 9.848 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.6312, allocations: 261 kB / 383.7 MB, free: 9.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005479/0.6318, allocations: 124 kB / 383.8 MB, free: 9.746 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000122/0.632, allocations: 16.92 kB / 383.8 MB, free: 9.742 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008558/0.6329, allocations: 348.7 kB / 384.2 MB, free: 9.531 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 5.741e-06/0.6329, allocations: 0 / 384.2 MB, free: 9.531 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.001569/0.6345, allocations: 404.7 kB / 384.5 MB, free: 9.414 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.6347, allocations: 201.9 kB / 384.7 MB, free: 9.188 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006155/0.6353, allocations: 264.9 kB / 385 MB, free: 9.074 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001465/0.6355, allocations: 39.14 kB / 385 MB, free: 9.043 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.6358, allocations: 239.1 kB / 385.3 MB, free: 8.863 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.636, allocations: 77.7 kB / 385.4 MB, free: 8.828 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.884e-05/0.636, allocations: 9.812 kB / 385.4 MB, free: 8.828 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.989e-05/0.6361, allocations: 328 kB / 385.7 MB, free: 8.516 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005288/0.6367, allocations: 107.7 kB / 385.8 MB, free: 8.512 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006084/0.6373, allocations: 229.7 kB / 386 MB, free: 8.375 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006276/0.638, allocations: 226 kB / 386.2 MB, free: 8.262 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/0.638, allocations: 1.094 kB / 386.2 MB, free: 8.262 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001664/0.6397, allocations: 497.5 kB / 386.7 MB, free: 8.098 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.6399, allocations: 93.83 kB / 386.8 MB, free: 8.004 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.984e-05/0.6399, allocations: 8.125 kB / 386.8 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.902e-05/0.64, allocations: 10.83 kB / 386.8 MB, free: 7.996 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.6403, allocations: 31.89 kB / 386.9 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.56e-05/0.6403, allocations: 10.81 kB / 386.9 MB, free: 7.988 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000655/0.641, allocations: 31.92 kB / 386.9 MB, free: 7.988 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.6411, allocations: 22.06 kB / 386.9 MB, free: 7.988 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.0003581/0.6415, allocations: 226.3 kB / 387.1 MB, free: 7.801 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001708/0.6417, allocations: 36.45 kB / 387.2 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009751/0.6427, allocations: 241.3 kB / 387.4 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.832e-05/0.6427, allocations: 8.078 kB / 387.4 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.6428, allocations: 1.375 kB / 387.4 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.6428, allocations: 7.141 kB / 387.4 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002976/0.6458, allocations: 0.9783 MB / 388.4 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/0.6459, allocations: 1.281 kB / 388.4 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.646, allocations: 20.48 kB / 388.4 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-05/0.6461, allocations: 1.312 kB / 388.4 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.24e-05/0.6461, allocations: 18.05 kB / 388.5 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-06/0.6462, allocations: 1.344 kB / 388.5 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.6462, allocations: 1.281 kB / 388.5 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.6478, allocations: 0.6244 MB / 389.1 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.6481, allocations: 110.9 kB / 389.2 MB, free: 6.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.6482, allocations: 11.06 kB / 389.2 MB, free: 6.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006736/0.6489, allocations: 28.52 kB / 389.2 MB, free: 6.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/0.6492, allocations: 35.62 kB / 389.3 MB, free: 6.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.6493, allocations: 18.83 kB / 389.3 MB, free: 6.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000386/0.6497, allocations: 180.6 kB / 389.5 MB, free: 6.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.61e-07/0.6497, allocations: 0 / 389.5 MB, free: 6.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001547/0.6513, allocations: 109.8 kB / 389.6 MB, free: 6.719 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.002698/0.6541, allocations: 1.371 MB / 390.9 MB, free: 21.71 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001553/0.6557, allocations: 483.7 kB / 391.4 MB, free: 21.51 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.517e-06/0.6557, allocations: 0 / 391.4 MB, free: 21.51 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000867/0.6566, allocations: 309.8 kB / 391.7 MB, free: 21.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.6577, allocations: 53.03 kB / 391.8 MB, free: 21.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.6608, allocations: 0.5865 MB / 392.3 MB, free: 21.11 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006827/0.6615, allocations: 0.8025 MB / 393.1 MB, free: 20.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003985/0.662, allocations: 118.6 kB / 393.3 MB, free: 20.41 MB / 330.7 MB Notification: Performance of SimCode: time 1.713e-06/0.662, allocations: 0 / 393.3 MB, free: 20.41 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.743/3.405, allocations: 5.895 MB / 399.2 MB, free: 19.82 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