Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadModel(Modelica_Synchronous): time 2.225/2.225, allocations: 218.4 MB / 234.2 MB, free: 4.598 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.366e-05/3.376e-05, allocations: 4 kB / 287.6 MB, free: 15.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3742, allocations: 50.37 MB / 338 MB, free: 15.83 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked): time 0.003164/0.3775, allocations: 1.2 MB / 339.2 MB, free: 14.61 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007068/0.3782, allocations: 135.6 kB / 339.3 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.564e-05/0.3784, allocations: 0 / 339.3 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.806e-05/0.3784, allocations: 0 / 339.3 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001138/0.3785, allocations: 7.938 kB / 339.3 MB, free: 14.47 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002805/0.3788, allocations: 35.95 kB / 339.3 MB, free: 14.44 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.064e-05/0.3789, allocations: 23.91 kB / 339.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.789e-05/0.379, allocations: 7.938 kB / 339.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.955e-05/0.3791, allocations: 7.984 kB / 339.4 MB, free: 14.4 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.3e-05/0.3791, allocations: 7.938 kB / 339.4 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.727e-05/0.3791, allocations: 4 kB / 339.4 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.3791, allocations: 0 / 339.4 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.34e-05/0.3792, allocations: 7.984 kB / 339.4 MB, free: 14.38 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.268e-05/0.3792, allocations: 0 / 339.4 MB, free: 14.38 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.762e-05/0.3793, allocations: 23.97 kB / 339.4 MB, free: 14.36 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3793, allocations: 4 kB / 339.4 MB, free: 14.35 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.3793, allocations: 0 / 339.4 MB, free: 14.35 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.3793, allocations: 0 / 339.4 MB, free: 14.35 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004653/0.3798, allocations: 345.1 kB / 339.8 MB, free: 13.97 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.3799, allocations: 12.03 kB / 339.8 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.326e-05/0.3799, allocations: 7.906 kB / 339.8 MB, free: 13.95 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002314/0.3802, allocations: 182.8 kB / 340 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.3802, allocations: 8 kB / 340 MB, free: 13.72 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.3802, allocations: 7.953 kB / 340 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.3805, allocations: 85.05 kB / 340.1 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3806, allocations: 0 / 340.1 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.3806, allocations: 0 / 340.1 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.3806, allocations: 4 kB / 340.1 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.163e-05/0.3807, allocations: 15.98 kB / 340.1 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004322/0.3812, allocations: 261.7 kB / 340.3 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.951e-05/0.3813, allocations: 41.22 kB / 340.4 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.3813, allocations: 0 / 340.4 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.3814, allocations: 42.48 kB / 340.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.553e-06/0.3814, allocations: 3.938 kB / 340.4 MB, free: 13.17 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002762/0.3817, allocations: 57.66 kB / 340.5 MB, free: 13.11 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.957e-05/0.3817, allocations: 85.05 kB / 340.6 MB, free: 13.01 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.3819, allocations: 121.7 kB / 340.7 MB, free: 12.88 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.3819, allocations: 33.7 kB / 340.7 MB, free: 12.84 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.533e-05/0.382, allocations: 150.6 kB / 340.9 MB, free: 12.7 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.013e-05/0.3821, allocations: 0 / 340.9 MB, free: 12.7 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-06/0.3821, allocations: 4 kB / 340.9 MB, free: 12.69 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3822, allocations: 310.8 kB / 341.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.481e-05/0.3823, allocations: 4 kB / 341.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.264e-05/0.3823, allocations: 25.7 kB / 341.2 MB, free: 12.34 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.914e-05/0.3824, allocations: 8 kB / 341.2 MB, free: 12.34 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3824, allocations: 0 / 341.2 MB, free: 12.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001454/0.3826, allocations: 49.58 kB / 341.2 MB, free: 12.28 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.3826, allocations: 4 kB / 341.3 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3826, allocations: 4 kB / 341.3 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.3826, allocations: 0 / 341.3 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.998e-05/0.3827, allocations: 4.125 kB / 341.3 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.3827, allocations: 0 / 341.3 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.112e-05/0.3828, allocations: 7.938 kB / 341.3 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.3828, allocations: 0 / 341.3 MB, free: 12.26 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001119/0.3829, allocations: 117.8 kB / 341.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.618e-05/0.383, allocations: 49.5 kB / 341.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/0.383, allocations: 7.484 kB / 341.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.3831, allocations: 4 kB / 341.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3831, allocations: 0 / 341.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.3831, allocations: 4.031 kB / 341.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002263/0.3833, allocations: 169.6 kB / 341.6 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3833, allocations: 0 / 341.6 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.018e-05/0.3834, allocations: 0 / 341.6 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.391e-06/0.3834, allocations: 7.953 kB / 341.6 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.3834, allocations: 0 / 341.6 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3834, allocations: 0 / 341.6 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3834, allocations: 4 kB / 341.6 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.3837, allocations: 170 kB / 341.8 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.943e-05/0.3838, allocations: 89.05 kB / 341.9 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.3838, allocations: 7.938 kB / 341.9 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.375e-05/0.3839, allocations: 7.969 kB / 341.9 MB, free: 11.53 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.3839, allocations: 0 / 341.9 MB, free: 11.53 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.384, allocations: 4 kB / 341.9 MB, free: 11.52 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001009/0.3841, allocations: 103.3 kB / 342 MB, free: 11.42 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3841, allocations: 0 / 342 MB, free: 11.42 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002714/0.3844, allocations: 4 kB / 342 MB, free: 11.42 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0001284/0.3845, allocations: 95.25 kB / 342.1 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001574/0.3847, allocations: 19.98 kB / 342.1 MB, free: 11.29 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3847, allocations: 0 / 342.1 MB, free: 11.29 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.3e-05/0.3847, allocations: 12.06 kB / 342.1 MB, free: 11.28 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.3851, allocations: 16.02 kB / 342.1 MB, free: 11.27 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003997/0.3855, allocations: 167.3 kB / 342.3 MB, free: 11.07 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.3859, allocations: 0.6926 MB / 343 MB, free: 10.35 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.017e-05/0.3859, allocations: 11.59 kB / 343 MB, free: 10.34 MB / 282.7 MB Notification: Performance of SimCode: time 1.021e-06/0.3859, allocations: 0 / 343 MB, free: 10.34 MB / 282.7 MB Notification: Performance of Templates: time 0.002477/0.3884, allocations: 0.6053 MB / 343.6 MB, free: 9.73 MB / 282.7 MB