Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.046/2.046, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.312e-05/4.318e-05, allocations: 8 kB / 292.2 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1072, allocations: 50.41 MB / 342.6 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4273/0.5345, allocations: 78.22 MB / 420.9 MB, free: 15.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.5348, allocations: 70.64 kB / 420.9 MB, free: 15.95 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01308/0.5479, allocations: 2.799 MB / 423.7 MB, free: 13.53 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.548, allocations: 0 / 423.7 MB, free: 13.53 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.443e-05/0.548, allocations: 8 kB / 423.7 MB, free: 13.52 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009976/0.549, allocations: 474.5 kB / 424.2 MB, free: 13.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.5491, allocations: 12.03 kB / 424.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.805e-05/0.5492, allocations: 56.36 kB / 424.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.614e-05/0.5493, allocations: 23.72 kB / 424.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003552/0.5496, allocations: 232.9 kB / 424.5 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.5497, allocations: 10.69 kB / 424.5 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.207e-05/0.5497, allocations: 14.62 kB / 424.5 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004519/0.5502, allocations: 194.9 kB / 424.7 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.5502, allocations: 0 / 424.7 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.5503, allocations: 10.97 kB / 424.7 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.99e-05/0.5503, allocations: 11.95 kB / 424.7 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003371/0.5507, allocations: 108.5 kB / 424.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001635/0.5523, allocations: 0.8042 MB / 425.7 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008975/0.5532, allocations: 186.8 kB / 425.8 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.5534, allocations: 55.56 kB / 425.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.528e-05/0.5535, allocations: 19.2 kB / 425.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003034/0.5538, allocations: 129 kB / 426 MB, free: 11.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.615e-06/0.5538, allocations: 0 / 426 MB, free: 11.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005136/0.5543, allocations: 157.8 kB / 426.2 MB, free: 11.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/0.5544, allocations: 88.48 kB / 426.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002808/0.5547, allocations: 192.8 kB / 426.5 MB, free: 10.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.5547, allocations: 33.64 kB / 426.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.5549, allocations: 140.3 kB / 426.6 MB, free: 10.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.807e-05/0.5549, allocations: 26.83 kB / 426.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.657e-05/0.555, allocations: 7.312 kB / 426.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.5551, allocations: 331.1 kB / 427 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.5553, allocations: 52.42 kB / 427 MB, free: 10.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.5555, allocations: 128.8 kB / 427.2 MB, free: 10.19 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/0.5557, allocations: 73.45 kB / 427.2 MB, free: 10.13 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.5558, allocations: 4 kB / 427.2 MB, free: 10.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005835/0.5564, allocations: 217.5 kB / 427.5 MB, free: 9.949 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.5564, allocations: 7.953 kB / 427.5 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.5564, allocations: 4 kB / 427.5 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.5564, allocations: 4 kB / 427.5 MB, free: 9.934 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003481/0.5568, allocations: 44.16 kB / 427.5 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.5568, allocations: 7.938 kB / 427.5 MB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003155/0.5572, allocations: 39 kB / 427.6 MB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.898e-05/0.5572, allocations: 10.69 kB / 427.6 MB, free: 9.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001388/0.5574, allocations: 129.8 kB / 427.7 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.773e-05/0.5574, allocations: 19.81 kB / 427.7 MB, free: 9.695 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003671/0.5578, allocations: 131.8 kB / 427.8 MB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.5578, allocations: 0 / 427.8 MB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.5578, allocations: 0 / 427.8 MB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.5579, allocations: 4 kB / 427.9 MB, free: 9.586 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008962/0.5588, allocations: 479.2 kB / 428.3 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.5588, allocations: 11.95 kB / 428.3 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002087/0.559, allocations: 19.92 kB / 428.4 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.088e-05/0.559, allocations: 4 kB / 428.4 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.5591, allocations: 2.5 kB / 428.4 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.5591, allocations: 4.125 kB / 428.4 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.5591, allocations: 4 kB / 428.4 MB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004812/0.5596, allocations: 281.9 kB / 428.6 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.513e-05/0.5597, allocations: 96.77 kB / 428.7 MB, free: 8.691 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.378e-05/0.5597, allocations: 3.25 kB / 428.7 MB, free: 8.691 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003237/0.5601, allocations: 26.97 kB / 428.8 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.5602, allocations: 18.97 kB / 428.8 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.703e-05/0.5602, allocations: 4 kB / 428.8 MB, free: 8.648 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001832/0.5604, allocations: 156.8 kB / 428.9 MB, free: 8.516 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.5604, allocations: 0 / 428.9 MB, free: 8.516 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000449/0.5609, allocations: 38.5 kB / 429 MB, free: 8.484 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0009227/0.5618, allocations: 0.9061 MB / 429.9 MB, free: 7.578 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004477/0.5623, allocations: 142.1 kB / 430 MB, free: 7.473 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.5623, allocations: 0 / 430 MB, free: 7.473 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002101/0.5625, allocations: 68.55 kB / 430.1 MB, free: 7.422 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.563, allocations: 22.23 kB / 430.1 MB, free: 7.406 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.5645, allocations: 301.4 kB / 430.4 MB, free: 7.113 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.565, allocations: 0.7365 MB / 431.1 MB, free: 6.348 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002062/0.5652, allocations: 37.52 kB / 431.2 MB, free: 6.312 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001565/0.5654, allocations: 64.61 kB / 431.2 MB, free: 6.289 MB / 346.7 MB Notification: Performance of SimCode: time 1.313e-06/0.5654, allocations: 0 / 431.2 MB, free: 6.289 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02335/0.5887, allocations: 3.576 MB / 434.8 MB, free: 2.801 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003972/0.5892, allocations: 137 kB / 435 MB, free: 2.582 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.561/3.15, allocations: 3.938 kB / 435 MB, free: 2.578 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat