Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadModel(Modelica_Synchronous): time 2.244/2.244, allocations: 218.4 MB / 234.2 MB, free: 4.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.175e-05/3.229e-05, allocations: 4 kB / 287.6 MB, free: 15.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.3449, allocations: 50.36 MB / 338 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.002952/0.3479, allocations: 1.568 MB / 339.5 MB, free: 14.28 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.3501, allocations: 0.8667 MB / 340.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.3503, allocations: 4 kB / 340.4 MB, free: 13.4 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007284/0.3511, allocations: 155.5 kB / 340.6 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003515/0.3514, allocations: 79.81 kB / 340.6 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006867/0.3521, allocations: 151.5 kB / 340.8 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002328/0.3524, allocations: 83.84 kB / 340.9 MB, free: 12.94 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.3525, allocations: 19.97 kB / 340.9 MB, free: 12.92 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.3526, allocations: 55.78 kB / 340.9 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.3528, allocations: 59.75 kB / 341 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001613/0.353, allocations: 31.98 kB / 341 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.284e-05/0.353, allocations: 8 kB / 341 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.587e-05/0.3531, allocations: 35.91 kB / 341.1 MB, free: 12.73 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.952e-05/0.3532, allocations: 4 kB / 341.1 MB, free: 12.73 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003075/0.3535, allocations: 153.4 kB / 341.2 MB, free: 12.58 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3535, allocations: 4 kB / 341.2 MB, free: 12.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3535, allocations: 3.938 kB / 341.2 MB, free: 12.57 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.3535, allocations: 0 / 341.2 MB, free: 12.57 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007441/0.3543, allocations: 455.9 kB / 341.7 MB, free: 12.07 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3544, allocations: 16.02 kB / 341.7 MB, free: 12.06 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.144e-05/0.3544, allocations: 23.72 kB / 341.7 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004711/0.3549, allocations: 269.6 kB / 342 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.619e-05/0.355, allocations: 4 kB / 342 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.355, allocations: 8 kB / 342 MB, free: 11.72 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004588/0.3555, allocations: 167.4 kB / 342.2 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.3555, allocations: 0 / 342.2 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.3555, allocations: 8 kB / 342.2 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.3556, allocations: 0 / 342.2 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001587/0.3557, allocations: 39.91 kB / 342.2 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007365/0.3565, allocations: 458.5 kB / 342.6 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.3569, allocations: 138.5 kB / 342.8 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.3569, allocations: 0 / 342.8 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002539/0.3572, allocations: 93.16 kB / 342.9 MB, free: 10.69 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 1.994e-06/0.3572, allocations: 0 / 342.9 MB, free: 10.69 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005535/0.3578, allocations: 153.3 kB / 343 MB, free: 10.54 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.3579, allocations: 170.2 kB / 343.2 MB, free: 10.33 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004097/0.3583, allocations: 244.1 kB / 343.4 MB, free: 10.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.3584, allocations: 33.7 kB / 343.5 MB, free: 10.05 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3585, allocations: 174.8 kB / 343.6 MB, free: 9.879 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.969e-05/0.3585, allocations: 20.11 kB / 343.7 MB, free: 9.859 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.665e-06/0.3586, allocations: 8 kB / 343.7 MB, free: 9.852 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3587, allocations: 314.8 kB / 344 MB, free: 9.535 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.3588, allocations: 19.98 kB / 344 MB, free: 9.516 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.359, allocations: 78.8 kB / 344.1 MB, free: 9.414 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.3591, allocations: 40.27 kB / 344.1 MB, free: 9.375 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3591, allocations: 0 / 344.1 MB, free: 9.375 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003769/0.3595, allocations: 113.5 kB / 344.2 MB, free: 9.258 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.3596, allocations: 11.94 kB / 344.2 MB, free: 9.246 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3596, allocations: 0 / 344.2 MB, free: 9.246 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.3596, allocations: 8.156 kB / 344.2 MB, free: 9.238 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.3597, allocations: 11.94 kB / 344.2 MB, free: 9.227 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.3598, allocations: 7.984 kB / 344.3 MB, free: 9.219 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.3599, allocations: 15.86 kB / 344.3 MB, free: 9.203 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.36, allocations: 4 kB / 344.3 MB, free: 9.199 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001988/0.3602, allocations: 141.8 kB / 344.4 MB, free: 9.051 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.3603, allocations: 69.34 kB / 344.5 MB, free: 8.977 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.378e-05/0.3604, allocations: 29.77 kB / 344.5 MB, free: 8.941 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.3604, allocations: 4 kB / 344.5 MB, free: 8.938 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3605, allocations: 0 / 344.5 MB, free: 8.938 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.3605, allocations: 0 / 344.5 MB, free: 8.938 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003131/0.3608, allocations: 237.5 kB / 344.7 MB, free: 8.656 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3608, allocations: 0 / 344.7 MB, free: 8.656 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.97e-05/0.3609, allocations: 12 kB / 344.8 MB, free: 8.645 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.3609, allocations: 3.938 kB / 344.8 MB, free: 8.641 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3609, allocations: 4 kB / 344.8 MB, free: 8.637 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.3609, allocations: 3.938 kB / 344.8 MB, free: 8.633 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3609, allocations: 0 / 344.8 MB, free: 8.633 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004074/0.3614, allocations: 204.5 kB / 345 MB, free: 8.387 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.3615, allocations: 120.8 kB / 345.1 MB, free: 8.25 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.958e-05/0.3616, allocations: 7.953 kB / 345.1 MB, free: 8.242 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.3617, allocations: 8 kB / 345.1 MB, free: 8.234 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.56e-05/0.3618, allocations: 7.984 kB / 345.1 MB, free: 8.227 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/0.3618, allocations: 4 kB / 345.1 MB, free: 8.223 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003088/0.3621, allocations: 196.4 kB / 345.3 MB, free: 8.027 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3621, allocations: 0 / 345.3 MB, free: 8.027 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003946/0.3625, allocations: 32 kB / 345.3 MB, free: 7.996 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.0012/0.3637, allocations: 390 kB / 345.7 MB, free: 7.664 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003731/0.3641, allocations: 75.84 kB / 345.8 MB, free: 7.59 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.3641, allocations: 4 kB / 345.8 MB, free: 7.586 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.3643, allocations: 31.92 kB / 345.8 MB, free: 7.555 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005355/0.3648, allocations: 73.67 kB / 345.9 MB, free: 7.484 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008355/0.3657, allocations: 386.5 kB / 346.3 MB, free: 7.066 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.3661, allocations: 0.7322 MB / 347 MB, free: 6.309 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.788e-05/0.3662, allocations: 27.42 kB / 347 MB, free: 6.281 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/0.3662, allocations: 4 kB / 347 MB, free: 6.277 MB / 282.7 MB Notification: Performance of Templates: time 0.007459/0.3736, allocations: 2.658 MB / 349.7 MB, free: 3.617 MB / 282.7 MB