Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadModel(Modelica_LinearSystems2): time 2.347/2.347, allocations: 251.5 MB / 266 MB, free: 0.6875 MB / 218.7 MB Notification: Performance of loadModel(Modelica_Synchronous): time 0.09839/0.09839, allocations: 12.6 MB / 336.6 MB, free: 14.75 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.523e-05/3.519e-05, allocations: 7.984 kB / 399.8 MB, free: 15.47 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.375/0.375, allocations: 59.43 MB / 459.2 MB, free: 28.63 MB / 346.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample): time 0.002251/0.3773, allocations: 1.545 MB / 460.7 MB, free: 27.07 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.3791, allocations: 0.9055 MB / 461.6 MB, free: 26.16 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.3792, allocations: 8 kB / 461.6 MB, free: 26.15 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002539/0.3795, allocations: 47.8 kB / 461.7 MB, free: 26.1 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.3797, allocations: 63.83 kB / 461.8 MB, free: 26.04 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007128/0.3804, allocations: 183.5 kB / 461.9 MB, free: 25.86 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001707/0.3806, allocations: 91.77 kB / 462 MB, free: 25.77 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.3807, allocations: 19.98 kB / 462 MB, free: 25.75 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.3809, allocations: 47.84 kB / 462.1 MB, free: 25.7 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.381, allocations: 59.77 kB / 462.1 MB, free: 25.64 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001359/0.3811, allocations: 39.92 kB / 462.2 MB, free: 25.61 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.56e-05/0.3812, allocations: 8 kB / 462.2 MB, free: 25.6 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.063e-05/0.3812, allocations: 39.83 kB / 462.2 MB, free: 25.56 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.68e-05/0.3813, allocations: 8 kB / 462.2 MB, free: 25.55 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002534/0.3816, allocations: 174.3 kB / 462.4 MB, free: 25.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.3816, allocations: 4 kB / 462.4 MB, free: 25.38 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3816, allocations: 0 / 462.4 MB, free: 25.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.3816, allocations: 0 / 462.4 MB, free: 25.38 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005926/0.3822, allocations: 468.5 kB / 462.9 MB, free: 24.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.3823, allocations: 8.031 kB / 462.9 MB, free: 24.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.353e-05/0.3823, allocations: 23.67 kB / 462.9 MB, free: 24.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.3827, allocations: 282.4 kB / 463.2 MB, free: 24.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.3828, allocations: 4 kB / 463.2 MB, free: 24.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.3828, allocations: 12 kB / 463.2 MB, free: 24.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003608/0.3832, allocations: 147.6 kB / 463.3 MB, free: 24.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.3832, allocations: 4 kB / 463.3 MB, free: 24.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.3832, allocations: 0 / 463.3 MB, free: 24.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.3833, allocations: 7.953 kB / 463.4 MB, free: 24.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001557/0.3834, allocations: 43.91 kB / 463.4 MB, free: 24.28 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005302/0.384, allocations: 362.5 kB / 463.8 MB, free: 23.87 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.3843, allocations: 123.8 kB / 463.9 MB, free: 23.72 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.3843, allocations: 4 kB / 463.9 MB, free: 23.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.3845, allocations: 95.33 kB / 464 MB, free: 23.61 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.014e-06/0.3846, allocations: 4 kB / 464 MB, free: 23.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005182/0.3851, allocations: 145.3 kB / 464.1 MB, free: 23.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.3852, allocations: 170.1 kB / 464.3 MB, free: 23.26 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/0.3856, allocations: 297.8 kB / 464.6 MB, free: 22.96 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.3856, allocations: 25.7 kB / 464.6 MB, free: 22.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.214e-05/0.3857, allocations: 124 kB / 464.7 MB, free: 22.8 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.863e-05/0.3857, allocations: 28.06 kB / 464.7 MB, free: 22.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.825e-06/0.3857, allocations: 0 / 464.7 MB, free: 22.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.318e-05/0.3858, allocations: 334.8 kB / 465.1 MB, free: 22.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.941e-05/0.3859, allocations: 23.98 kB / 465.1 MB, free: 22.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001371/0.3861, allocations: 82.84 kB / 465.2 MB, free: 22.31 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.3862, allocations: 35.94 kB / 465.2 MB, free: 22.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3862, allocations: 0 / 465.2 MB, free: 22.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003077/0.3865, allocations: 117.4 kB / 465.3 MB, free: 22.15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.3866, allocations: 9.094 kB / 465.3 MB, free: 22.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3866, allocations: 3.953 kB / 465.3 MB, free: 22.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.3866, allocations: 8.125 kB / 465.3 MB, free: 22.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.3868, allocations: 19.94 kB / 465.4 MB, free: 22.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3868, allocations: 7.984 kB / 465.4 MB, free: 22.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.387, allocations: 4 kB / 465.4 MB, free: 22.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.387, allocations: 4 kB / 465.4 MB, free: 22.1 MB / 346.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,table.y,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.000146/0.3871, allocations: 151.9 kB / 465.5 MB, free: 21.94 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.511e-05/0.3872, allocations: 69.34 kB / 465.6 MB, free: 21.87 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.61e-05/0.3873, allocations: 21.77 kB / 465.6 MB, free: 21.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.3873, allocations: 11.95 kB / 465.6 MB, free: 21.83 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3874, allocations: 3.938 kB / 465.6 MB, free: 21.83 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3874, allocations: 0 / 465.6 MB, free: 21.83 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002097/0.3876, allocations: 241.4 kB / 465.9 MB, free: 21.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.3876, allocations: 0 / 465.9 MB, free: 21.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.3877, allocations: 20.3 kB / 465.9 MB, free: 21.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.3877, allocations: 0 / 465.9 MB, free: 21.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.3877, allocations: 0 / 465.9 MB, free: 21.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3878, allocations: 11.94 kB / 465.9 MB, free: 21.51 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3878, allocations: 4 kB / 465.9 MB, free: 21.51 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.3881, allocations: 189.9 kB / 466.1 MB, free: 21.29 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.3882, allocations: 120.8 kB / 466.2 MB, free: 21.15 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.705e-05/0.3883, allocations: 4 kB / 466.2 MB, free: 21.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.3884, allocations: 11.98 kB / 466.2 MB, free: 21.13 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.962e-05/0.3885, allocations: 8 kB / 466.2 MB, free: 21.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.3885, allocations: 7.984 kB / 466.2 MB, free: 21.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002886/0.3888, allocations: 233.9 kB / 466.5 MB, free: 20.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.3888, allocations: 0 / 466.5 MB, free: 20.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003306/0.3892, allocations: 39.98 kB / 466.5 MB, free: 20.85 MB / 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: 7 ($whenCondition1,table.y,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.001062/0.3903, allocations: 396 kB / 466.9 MB, free: 20.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002949/0.3906, allocations: 71.91 kB / 467 MB, free: 20.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3906, allocations: 3.938 kB / 467 MB, free: 20.44 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.3907, allocations: 31.98 kB / 467 MB, free: 20.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.3912, allocations: 58.73 kB / 467.1 MB, free: 20.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00069/0.3919, allocations: 392.7 kB / 467.4 MB, free: 19.94 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/0.3921, allocations: 0.7478 MB / 468.2 MB, free: 19.17 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.3922, allocations: 21.55 kB / 468.2 MB, free: 19.15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.55e-05/0.3923, allocations: 23.44 kB / 468.2 MB, free: 19.12 MB / 346.7 MB Notification: Performance of SimCode: time 6.82e-07/0.3923, allocations: 0 / 468.2 MB, free: 19.12 MB / 346.7 MB Notification: Performance of Templates: time 0.008052/0.4004, allocations: 2.597 MB / 470.8 MB, free: 16.54 MB / 346.7 MB