Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_1_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.725/1.725, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.162e-05/2.172e-05, allocations: 4 kB / 219.6 MB, free: 6.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.275, allocations: 38.77 MB / 258.3 MB, free: 12.17 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.167/0.442, allocations: 66.94 MB / 325.3 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.4423, allocations: 63.97 kB / 325.3 MB, free: 10.78 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01232/0.4546, allocations: 2.696 MB / 328 MB, free: 8.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4547, allocations: 3.938 kB / 328 MB, free: 8.066 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.174e-05/0.4547, allocations: 4 kB / 328 MB, free: 8.062 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009907/0.4557, allocations: 480 kB / 328.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.4558, allocations: 12.02 kB / 328.5 MB, free: 7.535 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.22e-05/0.4558, allocations: 23.72 kB / 328.5 MB, free: 7.512 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003756/0.4562, allocations: 239.5 kB / 328.8 MB, free: 7.234 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.4563, allocations: 4 kB / 328.8 MB, free: 7.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.193e-05/0.4563, allocations: 12 kB / 328.8 MB, free: 7.219 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003394/0.4567, allocations: 103.9 kB / 328.9 MB, free: 7.117 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004057/0.4571, allocations: 177.3 kB / 329.1 MB, free: 6.926 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.4571, allocations: 4 kB / 329.1 MB, free: 6.922 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.4572, allocations: 4 kB / 329.1 MB, free: 6.918 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.872e-05/0.4572, allocations: 4 kB / 329.1 MB, free: 6.914 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.4588, allocations: 0.755 MB / 329.8 MB, free: 6.109 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008468/0.4597, allocations: 190.7 kB / 330 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.4598, allocations: 44.84 kB / 330.1 MB, free: 5.867 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.757e-05/0.4599, allocations: 3.984 kB / 330.1 MB, free: 5.863 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003153/0.4602, allocations: 144.8 kB / 330.2 MB, free: 5.703 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 3.026e-06/0.4602, allocations: 0 / 330.2 MB, free: 5.703 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005151/0.4607, allocations: 153.4 kB / 330.4 MB, free: 5.547 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.4608, allocations: 81.11 kB / 330.4 MB, free: 5.449 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000261/0.4611, allocations: 179 kB / 330.6 MB, free: 5.262 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.4611, allocations: 25.7 kB / 330.6 MB, free: 5.23 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.4613, allocations: 144.4 kB / 330.8 MB, free: 5.086 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.28e-05/0.4613, allocations: 31.61 kB / 330.8 MB, free: 5.055 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.45e-05/0.4614, allocations: 0 / 330.8 MB, free: 5.055 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.4615, allocations: 330.8 kB / 331.1 MB, free: 4.723 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.4617, allocations: 47.98 kB / 331.2 MB, free: 4.676 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.4619, allocations: 124.4 kB / 331.3 MB, free: 4.523 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.4621, allocations: 63.95 kB / 331.4 MB, free: 4.461 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.4622, allocations: 4 kB / 331.4 MB, free: 4.457 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005349/0.4627, allocations: 213.3 kB / 331.6 MB, free: 4.242 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.4627, allocations: 8 kB / 331.6 MB, free: 4.234 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4628, allocations: 96 / 331.6 MB, free: 4.234 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.4628, allocations: 7.938 kB / 331.6 MB, free: 4.227 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003206/0.4631, allocations: 39.92 kB / 331.6 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.4631, allocations: 7.984 kB / 331.6 MB, free: 4.18 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002781/0.4634, allocations: 27.83 kB / 331.7 MB, free: 4.152 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.4635, allocations: 16.03 kB / 331.7 MB, free: 4.137 MB / 282.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.0001459/0.4636, allocations: 127.1 kB / 331.8 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000411/0.4641, allocations: 153.3 kB / 332 MB, free: 3.848 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.969e-05/0.4641, allocations: 15.81 kB / 332 MB, free: 3.832 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003435/0.4645, allocations: 127.4 kB / 332.1 MB, free: 3.707 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.4645, allocations: 4 kB / 332.1 MB, free: 3.703 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.4645, allocations: 0 / 332.1 MB, free: 3.703 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.4645, allocations: 4 kB / 332.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008908/0.4654, allocations: 442.8 kB / 332.5 MB, free: 3.223 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.4655, allocations: 0 / 332.5 MB, free: 3.223 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00021/0.4657, allocations: 19.98 kB / 332.6 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.4657, allocations: 0 / 332.6 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.4657, allocations: 4.172 kB / 332.6 MB, free: 3.199 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.316e-06/0.4657, allocations: 15.94 kB / 332.6 MB, free: 3.184 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.4658, allocations: 0 / 332.6 MB, free: 3.184 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004739/0.4662, allocations: 263.1 kB / 332.8 MB, free: 2.902 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.4664, allocations: 104.8 kB / 332.9 MB, free: 2.781 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.903e-05/0.4664, allocations: 7.984 kB / 332.9 MB, free: 2.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003156/0.4668, allocations: 20.27 kB / 333 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.4669, allocations: 23.97 kB / 333 MB, free: 2.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-05/0.4669, allocations: 7.984 kB / 333 MB, free: 2.723 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001511/0.4671, allocations: 137.4 kB / 333.1 MB, free: 2.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4671, allocations: 0 / 333.1 MB, free: 2.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004696/0.4676, allocations: 43.84 kB / 333.2 MB, free: 2.547 MB / 282.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.0008905/0.4685, allocations: 0.8866 MB / 334.1 MB, free: 1.625 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004101/0.4689, allocations: 135.8 kB / 334.2 MB, free: 1.492 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4689, allocations: 0.5 kB / 334.2 MB, free: 1.492 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.4691, allocations: 67.92 kB / 334.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003833/0.4695, allocations: 23.58 kB / 334.3 MB, free: 1.406 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.4706, allocations: 303.7 kB / 334.6 MB, free: 1.066 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.471, allocations: 0.7399 MB / 335.3 MB, free: 304 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000202/0.4713, allocations: 33.83 kB / 335.4 MB, free: 272 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.4714, allocations: 63.41 kB / 335.4 MB, free: 208 kB / 282.7 MB Notification: Performance of SimCode: time 1.172e-06/0.4715, allocations: 4 kB / 335.4 MB, free: 204 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04162/0.5131, allocations: 3.137 MB / 338.6 MB, free: 13.08 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003191/0.5135, allocations: 129.4 kB / 338.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.36/2.874, allocations: 0 / 338.7 MB, free: 12.88 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat