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_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.074/2.074, allocations: 218.4 MB / 231.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.619e-05/3.64e-05, allocations: 4 kB / 284.3 MB, free: 8.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09041/0.09047, allocations: 50.36 MB / 334.7 MB, free: 5.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3784/0.4689, allocations: 82.5 MB / 417.2 MB, free: 11.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/0.4692, allocations: 87 kB / 417.3 MB, free: 11.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03687/0.5061, allocations: 8.605 MB / 425.9 MB, free: 4.637 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.121e-06/0.5061, allocations: 0 / 425.9 MB, free: 4.637 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.524e-05/0.5062, allocations: 11.94 kB / 425.9 MB, free: 4.625 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.00084/0.507, allocations: 0.5282 MB / 426.4 MB, free: 4.066 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.5071, allocations: 8.031 kB / 426.4 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.5072, allocations: 31.62 kB / 426.5 MB, free: 4.027 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006102/0.5078, allocations: 315.1 kB / 426.8 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.504e-05/0.5079, allocations: 15.89 kB / 426.8 MB, free: 3.691 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.735e-05/0.5079, allocations: 11.31 kB / 426.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006956/0.5086, allocations: 313.5 kB / 427.1 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.5086, allocations: 0 / 427.1 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.5087, allocations: 10.73 kB / 427.1 MB, free: 3.406 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.142e-06/0.5087, allocations: 4 kB / 427.1 MB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.5089, allocations: 65.8 kB / 427.2 MB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00082/0.5097, allocations: 436.6 kB / 427.6 MB, free: 2.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004331/0.5102, allocations: 184.6 kB / 427.8 MB, free: 2.766 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/0.5104, allocations: 85.19 kB / 427.9 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.452e-05/0.5105, allocations: 16.11 kB / 427.9 MB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.5107, allocations: 76.83 kB / 428 MB, free: 2.605 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 4.454e-06/0.5107, allocations: 0 / 428 MB, free: 2.605 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.000574/0.5113, allocations: 191.1 kB / 428.2 MB, free: 2.449 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/0.5115, allocations: 174 kB / 428.3 MB, free: 2.246 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005276/0.512, allocations: 314.9 kB / 428.6 MB, free: 1.992 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.467e-05/0.5121, allocations: 33.08 kB / 428.7 MB, free: 1.957 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.5122, allocations: 128.6 kB / 428.8 MB, free: 1.859 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.564e-05/0.5123, allocations: 30.83 kB / 428.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.127e-05/0.5123, allocations: 3.188 kB / 428.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.5125, allocations: 345.7 kB / 429.2 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.5126, allocations: 34.72 kB / 429.2 MB, free: 1.473 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.5129, allocations: 183.9 kB / 429.4 MB, free: 1.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.513, allocations: 73.28 kB / 429.4 MB, free: 1.195 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.342e-06/0.5131, allocations: 4 kB / 429.4 MB, free: 1.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005117/0.5136, allocations: 212.7 kB / 429.7 MB, free: 1.008 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.5136, allocations: 8 kB / 429.7 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.5136, allocations: 7.984 kB / 429.7 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.5137, allocations: 8 kB / 429.7 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.5139, allocations: 38.48 kB / 429.7 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.514, allocations: 11.88 kB / 429.7 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.5142, allocations: 10.84 kB / 429.7 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.5142, allocations: 27.48 kB / 429.8 MB, free: 0.9062 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.0001768/0.5144, allocations: 144.6 kB / 429.9 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003034/0.5147, allocations: 134.4 kB / 430 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003481/0.5151, allocations: 127.5 kB / 430.2 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.5151, allocations: 4 kB / 430.2 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.038e-06/0.5151, allocations: 3.938 kB / 430.2 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.209e-06/0.5152, allocations: 0 / 430.2 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003488/0.5155, allocations: 279.9 kB / 430.4 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.524e-06/0.5155, allocations: 7.984 kB / 430.5 MB, free: 252 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002024/0.5158, allocations: 31.84 kB / 430.5 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.169e-05/0.5158, allocations: 4 kB / 430.5 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.5158, allocations: 3.984 kB / 430.5 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.574e-06/0.5158, allocations: 4 kB / 430.5 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.5158, allocations: 0 / 430.5 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005262/0.5164, allocations: 272.7 kB / 430.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001897/0.5166, allocations: 131.1 kB / 430.9 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.349e-05/0.5167, allocations: 3.75 kB / 430.9 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.5168, allocations: 11.61 kB / 430.9 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.736e-05/0.5169, allocations: 11.98 kB / 430.9 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.517, allocations: 7.938 kB / 430.9 MB, free: 15.79 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003643/0.5173, allocations: 248.7 kB / 431.2 MB, free: 15.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.53e-07/0.5173, allocations: 4 kB / 431.2 MB, free: 15.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005216/0.5179, allocations: 66.5 kB / 431.2 MB, free: 15.53 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.001495/0.5194, allocations: 425.3 kB / 431.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004776/0.5199, allocations: 155.2 kB / 431.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.983e-06/0.5199, allocations: 3.938 kB / 431.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.988e-05/0.52, allocations: 35.59 kB / 431.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006071/0.5206, allocations: 104.3 kB / 431.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008637/0.5215, allocations: 359.3 kB / 432.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005284/0.5221, allocations: 0.7787 MB / 433.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001581/0.5223, allocations: 30.08 kB / 433.1 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.5224, allocations: 31.42 kB / 433.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of SimCode: time 1.56e-06/0.5224, allocations: 0 / 433.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of Templates: time 0.01053/0.5329, allocations: 3.33 MB / 436.5 MB, free: 10.43 MB / 362.7 MB