Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.022/2.022, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.532e-05/4.544e-05, allocations: 8 kB / 284.3 MB, free: 8.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0958/0.09587, allocations: 50.36 MB / 334.7 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3587/0.4547, allocations: 82.56 MB / 417.2 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.455, allocations: 81.7 kB / 417.3 MB, free: 11.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03669/0.4917, allocations: 8.609 MB / 425.9 MB, free: 4.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.31e-06/0.4917, allocations: 0 / 425.9 MB, free: 4.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.592e-05/0.4918, allocations: 4 kB / 425.9 MB, free: 4.516 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008036/0.4926, allocations: 0.5277 MB / 426.5 MB, free: 3.957 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.4927, allocations: 12.03 kB / 426.5 MB, free: 3.945 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.472e-05/0.4927, allocations: 27.62 kB / 426.5 MB, free: 3.918 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000591/0.4934, allocations: 314.2 kB / 426.8 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.4934, allocations: 13.27 kB / 426.8 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.605e-05/0.4935, allocations: 11.06 kB / 426.8 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006569/0.4941, allocations: 317 kB / 427.1 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.4942, allocations: 0 / 427.1 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.4942, allocations: 7.312 kB / 427.1 MB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.224e-06/0.4942, allocations: 4 kB / 427.1 MB, free: 3.297 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.4944, allocations: 63.11 kB / 427.2 MB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007325/0.4951, allocations: 444.8 kB / 427.6 MB, free: 2.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003795/0.4955, allocations: 185.4 kB / 427.8 MB, free: 2.652 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.4957, allocations: 89.75 kB / 427.9 MB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.433e-05/0.4958, allocations: 11.94 kB / 427.9 MB, free: 2.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.496, allocations: 69.83 kB / 428 MB, free: 2.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 3.237e-06/0.496, allocations: 3.938 kB / 428 MB, free: 2.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.000507/0.4965, allocations: 197.1 kB / 428.2 MB, free: 2.336 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/0.4967, allocations: 173.8 kB / 428.4 MB, free: 2.133 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004639/0.4972, allocations: 309.4 kB / 428.7 MB, free: 1.883 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.4972, allocations: 36.83 kB / 428.7 MB, free: 1.844 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.4973, allocations: 179.6 kB / 428.9 MB, free: 1.691 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.854e-05/0.4974, allocations: 31.25 kB / 428.9 MB, free: 1.668 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.368e-05/0.4974, allocations: 7.688 kB / 428.9 MB, free: 1.664 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.4976, allocations: 317.2 kB / 429.2 MB, free: 1.348 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.4977, allocations: 43.83 kB / 429.3 MB, free: 1.316 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002387/0.498, allocations: 187.3 kB / 429.4 MB, free: 1.086 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001542/0.4981, allocations: 69.59 kB / 429.5 MB, free: 1.035 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.051e-06/0.4981, allocations: 0 / 429.5 MB, free: 1.035 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004415/0.4986, allocations: 199.9 kB / 429.7 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.4986, allocations: 8 kB / 429.7 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4987, allocations: 4 kB / 429.7 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.4987, allocations: 4 kB / 429.7 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002248/0.4989, allocations: 47.84 kB / 429.8 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.4989, allocations: 4 kB / 429.8 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001867/0.4991, allocations: 22.66 kB / 429.8 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.787e-05/0.4992, allocations: 12.34 kB / 429.8 MB, free: 0.7734 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001517/0.4994, allocations: 148.6 kB / 430 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002851/0.4996, allocations: 133.7 kB / 430.1 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003202/0.5, allocations: 135.9 kB / 430.2 MB, free: 416 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.5, allocations: 7.984 kB / 430.2 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.506e-06/0.5, allocations: 128 / 430.2 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.662e-06/0.5, allocations: 0 / 430.2 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003236/0.5004, allocations: 271.8 kB / 430.5 MB, free: 120 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.384e-06/0.5004, allocations: 4.188 kB / 430.5 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.5006, allocations: 31.55 kB / 430.5 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.249e-06/0.5006, allocations: 11.88 kB / 430.5 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.5007, allocations: 3.5 kB / 430.5 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.5007, allocations: 4 kB / 430.5 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.87e-06/0.5007, allocations: 3.984 kB / 430.5 MB, free: 68 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004979/0.5012, allocations: 267.3 kB / 430.8 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.5014, allocations: 131.2 kB / 430.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.376e-05/0.5015, allocations: 7.375 kB / 430.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.5016, allocations: 11.73 kB / 431 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.5017, allocations: 4 kB / 431 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.5017, allocations: 15.61 kB / 431 MB, free: 15.65 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003449/0.5021, allocations: 244.4 kB / 431.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.07e-07/0.5021, allocations: 4 kB / 431.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004948/0.5026, allocations: 74.52 kB / 431.3 MB, free: 15.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001449/0.5041, allocations: 422.6 kB / 431.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004242/0.5045, allocations: 154.5 kB / 431.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.112e-06/0.5045, allocations: 0 / 431.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.209e-05/0.5046, allocations: 33.11 kB / 431.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005442/0.5052, allocations: 109.4 kB / 432 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008559/0.5061, allocations: 390.5 kB / 432.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.5065, allocations: 0.7761 MB / 433.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.5067, allocations: 31.05 kB / 433.2 MB, free: 13.61 MB / 362.7 MB Notification: Performance of SimCode: time 1.827e-06/0.5067, allocations: 3.938 kB / 433.2 MB, free: 13.61 MB / 362.7 MB Notification: Performance of Templates: time 0.007914/0.5146, allocations: 3.599 MB / 436.8 MB, free: 10.04 MB / 362.7 MB