Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.203/2.203, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.987e-05, allocations: 0 / 292.2 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 50.41 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4619/0.5708, allocations: 79.17 MB / 421.8 MB, free: 14.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/0.5712, allocations: 66.66 kB / 421.9 MB, free: 14.67 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02322/0.5944, allocations: 3.682 MB / 425.5 MB, free: 11.51 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5945, allocations: 0 / 425.5 MB, free: 11.51 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.292e-05/0.5945, allocations: 6.375 kB / 425.6 MB, free: 11.5 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001294/0.5958, allocations: 0.5068 MB / 426.1 MB, free: 10.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.171e-05/0.5959, allocations: 8.031 kB / 426.1 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.596, allocations: 52.44 kB / 426.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.5962, allocations: 31.62 kB / 426.2 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008286/0.597, allocations: 305.1 kB / 426.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.5971, allocations: 11.59 kB / 426.5 MB, free: 10.56 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.471e-05/0.5972, allocations: 23.25 kB / 426.5 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.5984, allocations: 349.1 kB / 426.8 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.5985, allocations: 3.984 kB / 426.8 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.743e-05/0.5986, allocations: 9.391 kB / 426.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.5986, allocations: 8 kB / 426.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003614/0.599, allocations: 69.38 kB / 426.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.6004, allocations: 0.5301 MB / 427.4 MB, free: 9.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/0.6019, allocations: 304 kB / 427.7 MB, free: 9.422 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004691/0.6024, allocations: 140.7 kB / 427.9 MB, free: 9.316 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.17e-05/0.6025, allocations: 3.938 kB / 427.9 MB, free: 9.312 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/0.6026, allocations: 42.53 kB / 427.9 MB, free: 9.266 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 4.218e-06/0.6026, allocations: 0 / 427.9 MB, free: 9.266 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.00423/0.6068, allocations: 1.153 MB / 429.1 MB, free: 8.211 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000186/0.6071, allocations: 131.7 kB / 429.2 MB, free: 8.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006899/0.6078, allocations: 295.1 kB / 429.5 MB, free: 7.832 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.874e-05/0.6079, allocations: 29.52 kB / 429.5 MB, free: 7.801 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.608, allocations: 151.1 kB / 429.7 MB, free: 7.691 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.782e-05/0.6081, allocations: 47.72 kB / 429.7 MB, free: 7.656 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.6082, allocations: 6.312 kB / 429.7 MB, free: 7.656 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002087/0.6084, allocations: 352.1 kB / 430.1 MB, free: 7.316 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/0.6086, allocations: 55.81 kB / 430.1 MB, free: 7.281 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004604/0.6091, allocations: 276.6 kB / 430.4 MB, free: 6.934 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003711/0.6095, allocations: 114.6 kB / 430.5 MB, free: 6.848 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.6095, allocations: 4 kB / 430.5 MB, free: 6.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001202/0.6108, allocations: 338.9 kB / 430.8 MB, free: 6.559 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.816e-05/0.6108, allocations: 8 kB / 430.8 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.51e-05/0.6109, allocations: 11.98 kB / 430.9 MB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.978e-05/0.6109, allocations: 16.03 kB / 430.9 MB, free: 6.523 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007099/0.6116, allocations: 87.53 kB / 431 MB, free: 6.441 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.225e-05/0.6117, allocations: 11.94 kB / 431 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000555/0.6123, allocations: 26.67 kB / 431 MB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/0.6123, allocations: 23.75 kB / 431 MB, free: 6.391 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0002152/0.6126, allocations: 134.9 kB / 431.2 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/0.6136, allocations: 269.8 kB / 431.4 MB, free: 6.055 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.6151, allocations: 351.8 kB / 431.8 MB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/0.6151, allocations: 4 kB / 431.8 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.6152, allocations: 4 kB / 431.8 MB, free: 5.801 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.6152, allocations: 3.984 kB / 431.8 MB, free: 5.797 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008634/0.6161, allocations: 317.4 kB / 432.1 MB, free: 5.488 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.6161, allocations: 3.938 kB / 432.1 MB, free: 5.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/0.6176, allocations: 115.8 kB / 432.2 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.932e-05/0.6176, allocations: 11.94 kB / 432.2 MB, free: 5.359 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.232e-05/0.6177, allocations: 6.625 kB / 432.2 MB, free: 5.359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.535e-06/0.6177, allocations: 7.938 kB / 432.2 MB, free: 5.352 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.6177, allocations: 3.984 kB / 432.2 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.6197, allocations: 0.686 MB / 432.9 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002038/0.62, allocations: 111.7 kB / 433 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.6201, allocations: 18.67 kB / 433 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006031/0.6207, allocations: 10.69 kB / 433.1 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.005e-05/0.6208, allocations: 7.984 kB / 433.1 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.037e-05/0.6208, allocations: 15.75 kB / 433.1 MB, free: 4.621 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005432/0.6214, allocations: 236.2 kB / 433.3 MB, free: 4.438 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6214, allocations: 0 / 433.3 MB, free: 4.438 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001064/0.6225, allocations: 62.31 kB / 433.4 MB, free: 4.387 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 41 * 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 Backend phase and start with SimCode phase: time 0.002382/0.6249, allocations: 1.376 MB / 434.7 MB, free: 3.133 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009183/0.6259, allocations: 245.1 kB / 435 MB, free: 2.949 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.6259, allocations: 0 / 435 MB, free: 2.949 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.626, allocations: 23.75 kB / 435 MB, free: 2.934 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.6272, allocations: 188.2 kB / 435.2 MB, free: 2.805 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.6296, allocations: 0.6428 MB / 435.8 MB, free: 2.199 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004787/0.6302, allocations: 0.8072 MB / 436.6 MB, free: 1.367 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002213/0.6304, allocations: 35.27 kB / 436.7 MB, free: 1.332 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002571/0.6307, allocations: 107 kB / 436.8 MB, free: 1.297 MB / 346.7 MB Notification: Performance of SimCode: time 1.653e-06/0.6307, allocations: 0 / 436.8 MB, free: 1.297 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03967/0.6704, allocations: 6.172 MB / 442.9 MB, free: 11.21 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000319/0.6708, allocations: 158.4 kB / 443.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.728/3.399, allocations: 4 kB / 443.1 MB, free: 10.98 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat does not exist to compare? outputFormat=mat