Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.297/2.297, allocations: 218.4 MB / 234.2 MB, free: 5.555 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.303e-05/3.297e-05, allocations: 4 kB / 287.6 MB, free: 36 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3345, allocations: 50.38 MB / 338 MB, free: 15.96 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.003277/0.3378, allocations: 1.548 MB / 339.5 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002199/0.3401, allocations: 0.8278 MB / 340.4 MB, free: 13.56 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.3403, allocations: 4 kB / 340.4 MB, free: 13.55 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008019/0.3412, allocations: 155.5 kB / 340.5 MB, free: 13.4 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003467/0.3415, allocations: 79.81 kB / 340.6 MB, free: 13.32 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007495/0.3423, allocations: 147.6 kB / 340.7 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002516/0.3426, allocations: 83.83 kB / 340.8 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.3427, allocations: 27.86 kB / 340.8 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.3428, allocations: 51.78 kB / 340.9 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.343, allocations: 51.83 kB / 340.9 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001858/0.3432, allocations: 35.97 kB / 341 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.574e-05/0.3432, allocations: 4 kB / 341 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.098e-05/0.3433, allocations: 39.84 kB / 341 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.065e-05/0.3434, allocations: 4 kB / 341 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003268/0.3437, allocations: 145.5 kB / 341.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3437, allocations: 0 / 341.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3438, allocations: 3.938 kB / 341.2 MB, free: 12.74 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.517e-06/0.3438, allocations: 0 / 341.2 MB, free: 12.74 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007844/0.3446, allocations: 460.7 kB / 341.6 MB, free: 12.24 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.3446, allocations: 8.031 kB / 341.6 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.918e-05/0.3447, allocations: 15.81 kB / 341.6 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005255/0.3452, allocations: 273.5 kB / 341.9 MB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.3453, allocations: 4 kB / 341.9 MB, free: 11.9 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.477e-05/0.3453, allocations: 8 kB / 341.9 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004482/0.3458, allocations: 142.7 kB / 342.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3458, allocations: 0 / 342.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.3458, allocations: 4 kB / 342.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.3459, allocations: 0 / 342.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.346, allocations: 35.92 kB / 342.1 MB, free: 11.69 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006867/0.3467, allocations: 370.5 kB / 342.5 MB, free: 11.27 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003203/0.3471, allocations: 111.8 kB / 342.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.286e-05/0.3471, allocations: 0 / 342.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000284/0.3474, allocations: 75.5 kB / 342.6 MB, free: 11.05 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 2.555e-06/0.3474, allocations: 0 / 342.6 MB, free: 11.05 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005352/0.348, allocations: 141.4 kB / 342.8 MB, free: 10.91 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.3481, allocations: 140.6 kB / 342.9 MB, free: 10.74 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004302/0.3486, allocations: 248 kB / 343.2 MB, free: 10.49 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.992e-05/0.3486, allocations: 29.7 kB / 343.2 MB, free: 10.46 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.3487, allocations: 170.6 kB / 343.4 MB, free: 10.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.3488, allocations: 19.8 kB / 343.4 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.3488, allocations: 0 / 343.4 MB, free: 10.27 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.349, allocations: 310.8 kB / 343.7 MB, free: 9.957 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.3491, allocations: 27.98 kB / 343.7 MB, free: 9.93 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.3492, allocations: 66 kB / 343.8 MB, free: 9.844 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.3494, allocations: 23.97 kB / 343.8 MB, free: 9.82 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3494, allocations: 8 kB / 343.8 MB, free: 9.812 MB / 282.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003179/0.3497, allocations: 101.5 kB / 343.9 MB, free: 9.707 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.3498, allocations: 5.562 kB / 343.9 MB, free: 9.703 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3498, allocations: 3.938 kB / 343.9 MB, free: 9.699 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.3498, allocations: 7.938 kB / 343.9 MB, free: 9.691 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.3499, allocations: 11.98 kB / 343.9 MB, free: 9.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.35, allocations: 4 kB / 343.9 MB, free: 9.676 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.3501, allocations: 8.125 kB / 343.9 MB, free: 9.668 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.3502, allocations: 11.95 kB / 344 MB, free: 9.656 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001923/0.3504, allocations: 149.6 kB / 344.1 MB, free: 9.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.3505, allocations: 65.41 kB / 344.2 MB, free: 9.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.676e-05/0.3506, allocations: 21.7 kB / 344.2 MB, free: 9.402 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3506, allocations: 0 / 344.2 MB, free: 9.402 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3506, allocations: 0 / 344.2 MB, free: 9.402 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.3506, allocations: 4 kB / 344.2 MB, free: 9.398 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.3509, allocations: 230 kB / 344.4 MB, free: 9.125 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3509, allocations: 7.984 kB / 344.4 MB, free: 9.117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.354e-05/0.351, allocations: 15.92 kB / 344.4 MB, free: 9.102 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.351, allocations: 4 kB / 344.4 MB, free: 9.098 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.351, allocations: 0 / 344.4 MB, free: 9.098 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3511, allocations: 0 / 344.4 MB, free: 9.098 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.3511, allocations: 4 kB / 344.4 MB, free: 9.094 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004255/0.3515, allocations: 174 kB / 344.6 MB, free: 8.887 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.3517, allocations: 112.8 kB / 344.7 MB, free: 8.758 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.651e-05/0.3517, allocations: 4 kB / 344.7 MB, free: 8.754 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.3518, allocations: 7.984 kB / 344.7 MB, free: 8.746 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/0.3519, allocations: 11.95 kB / 344.7 MB, free: 8.734 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.3519, allocations: 4 kB / 344.8 MB, free: 8.73 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002993/0.3522, allocations: 196.5 kB / 344.9 MB, free: 8.535 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3523, allocations: 0 / 344.9 MB, free: 8.535 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003431/0.3526, allocations: 28 kB / 345 MB, free: 8.508 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: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001174/0.3538, allocations: 395.4 kB / 345.4 MB, free: 8.176 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003763/0.3542, allocations: 67.84 kB / 345.4 MB, free: 8.109 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3542, allocations: 256 / 345.4 MB, free: 8.109 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.3543, allocations: 28 kB / 345.4 MB, free: 8.082 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005555/0.3549, allocations: 56.42 kB / 345.5 MB, free: 8.027 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008751/0.3558, allocations: 362 kB / 345.9 MB, free: 7.637 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.3562, allocations: 0.7361 MB / 346.6 MB, free: 6.875 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.057e-05/0.3563, allocations: 19.42 kB / 346.6 MB, free: 6.855 MB / 282.7 MB Notification: Performance of SimCode: time 1.193e-06/0.3563, allocations: 0 / 346.6 MB, free: 6.855 MB / 282.7 MB Notification: Performance of Templates: time 0.007348/0.3637, allocations: 2.584 MB / 349.2 MB, free: 4.27 MB / 282.7 MB