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.054/2.054, allocations: 218.4 MB / 231.5 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.848e-05/2.873e-05, allocations: 0 / 284.3 MB, free: 8.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08715/0.08721, allocations: 50.37 MB / 334.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.371/0.4583, allocations: 80.26 MB / 414.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002289/0.4586, allocations: 76.38 kB / 415 MB, free: 14.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01618/0.4748, allocations: 3.67 MB / 418.7 MB, free: 10.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.874e-06/0.4748, allocations: 0 / 418.7 MB, free: 10.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.095e-05/0.4749, allocations: 8 kB / 418.7 MB, free: 10.85 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.0008093/0.4757, allocations: 0.5031 MB / 419.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.4758, allocations: 8.031 kB / 419.2 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.28e-05/0.4758, allocations: 31.62 kB / 419.2 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005374/0.4764, allocations: 311.1 kB / 419.5 MB, free: 9.961 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.4764, allocations: 12.16 kB / 419.5 MB, free: 9.953 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.324e-05/0.4765, allocations: 15.64 kB / 419.6 MB, free: 9.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007584/0.4773, allocations: 362.8 kB / 419.9 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.4773, allocations: 0 / 419.9 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.4773, allocations: 3.938 kB / 419.9 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.509e-06/0.4774, allocations: 4 kB / 419.9 MB, free: 9.641 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002202/0.4776, allocations: 82.8 kB / 420 MB, free: 9.586 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009536/0.4786, allocations: 0.5219 MB / 420.5 MB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008595/0.4794, allocations: 308.8 kB / 420.8 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002743/0.4797, allocations: 129.5 kB / 420.9 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.21e-05/0.4798, allocations: 11.92 kB / 421 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.4798, allocations: 34.44 kB / 421 MB, free: 8.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.583e-06/0.4799, allocations: 3.938 kB / 421 MB, free: 8.656 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.002728/0.4826, allocations: 1.144 MB / 422.1 MB, free: 7.609 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/0.4828, allocations: 142.6 kB / 422.3 MB, free: 7.457 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004716/0.4833, allocations: 294.5 kB / 422.6 MB, free: 7.223 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.23e-05/0.4833, allocations: 29.58 kB / 422.6 MB, free: 7.191 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.4834, allocations: 198.2 kB / 422.8 MB, free: 7.031 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.972e-05/0.4835, allocations: 46.28 kB / 422.8 MB, free: 6.996 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.616e-05/0.4836, allocations: 6.875 kB / 422.8 MB, free: 6.996 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.4837, allocations: 325.8 kB / 423.2 MB, free: 6.676 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.4839, allocations: 59.19 kB / 423.2 MB, free: 6.637 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.4842, allocations: 276.5 kB / 423.5 MB, free: 6.289 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002402/0.4845, allocations: 111.5 kB / 423.6 MB, free: 6.207 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.016e-06/0.4845, allocations: 4 kB / 423.6 MB, free: 6.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007283/0.4852, allocations: 326.8 kB / 423.9 MB, free: 5.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.4853, allocations: 8 kB / 423.9 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.4853, allocations: 8 kB / 423.9 MB, free: 5.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.958e-05/0.4854, allocations: 12 kB / 423.9 MB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004023/0.4858, allocations: 87.34 kB / 424 MB, free: 5.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.836e-05/0.4858, allocations: 23.88 kB / 424.1 MB, free: 5.797 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003342/0.4862, allocations: 19.25 kB / 424.1 MB, free: 5.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.941e-05/0.4862, allocations: 19.5 kB / 424.1 MB, free: 5.766 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.0001759/0.4864, allocations: 142.2 kB / 424.2 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000642/0.4871, allocations: 275.8 kB / 424.5 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008311/0.4879, allocations: 346.8 kB / 424.8 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.4879, allocations: 7.984 kB / 424.8 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.288e-06/0.488, allocations: 4.062 kB / 424.9 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.488, allocations: 7.953 kB / 424.9 MB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005622/0.4886, allocations: 318 kB / 425.2 MB, free: 4.852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.264e-06/0.4886, allocations: 4 kB / 425.2 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007786/0.4894, allocations: 115.9 kB / 425.3 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.919e-06/0.4894, allocations: 0 / 425.3 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.967e-05/0.4894, allocations: 13.61 kB / 425.3 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.675e-06/0.4895, allocations: 3.938 kB / 425.3 MB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.823e-06/0.4895, allocations: 4 kB / 425.3 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001239/0.4907, allocations: 0.6852 MB / 426 MB, free: 4.152 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.4909, allocations: 120.2 kB / 426.1 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.435e-05/0.491, allocations: 11.25 kB / 426.1 MB, free: 4.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003552/0.4913, allocations: 19.12 kB / 426.1 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.818e-05/0.4914, allocations: 4 kB / 426.1 MB, free: 4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.629e-05/0.4915, allocations: 11.69 kB / 426.2 MB, free: 3.992 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003568/0.4918, allocations: 245.1 kB / 426.4 MB, free: 3.801 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.67e-07/0.4918, allocations: 4 kB / 426.4 MB, free: 3.797 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006292/0.4925, allocations: 65.31 kB / 426.5 MB, free: 3.746 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.0001746/0.4927, allocations: 114.3 kB / 426.6 MB, free: 3.629 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005862/0.4933, allocations: 249.3 kB / 426.8 MB, free: 3.445 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.334e-06/0.4933, allocations: 4.062 kB / 426.8 MB, free: 3.441 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.334e-05/0.4934, allocations: 22.06 kB / 426.8 MB, free: 3.426 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007188/0.4941, allocations: 183.6 kB / 427 MB, free: 3.301 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.4957, allocations: 0.5879 MB / 427.6 MB, free: 2.742 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005234/0.4962, allocations: 0.8068 MB / 428.4 MB, free: 1.91 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.4964, allocations: 34.38 kB / 428.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of SimCode: time 1.983e-06/0.4964, allocations: 0 / 428.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of Templates: time 0.008148/0.5045, allocations: 3.651 MB / 432.1 MB, free: 14.26 MB / 362.7 MB