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.313/2.313, allocations: 218.4 MB / 234.2 MB, free: 4.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.771e-05/3.782e-05, allocations: 4 kB / 287.6 MB, free: 15.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3274, allocations: 50.37 MB / 338 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.003268/0.3308, allocations: 1.635 MB / 339.6 MB, free: 14.2 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.3331, allocations: 0.8939 MB / 340.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002085/0.3333, allocations: 7.938 kB / 340.5 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008023/0.3342, allocations: 155.5 kB / 340.7 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003494/0.3345, allocations: 83.8 kB / 340.7 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009487/0.3355, allocations: 183.4 kB / 340.9 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.3358, allocations: 107.8 kB / 341 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.3359, allocations: 23.97 kB / 341.1 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001588/0.3361, allocations: 67.81 kB / 341.1 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.3363, allocations: 67.7 kB / 341.2 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001808/0.3365, allocations: 39.92 kB / 341.2 MB, free: 12.58 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.31e-05/0.3365, allocations: 8 kB / 341.2 MB, free: 12.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.378e-05/0.3366, allocations: 47.83 kB / 341.3 MB, free: 12.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.831e-05/0.3367, allocations: 8 kB / 341.3 MB, free: 12.52 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003679/0.3371, allocations: 181.4 kB / 341.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3371, allocations: 0 / 341.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3371, allocations: 0 / 341.5 MB, free: 12.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.3372, allocations: 3.938 kB / 341.5 MB, free: 12.34 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009166/0.3381, allocations: 492.4 kB / 341.9 MB, free: 11.8 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.3382, allocations: 8.031 kB / 342 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.685e-05/0.3383, allocations: 23.72 kB / 342 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005571/0.3388, allocations: 273.6 kB / 342.2 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.835e-05/0.3389, allocations: 15.97 kB / 342.3 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.467e-05/0.3389, allocations: 12 kB / 342.3 MB, free: 11.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007986/0.3398, allocations: 302.1 kB / 342.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.3398, allocations: 0 / 342.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.464e-05/0.3398, allocations: 7.938 kB / 342.6 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.3399, allocations: 8 kB / 342.6 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.3401, allocations: 55.91 kB / 342.6 MB, free: 11.04 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007786/0.3409, allocations: 398.3 kB / 343 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005294/0.3414, allocations: 172 kB / 343.2 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.918e-05/0.3415, allocations: 7.984 kB / 343.2 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.3418, allocations: 79.45 kB / 343.3 MB, free: 10.3 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 2.976e-06/0.3418, allocations: 0 / 343.3 MB, free: 10.3 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007912/0.3426, allocations: 221.2 kB / 343.5 MB, free: 10.08 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.3427, allocations: 144.5 kB / 343.6 MB, free: 9.91 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004378/0.3432, allocations: 256 kB / 343.9 MB, free: 9.656 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.3432, allocations: 33.69 kB / 343.9 MB, free: 9.617 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.3434, allocations: 175.3 kB / 344.1 MB, free: 9.445 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.007e-05/0.3434, allocations: 31.7 kB / 344.1 MB, free: 9.414 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.203e-05/0.3434, allocations: 8 kB / 344.1 MB, free: 9.406 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3436, allocations: 318.8 kB / 344.4 MB, free: 9.086 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.3437, allocations: 32.45 kB / 344.5 MB, free: 9.055 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/0.344, allocations: 166 kB / 344.6 MB, free: 8.832 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.3442, allocations: 63.95 kB / 344.7 MB, free: 8.77 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.3442, allocations: 384 / 344.7 MB, free: 8.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005537/0.3448, allocations: 213.4 kB / 344.9 MB, free: 8.555 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.3448, allocations: 8 kB / 344.9 MB, free: 8.547 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.3449, allocations: 4 kB / 344.9 MB, free: 8.543 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.529e-05/0.3449, allocations: 12.42 kB / 344.9 MB, free: 8.531 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.3451, allocations: 27.92 kB / 345 MB, free: 8.504 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.3451, allocations: 4 kB / 345 MB, free: 8.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002899/0.3454, allocations: 27.83 kB / 345 MB, free: 8.473 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.889e-05/0.3454, allocations: 12 kB / 345 MB, free: 8.461 MB / 282.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,table1.y,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.0002454/0.3457, allocations: 160 kB / 345.2 MB, free: 8.297 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003009/0.346, allocations: 125.3 kB / 345.3 MB, free: 8.168 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.486e-05/0.3461, allocations: 25.72 kB / 345.3 MB, free: 8.137 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.3461, allocations: 8 kB / 345.3 MB, free: 8.129 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/0.3461, allocations: 7.938 kB / 345.3 MB, free: 8.121 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.3462, allocations: 3.984 kB / 345.3 MB, free: 8.117 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002999/0.3465, allocations: 245.5 kB / 345.6 MB, free: 7.828 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3465, allocations: 0 / 345.6 MB, free: 7.828 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.335e-05/0.3466, allocations: 15.92 kB / 345.6 MB, free: 7.812 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.114e-05/0.3466, allocations: 4 kB / 345.6 MB, free: 7.809 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.3466, allocations: 0 / 345.6 MB, free: 7.809 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.177e-05/0.3466, allocations: 8.328 kB / 345.6 MB, free: 7.801 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3466, allocations: 0 / 345.6 MB, free: 7.801 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005563/0.3472, allocations: 252.4 kB / 345.8 MB, free: 7.523 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.3474, allocations: 128.7 kB / 346 MB, free: 7.379 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.212e-05/0.3475, allocations: 7.953 kB / 346 MB, free: 7.371 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.3476, allocations: 8 kB / 346 MB, free: 7.363 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.646e-05/0.3477, allocations: 7.984 kB / 346 MB, free: 7.355 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.098e-05/0.3477, allocations: 12 kB / 346 MB, free: 7.344 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003035/0.348, allocations: 192.5 kB / 346.2 MB, free: 7.152 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.348, allocations: 4 kB / 346.2 MB, free: 7.148 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004272/0.3485, allocations: 39.91 kB / 346.2 MB, free: 7.109 MB / 282.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,table1.y,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.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.001237/0.3497, allocations: 402.1 kB / 346.6 MB, free: 6.766 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005601/0.3503, allocations: 143.5 kB / 346.8 MB, free: 6.629 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.3503, allocations: 0 / 346.8 MB, free: 6.629 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.3505, allocations: 31.86 kB / 346.8 MB, free: 6.598 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000719/0.3512, allocations: 105.7 kB / 346.9 MB, free: 6.496 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.3523, allocations: 458.3 kB / 347.3 MB, free: 6.008 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.3527, allocations: 0.756 MB / 348.1 MB, free: 5.227 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.3528, allocations: 31.42 kB / 348.1 MB, free: 5.195 MB / 282.7 MB Notification: Performance of SimCode: time 1.393e-06/0.3528, allocations: 0 / 348.1 MB, free: 5.195 MB / 282.7 MB Notification: Performance of Templates: time 0.008917/0.3618, allocations: 3.181 MB / 351.3 MB, free: 2.012 MB / 282.7 MB