Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.274/2.274, allocations: 218.4 MB / 231.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.303e-05/3.316e-05, allocations: 4 kB / 284.4 MB, free: 8.109 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1065, allocations: 50.37 MB / 334.8 MB, free: 5.641 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4632/0.5697, allocations: 80.19 MB / 415 MB, free: 14.15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.5701, allocations: 71.53 kB / 415.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01787/0.588, allocations: 3.679 MB / 418.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.588, allocations: 4 kB / 418.7 MB, free: 10.95 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.646e-05/0.5881, allocations: 8 kB / 418.7 MB, free: 10.95 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.0009805/0.589, allocations: 0.502 MB / 419.2 MB, free: 10.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.5891, allocations: 12.03 kB / 419.3 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.208e-05/0.5892, allocations: 52.67 kB / 419.3 MB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.196e-05/0.5893, allocations: 31.62 kB / 419.3 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005686/0.5899, allocations: 303.7 kB / 419.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.351e-05/0.5899, allocations: 15.73 kB / 419.7 MB, free: 9.996 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/0.59, allocations: 15.28 kB / 419.7 MB, free: 9.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008914/0.5909, allocations: 360.3 kB / 420 MB, free: 9.691 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.5909, allocations: 0 / 420 MB, free: 9.691 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.5909, allocations: 7.188 kB / 420 MB, free: 9.688 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.591, allocations: 4 kB / 420 MB, free: 9.684 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002527/0.5912, allocations: 69.12 kB / 420.1 MB, free: 9.641 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.5923, allocations: 0.5354 MB / 420.6 MB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.594, allocations: 312.9 kB / 420.9 MB, free: 8.844 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005034/0.5945, allocations: 132.8 kB / 421.1 MB, free: 8.746 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.37e-05/0.5946, allocations: 7.984 kB / 421.1 MB, free: 8.738 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.641e-05/0.5947, allocations: 42.25 kB / 421.1 MB, free: 8.691 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 8.526e-06/0.5947, allocations: 0 / 421.1 MB, free: 8.691 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.005267/0.6, allocations: 1.133 MB / 422.3 MB, free: 7.652 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002407/0.6003, allocations: 137.9 kB / 422.4 MB, free: 7.504 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009214/0.6012, allocations: 298.5 kB / 422.7 MB, free: 7.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.172e-05/0.6013, allocations: 29.02 kB / 422.7 MB, free: 7.238 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.6016, allocations: 147.5 kB / 422.9 MB, free: 7.137 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.6017, allocations: 49.95 kB / 422.9 MB, free: 7.098 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.6017, allocations: 7.938 kB / 422.9 MB, free: 7.094 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.6019, allocations: 348 kB / 423.2 MB, free: 6.762 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.6022, allocations: 61.11 kB / 423.3 MB, free: 6.719 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000468/0.6027, allocations: 278.1 kB / 423.6 MB, free: 6.371 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004865/0.6032, allocations: 112.3 kB / 423.7 MB, free: 6.289 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-05/0.6032, allocations: 4 kB / 423.7 MB, free: 6.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001409/0.6046, allocations: 339.6 kB / 424 MB, free: 5.996 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.67e-05/0.6047, allocations: 8 kB / 424 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.338e-05/0.6047, allocations: 8 kB / 424 MB, free: 5.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.117e-05/0.6048, allocations: 12 kB / 424.1 MB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007506/0.6056, allocations: 91.08 kB / 424.1 MB, free: 5.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.811e-05/0.6056, allocations: 20.39 kB / 424.2 MB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004678/0.6061, allocations: 26.25 kB / 424.2 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.106e-05/0.6062, allocations: 23.86 kB / 424.2 MB, free: 5.824 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.0001618/0.6063, allocations: 139.3 kB / 424.3 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006952/0.6071, allocations: 269.8 kB / 424.6 MB, free: 5.484 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009467/0.608, allocations: 346.4 kB / 424.9 MB, free: 5.246 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.809e-06/0.608, allocations: 8.656 kB / 425 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.6081, allocations: 0 / 425 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.6081, allocations: 11.94 kB / 425 MB, free: 5.227 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005415/0.6086, allocations: 310.3 kB / 425.3 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.6087, allocations: 4.062 kB / 425.3 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.6098, allocations: 123.6 kB / 425.4 MB, free: 4.801 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.238e-06/0.6098, allocations: 3.938 kB / 425.4 MB, free: 4.797 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/0.6098, allocations: 10.62 kB / 425.4 MB, free: 4.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.947e-06/0.6099, allocations: 4 kB / 425.4 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.6099, allocations: 3.938 kB / 425.4 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.6112, allocations: 0.6808 MB / 426.1 MB, free: 4.223 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.6114, allocations: 116.1 kB / 426.2 MB, free: 4.094 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.193e-05/0.6115, allocations: 15.42 kB / 426.2 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004074/0.6119, allocations: 22.83 kB / 426.2 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.709e-05/0.6119, allocations: 4.062 kB / 426.3 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.762e-05/0.612, allocations: 15.17 kB / 426.3 MB, free: 4.055 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003942/0.6124, allocations: 248.5 kB / 426.5 MB, free: 3.863 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6124, allocations: 0 / 426.5 MB, free: 3.863 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006466/0.6131, allocations: 63 kB / 426.6 MB, free: 3.812 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.00177/0.6148, allocations: 1.384 MB / 428 MB, free: 2.547 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006934/0.6156, allocations: 244.8 kB / 428.2 MB, free: 2.363 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.6156, allocations: 384 / 428.2 MB, free: 2.363 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.337e-05/0.6157, allocations: 23.75 kB / 428.2 MB, free: 2.348 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008388/0.6165, allocations: 180.8 kB / 428.4 MB, free: 2.227 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.6186, allocations: 0.642 MB / 429 MB, free: 1.617 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.6191, allocations: 0.8107 MB / 429.8 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.6193, allocations: 35.28 kB / 429.9 MB, free: 0.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002425/0.6195, allocations: 116.4 kB / 430 MB, free: 0.707 MB / 346.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6196, allocations: 0 / 430 MB, free: 0.707 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02966/0.6492, allocations: 6.186 MB / 436.2 MB, free: 10.58 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003131/0.6496, allocations: 170.4 kB / 436.3 MB, free: 10.35 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.79/3.439, allocations: 7.875 kB / 436.4 MB, free: 10.34 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat does not exist to compare? outputFormat=mat