Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.974/1.974, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.104e-05/3.115e-05, allocations: 4 kB / 292.7 MB, free: 8.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1096, allocations: 50.42 MB / 343.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4612/0.5709, allocations: 78.22 MB / 421.4 MB, free: 15.99 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.5712, allocations: 66.42 kB / 421.4 MB, free: 15.96 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01265/0.5838, allocations: 2.792 MB / 424.2 MB, free: 13.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5839, allocations: 3.938 kB / 424.2 MB, free: 13.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.5839, allocations: 8 kB / 424.2 MB, free: 13.54 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.000973/0.5849, allocations: 483.7 kB / 424.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.585, allocations: 8.031 kB / 424.7 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.453e-05/0.585, allocations: 54.12 kB / 424.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.5851, allocations: 19.72 kB / 424.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003707/0.5855, allocations: 237.8 kB / 425 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/0.5855, allocations: 11.94 kB / 425 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.532e-05/0.5856, allocations: 19.69 kB / 425.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004712/0.5861, allocations: 191.7 kB / 425.2 MB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.5861, allocations: 0 / 425.2 MB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.5861, allocations: 7.562 kB / 425.3 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.785e-05/0.5862, allocations: 7.953 kB / 425.3 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003577/0.5865, allocations: 118.4 kB / 425.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.5882, allocations: 0.8051 MB / 426.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009147/0.5891, allocations: 187 kB / 426.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.5893, allocations: 51.22 kB / 426.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.718e-05/0.5894, allocations: 4.172 kB / 426.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003072/0.5897, allocations: 141.1 kB / 426.6 MB, free: 11.29 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.106e-06/0.5897, allocations: 0 / 426.6 MB, free: 11.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005302/0.5903, allocations: 169.6 kB / 426.7 MB, free: 11.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.781e-05/0.5903, allocations: 77.11 kB / 426.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.5906, allocations: 194.8 kB / 427 MB, free: 10.87 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.5907, allocations: 37.2 kB / 427 MB, free: 10.83 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.5908, allocations: 139.6 kB / 427.2 MB, free: 10.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.869e-05/0.5909, allocations: 27.64 kB / 427.2 MB, free: 10.69 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.55e-05/0.5909, allocations: 3.688 kB / 427.2 MB, free: 10.69 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.5911, allocations: 333.3 kB / 427.5 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.5913, allocations: 60.55 kB / 427.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.5915, allocations: 120.4 kB / 427.7 MB, free: 10.2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002034/0.5917, allocations: 73.22 kB / 427.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.5918, allocations: 0 / 427.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005329/0.5923, allocations: 217.5 kB / 428 MB, free: 9.961 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.5923, allocations: 20.19 kB / 428 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.5924, allocations: 0 / 428 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.648e-05/0.5924, allocations: 4 kB / 428 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003244/0.5927, allocations: 39.92 kB / 428 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.5928, allocations: 0 / 428 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000302/0.5931, allocations: 38.88 kB / 428.1 MB, free: 9.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.5931, allocations: 11.06 kB / 428.1 MB, free: 9.855 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.0001322/0.5933, allocations: 130 kB / 428.2 MB, free: 9.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.288e-05/0.5933, allocations: 23.8 kB / 428.2 MB, free: 9.707 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003487/0.5937, allocations: 128.3 kB / 428.4 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.5937, allocations: 4 kB / 428.4 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.5937, allocations: 0 / 428.4 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.5937, allocations: 3.984 kB / 428.4 MB, free: 9.598 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000883/0.5946, allocations: 478.4 kB / 428.8 MB, free: 9.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.5947, allocations: 3.953 kB / 428.8 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/0.5949, allocations: 19.98 kB / 428.9 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-06/0.5949, allocations: 0 / 428.9 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.5949, allocations: 11.25 kB / 428.9 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.5949, allocations: 0 / 428.9 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.595, allocations: 192 / 428.9 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000495/0.5955, allocations: 284 kB / 429.2 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.733e-05/0.5956, allocations: 96.77 kB / 429.2 MB, free: 8.711 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.457e-05/0.5956, allocations: 7.312 kB / 429.3 MB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/0.5959, allocations: 31.84 kB / 429.3 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.597e-05/0.596, allocations: 26.7 kB / 429.3 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.5961, allocations: 4 kB / 429.3 MB, free: 8.652 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001732/0.5963, allocations: 143.8 kB / 429.5 MB, free: 8.531 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5963, allocations: 0 / 429.5 MB, free: 8.531 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000416/0.5967, allocations: 43.06 kB / 429.5 MB, free: 8.496 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.0009184/0.5976, allocations: 0.9015 MB / 430.4 MB, free: 7.594 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004486/0.5981, allocations: 146.1 kB / 430.5 MB, free: 7.484 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5981, allocations: 0 / 430.5 MB, free: 7.484 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000209/0.5983, allocations: 63.92 kB / 430.6 MB, free: 7.438 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.5987, allocations: 27.17 kB / 430.6 MB, free: 7.418 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.5998, allocations: 303.1 kB / 430.9 MB, free: 7.121 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.6002, allocations: 0.7403 MB / 431.7 MB, free: 6.352 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001786/0.6004, allocations: 33.52 kB / 431.7 MB, free: 6.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.6005, allocations: 62.98 kB / 431.8 MB, free: 6.297 MB / 346.7 MB Notification: Performance of SimCode: time 8.82e-07/0.6006, allocations: 0 / 431.8 MB, free: 6.297 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02653/0.6271, allocations: 3.569 MB / 435.3 MB, free: 2.816 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002587/0.6274, allocations: 147.2 kB / 435.5 MB, free: 2.594 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.572/3.199, allocations: 0 / 435.5 MB, free: 2.594 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat