Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.461/2.461, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.317e-05/3.336e-05, allocations: 2.75 kB / 249.8 MB, free: 5.289 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1243, allocations: 44.5 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5105/0.6349, allocations: 72.24 MB / 366.5 MB, free: 7.145 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.6352, allocations: 69.05 kB / 366.6 MB, free: 7.145 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01462/0.6498, allocations: 2.702 MB / 369.3 MB, free: 22.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6499, allocations: 0 / 369.3 MB, free: 22.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.844e-05/0.65, allocations: 7.688 kB / 369.3 MB, free: 22.66 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001037/0.651, allocations: 479.3 kB / 369.8 MB, free: 22.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.6511, allocations: 7.594 kB / 369.8 MB, free: 22.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.697e-05/0.6512, allocations: 23.12 kB / 369.8 MB, free: 22.26 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.6515, allocations: 233.6 kB / 370 MB, free: 22.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.825e-05/0.6516, allocations: 10.58 kB / 370 MB, free: 22.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.096e-05/0.6516, allocations: 7.75 kB / 370 MB, free: 22.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003665/0.652, allocations: 102.3 kB / 370.1 MB, free: 22.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004121/0.6524, allocations: 178.3 kB / 370.3 MB, free: 21.97 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.6525, allocations: 0 / 370.3 MB, free: 21.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.6525, allocations: 3.875 kB / 370.3 MB, free: 21.97 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.987e-05/0.6526, allocations: 3.75 kB / 370.3 MB, free: 21.97 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.6543, allocations: 0.7679 MB / 371.1 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000996/0.6554, allocations: 181.1 kB / 371.3 MB, free: 21.42 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.6555, allocations: 52.45 kB / 371.3 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.069e-05/0.6556, allocations: 2.844 kB / 371.3 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003175/0.6559, allocations: 132.7 kB / 371.4 MB, free: 21.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 3.597e-06/0.656, allocations: 1.312 kB / 371.4 MB, free: 21.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005853/0.6566, allocations: 153.5 kB / 371.6 MB, free: 21.29 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.6566, allocations: 83.14 kB / 371.7 MB, free: 21.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002828/0.6569, allocations: 187.2 kB / 371.9 MB, free: 21.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.657, allocations: 27.14 kB / 371.9 MB, free: 21.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.6571, allocations: 147.8 kB / 372 MB, free: 20.95 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.064e-05/0.6571, allocations: 25.94 kB / 372.1 MB, free: 20.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.766e-05/0.6572, allocations: 1.344 kB / 372.1 MB, free: 20.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.6573, allocations: 329.6 kB / 372.4 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.6575, allocations: 53.64 kB / 372.4 MB, free: 20.62 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002027/0.6577, allocations: 121 kB / 372.6 MB, free: 20.53 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.658, allocations: 65.22 kB / 372.6 MB, free: 20.53 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.658, allocations: 0 / 372.6 MB, free: 20.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005536/0.6585, allocations: 208.7 kB / 372.8 MB, free: 20.46 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.6586, allocations: 7.719 kB / 372.8 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.6586, allocations: 0 / 372.8 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.6586, allocations: 3.844 kB / 372.8 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000392/0.659, allocations: 44.36 kB / 372.9 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.6591, allocations: 3.875 kB / 372.9 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003458/0.6594, allocations: 37.89 kB / 372.9 MB, free: 20.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-05/0.6595, allocations: 7.75 kB / 372.9 MB, free: 20.45 MB / 314.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.pulsStart,booleanPulse1.pulsStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,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.0001653/0.6596, allocations: 133 kB / 373.1 MB, free: 20.33 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000451/0.6601, allocations: 158.4 kB / 373.2 MB, free: 20.28 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.263e-05/0.6602, allocations: 18.34 kB / 373.2 MB, free: 20.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00039/0.6606, allocations: 121 kB / 373.3 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.6606, allocations: 3.781 kB / 373.3 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.6606, allocations: 288 / 373.3 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.6606, allocations: 0 / 373.3 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000976/0.6616, allocations: 442.4 kB / 373.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.6616, allocations: 3.969 kB / 373.8 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002513/0.6619, allocations: 24.58 kB / 373.8 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.6619, allocations: 3.875 kB / 373.8 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.662, allocations: 2.438 kB / 373.8 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.662, allocations: 3.875 kB / 373.8 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.662, allocations: 0 / 373.8 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000547/0.6626, allocations: 273.5 kB / 374.1 MB, free: 19.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.636e-05/0.6627, allocations: 93 kB / 374.2 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.912e-05/0.6627, allocations: 5.344 kB / 374.2 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003593/0.6631, allocations: 20.09 kB / 374.2 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.6633, allocations: 27.91 kB / 374.2 MB, free: 19.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.469e-05/0.6633, allocations: 9.25 kB / 374.2 MB, free: 19.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002063/0.6635, allocations: 130.8 kB / 374.4 MB, free: 19.58 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6636, allocations: 0 / 374.4 MB, free: 19.58 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000635/0.6642, allocations: 53.28 kB / 374.4 MB, free: 19.57 MB / 314.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.pulsStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulsStart,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.001086/0.6653, allocations: 0.8764 MB / 375.3 MB, free: 18.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004508/0.6658, allocations: 140.3 kB / 375.4 MB, free: 18.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.6658, allocations: 3.938 kB / 375.4 MB, free: 18.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002024/0.666, allocations: 61.47 kB / 375.5 MB, free: 18.79 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004929/0.6665, allocations: 24.81 kB / 375.5 MB, free: 18.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.6678, allocations: 294.5 kB / 375.8 MB, free: 18.62 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.6682, allocations: 0.7406 MB / 376.5 MB, free: 17.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002251/0.6685, allocations: 29.98 kB / 376.6 MB, free: 17.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.6687, allocations: 66.17 kB / 376.6 MB, free: 17.9 MB / 314.7 MB Notification: Performance of SimCode: time 1.332e-06/0.6687, allocations: 288 / 376.6 MB, free: 17.9 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1067/0.7754, allocations: 3.14 MB / 379.8 MB, free: 17.7 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002592/0.7757, allocations: 133.9 kB / 379.9 MB, free: 17.51 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.04/3.816, allocations: 0 / 379.9 MB, free: 17.51 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat