Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.035/2.035, allocations: 218.4 MB / 231.5 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.039e-05/3.05e-05, allocations: 4 kB / 284.3 MB, free: 8.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08573/0.08579, allocations: 50.37 MB / 334.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3542/0.4401, allocations: 82.48 MB / 417.2 MB, free: 11.83 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.4403, allocations: 80.45 kB / 417.2 MB, free: 11.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03541/0.4758, allocations: 8.397 MB / 425.6 MB, free: 4.805 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.864e-06/0.4758, allocations: 0 / 425.6 MB, free: 4.805 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.643e-05/0.4759, allocations: 4 kB / 425.6 MB, free: 4.801 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.000809/0.4767, allocations: 0.4951 MB / 426.1 MB, free: 4.273 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.4767, allocations: 11.97 kB / 426.1 MB, free: 4.262 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.608e-05/0.4768, allocations: 31.66 kB / 426.2 MB, free: 4.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00053/0.4774, allocations: 286.8 kB / 426.4 MB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.075e-05/0.4774, allocations: 11.06 kB / 426.5 MB, free: 3.926 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.712e-05/0.4775, allocations: 15.33 kB / 426.5 MB, free: 3.914 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006204/0.4781, allocations: 285.5 kB / 426.8 MB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.4781, allocations: 0 / 426.8 MB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.4782, allocations: 0 / 426.8 MB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.898e-06/0.4782, allocations: 4 kB / 426.8 MB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001681/0.4784, allocations: 61.05 kB / 426.8 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006697/0.479, allocations: 384.2 kB / 427.2 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003582/0.4794, allocations: 174.2 kB / 427.4 MB, free: 3.086 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.4796, allocations: 83.62 kB / 427.4 MB, free: 3.016 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.378e-05/0.4797, allocations: 12.16 kB / 427.5 MB, free: 3.004 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000162/0.4798, allocations: 74.17 kB / 427.5 MB, free: 2.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 3.321e-06/0.4799, allocations: 4 kB / 427.5 MB, free: 2.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004569/0.4803, allocations: 169.8 kB / 427.7 MB, free: 2.785 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.4805, allocations: 147.7 kB / 427.8 MB, free: 2.617 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003773/0.4809, allocations: 240.4 kB / 428.1 MB, free: 2.422 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.4809, allocations: 33.2 kB / 428.1 MB, free: 2.387 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.481, allocations: 172.3 kB / 428.3 MB, free: 2.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.142e-05/0.4811, allocations: 38.67 kB / 428.3 MB, free: 2.199 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.932e-06/0.4811, allocations: 3.062 kB / 428.3 MB, free: 2.199 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.4813, allocations: 326.3 kB / 428.6 MB, free: 1.875 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.902e-05/0.4814, allocations: 35.08 kB / 428.7 MB, free: 1.848 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.4816, allocations: 167.6 kB / 428.8 MB, free: 1.645 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.4818, allocations: 54.39 kB / 428.9 MB, free: 1.605 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.532e-06/0.4818, allocations: 4 kB / 428.9 MB, free: 1.602 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004319/0.4822, allocations: 188.5 kB / 429.1 MB, free: 1.441 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.4823, allocations: 11.94 kB / 429.1 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.4823, allocations: 8.516 kB / 429.1 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.4823, allocations: 12 kB / 429.1 MB, free: 1.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.4825, allocations: 19.59 kB / 429.1 MB, free: 1.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.781e-05/0.4825, allocations: 15.92 kB / 429.1 MB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.4827, allocations: 15.44 kB / 429.2 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.4828, allocations: 11.95 kB / 429.2 MB, free: 1.355 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.table1.combiTimeTable.nextTimeEvent,sample.u,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,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.0001474/0.4829, allocations: 133.5 kB / 429.3 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002696/0.4832, allocations: 118.9 kB / 429.4 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003059/0.4835, allocations: 127.7 kB / 429.5 MB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.28e-06/0.4836, allocations: 0 / 429.5 MB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.182e-06/0.4836, allocations: 4 kB / 429.5 MB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.108e-06/0.4836, allocations: 0 / 429.5 MB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.4839, allocations: 256.7 kB / 429.8 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.769e-06/0.4839, allocations: 4 kB / 429.8 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.082e-05/0.484, allocations: 8 kB / 429.8 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.834e-06/0.484, allocations: 0 / 429.8 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.4841, allocations: 11.61 kB / 429.8 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.108e-06/0.4841, allocations: 3.938 kB / 429.8 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-06/0.4841, allocations: 8 kB / 429.8 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004506/0.4845, allocations: 247.4 kB / 430.1 MB, free: 488 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001639/0.4847, allocations: 123.2 kB / 430.2 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.423e-05/0.4848, allocations: 7.625 kB / 430.2 MB, free: 352 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.4849, allocations: 11.56 kB / 430.2 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.046e-05/0.485, allocations: 11.94 kB / 430.2 MB, free: 332 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-05/0.485, allocations: 4 kB / 430.2 MB, free: 328 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002782/0.4853, allocations: 198.7 kB / 430.4 MB, free: 164 kB / 346.7 MB Notification: Performance of sort global known variables: time 7.89e-07/0.4853, allocations: 0 / 430.4 MB, free: 164 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004624/0.4858, allocations: 50.3 kB / 430.5 MB, free: 120 kB / 346.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,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.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.001459/0.4873, allocations: 418.5 kB / 430.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004033/0.4877, allocations: 133 kB / 431 MB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.19e-06/0.4877, allocations: 3.938 kB / 431 MB, free: 15.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.249e-05/0.4878, allocations: 24.25 kB / 431 MB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000523/0.4884, allocations: 98.8 kB / 431.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007626/0.4892, allocations: 336.1 kB / 431.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004445/0.4896, allocations: 0.7549 MB / 432.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.762e-05/0.4897, allocations: 26.36 kB / 432.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of SimCode: time 1.569e-06/0.4897, allocations: 4 kB / 432.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of Templates: time 0.00705/0.4968, allocations: 3.194 MB / 435.4 MB, free: 11.27 MB / 362.7 MB