Running command: translateModel(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|filter.y|inverseBlockConstraints.y1|mixingUnit.c|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadModel(Modelica_Synchronous): time 2.131/2.131, allocations: 218.4 MB / 234.2 MB, free: 5.578 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.831e-05/3.818e-05, allocations: 0 / 287.6 MB, free: 64 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4452/0.4453, allocations: 50.38 MB / 338 MB, free: 15.98 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.004884/0.4503, allocations: 1.82 MB / 339.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002285/0.4526, allocations: 0.5703 MB / 340.4 MB, free: 13.56 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002772/0.453, allocations: 8 kB / 340.4 MB, free: 13.55 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.4531, allocations: 15.8 kB / 340.4 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004592/0.4536, allocations: 59.77 kB / 340.4 MB, free: 13.48 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005225/0.4542, allocations: 51.88 kB / 340.5 MB, free: 13.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000489/0.4547, allocations: 139.4 kB / 340.6 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.4549, allocations: 39.97 kB / 340.7 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000269/0.4552, allocations: 79.67 kB / 340.7 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000362/0.4556, allocations: 115.5 kB / 340.9 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.873e-05/0.4557, allocations: 8 kB / 340.9 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.369e-05/0.4557, allocations: 12 kB / 340.9 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.4559, allocations: 55.73 kB / 340.9 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.956e-05/0.456, allocations: 16 kB / 340.9 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004205/0.4564, allocations: 173.4 kB / 341.1 MB, free: 12.8 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.4565, allocations: 3.938 kB / 341.1 MB, free: 12.8 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.537e-06/0.4565, allocations: 0 / 341.1 MB, free: 12.8 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.434e-05/0.4565, allocations: 0 / 341.1 MB, free: 12.8 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001553/0.4581, allocations: 0.4988 MB / 341.6 MB, free: 12.25 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.148e-05/0.4582, allocations: 11.97 kB / 341.6 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.4583, allocations: 31.62 kB / 341.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008515/0.4592, allocations: 315.2 kB / 342 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.802e-05/0.4593, allocations: 8.281 kB / 342 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.109e-05/0.4594, allocations: 20 kB / 342 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.4609, allocations: 368.7 kB / 342.4 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.4609, allocations: 0 / 342.4 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.869e-05/0.461, allocations: 4 kB / 342.4 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.461, allocations: 4 kB / 342.4 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005445/0.4616, allocations: 95.89 kB / 342.5 MB, free: 11.35 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.4632, allocations: 0.5287 MB / 343 MB, free: 10.77 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/0.465, allocations: 325.8 kB / 343.3 MB, free: 10.42 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.447e-05/0.4651, allocations: 8.047 kB / 343.3 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/0.4652, allocations: 34.56 kB / 343.3 MB, free: 10.37 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 5.36e-06/0.4652, allocations: 0 / 343.3 MB, free: 10.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=34): time 0.005417/0.4707, allocations: 1.205 MB / 344.6 MB, free: 9.074 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000222/0.4709, allocations: 142.8 kB / 344.7 MB, free: 8.91 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008381/0.4718, allocations: 295.7 kB / 345 MB, free: 8.617 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.189e-05/0.4719, allocations: 33.7 kB / 345 MB, free: 8.578 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001892/0.4721, allocations: 195.2 kB / 345.2 MB, free: 8.383 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.4723, allocations: 47.53 kB / 345.2 MB, free: 8.336 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/0.4723, allocations: 4 kB / 345.3 MB, free: 8.332 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.4725, allocations: 326.8 kB / 345.6 MB, free: 8.004 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003785/0.4729, allocations: 64.7 kB / 345.6 MB, free: 7.938 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005918/0.4735, allocations: 278.6 kB / 345.9 MB, free: 7.566 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005358/0.4741, allocations: 111.9 kB / 346 MB, free: 7.457 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.844e-06/0.4741, allocations: 0 / 346 MB, free: 7.457 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001509/0.4757, allocations: 348.7 kB / 346.4 MB, free: 7.109 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.4758, allocations: 9 kB / 346.4 MB, free: 7.102 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.068e-05/0.4758, allocations: 11.98 kB / 346.4 MB, free: 7.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.819e-05/0.4759, allocations: 15.94 kB / 346.4 MB, free: 7.074 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007704/0.4767, allocations: 95.78 kB / 346.5 MB, free: 6.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.435e-05/0.4767, allocations: 11.94 kB / 346.5 MB, free: 6.969 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005468/0.4773, allocations: 23.91 kB / 346.5 MB, free: 6.945 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.934e-05/0.4774, allocations: 19.98 kB / 346.5 MB, free: 6.926 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * 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.0003658/0.4778, allocations: 157.6 kB / 346.7 MB, free: 6.762 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001182/0.479, allocations: 265.2 kB / 347 MB, free: 6.496 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001557/0.4806, allocations: 349.3 kB / 347.3 MB, free: 6.145 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.836e-05/0.4806, allocations: 4 kB / 347.3 MB, free: 6.141 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.541e-05/0.4807, allocations: 3.953 kB / 347.3 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.4807, allocations: 3.984 kB / 347.3 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008882/0.4816, allocations: 313.3 kB / 347.6 MB, free: 5.777 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.4817, allocations: 0 / 347.6 MB, free: 5.777 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/0.4834, allocations: 111.9 kB / 347.7 MB, free: 5.668 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.12e-05/0.4835, allocations: 4 kB / 347.7 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.33e-05/0.4835, allocations: 15.98 kB / 347.7 MB, free: 5.648 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-05/0.4836, allocations: 7.938 kB / 347.7 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4836, allocations: 0 / 347.7 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.4862, allocations: 0.6859 MB / 348.4 MB, free: 4.922 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002634/0.4865, allocations: 116.7 kB / 348.5 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/0.4867, allocations: 15.95 kB / 348.6 MB, free: 4.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006429/0.4874, allocations: 11.98 kB / 348.6 MB, free: 4.762 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.312e-05/0.4875, allocations: 4 kB / 348.6 MB, free: 4.758 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.885e-05/0.4875, allocations: 12 kB / 348.6 MB, free: 4.746 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006694/0.4882, allocations: 247.1 kB / 348.8 MB, free: 4.508 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.032e-06/0.4883, allocations: 7.938 kB / 348.8 MB, free: 4.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001111/0.4894, allocations: 60 kB / 348.9 MB, free: 4.441 MB / 282.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 (39): * Single equations (assignments): 39 * 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.00025/0.4897, allocations: 103.2 kB / 349 MB, free: 4.328 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.4911, allocations: 272.8 kB / 349.3 MB, free: 4.062 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.4912, allocations: 0 / 349.3 MB, free: 4.062 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002049/0.4914, allocations: 27.98 kB / 349.3 MB, free: 4.035 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.4928, allocations: 185.3 kB / 349.5 MB, free: 3.855 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003195/0.4961, allocations: 0.8419 MB / 350.3 MB, free: 2.973 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006737/0.4968, allocations: 0.8073 MB / 351.1 MB, free: 2.141 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.4971, allocations: 27.44 kB / 351.2 MB, free: 2.113 MB / 282.7 MB Notification: Performance of SimCode: time 1.603e-06/0.4971, allocations: 4 kB / 351.2 MB, free: 2.109 MB / 282.7 MB Notification: Performance of Templates: time 0.01432/0.5115, allocations: 3.618 MB / 354.8 MB, free: 14.48 MB / 298.7 MB