Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadModel(Modelica_Synchronous): time 2.318/2.318, allocations: 218.4 MB / 234.2 MB, free: 4.621 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.178e-05/3.191e-05, allocations: 4 kB / 287.6 MB, free: 15.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3976/0.3977, allocations: 50.37 MB / 338 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.004451/0.4022, allocations: 1.568 MB / 339.5 MB, free: 14.27 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003503/0.4058, allocations: 0.9134 MB / 340.5 MB, free: 13.35 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.4061, allocations: 11.94 kB / 340.5 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004443/0.4065, allocations: 51.8 kB / 340.5 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000386/0.407, allocations: 67.81 kB / 340.6 MB, free: 13.22 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001394/0.4084, allocations: 183.5 kB / 340.8 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.4087, allocations: 83.72 kB / 340.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.4089, allocations: 23.98 kB / 340.9 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.4091, allocations: 51.84 kB / 340.9 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.4094, allocations: 67.69 kB / 341 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002707/0.4097, allocations: 35.97 kB / 341 MB, free: 12.78 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.866e-05/0.4098, allocations: 8 kB / 341 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.4099, allocations: 43.84 kB / 341.1 MB, free: 12.73 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.016e-05/0.41, allocations: 8 kB / 341.1 MB, free: 12.72 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005693/0.4106, allocations: 177.5 kB / 341.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.4106, allocations: 4 kB / 341.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.462e-06/0.4106, allocations: 0 / 341.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.4107, allocations: 3.938 kB / 341.3 MB, free: 12.54 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.0009151/0.4116, allocations: 464.6 kB / 341.7 MB, free: 12.04 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.4117, allocations: 12.03 kB / 341.7 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.543e-05/0.4117, allocations: 23.72 kB / 341.7 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005099/0.4123, allocations: 282.3 kB / 342 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.4123, allocations: 4 kB / 342 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.9e-05/0.4123, allocations: 12 kB / 342 MB, free: 11.67 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/0.4128, allocations: 168.4 kB / 342.2 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.4129, allocations: 3.938 kB / 342.2 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.4129, allocations: 4 kB / 342.2 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.4129, allocations: 4 kB / 342.2 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.4131, allocations: 39.97 kB / 342.3 MB, free: 11.42 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007319/0.4138, allocations: 474.4 kB / 342.7 MB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004296/0.4143, allocations: 150.5 kB / 342.9 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.839e-05/0.4143, allocations: 4 kB / 342.9 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002573/0.4146, allocations: 93.22 kB / 343 MB, free: 10.6 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 2.425e-06/0.4146, allocations: 0 / 343 MB, free: 10.6 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006208/0.4153, allocations: 173.2 kB / 343.1 MB, free: 10.43 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.4154, allocations: 196.2 kB / 343.3 MB, free: 10.19 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004939/0.4159, allocations: 297.8 kB / 343.6 MB, free: 9.891 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.416, allocations: 29.7 kB / 343.6 MB, free: 9.855 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.4161, allocations: 182.8 kB / 343.8 MB, free: 9.676 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.076e-05/0.4161, allocations: 23.81 kB / 343.8 MB, free: 9.652 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.382e-05/0.4162, allocations: 4 kB / 343.8 MB, free: 9.648 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.4163, allocations: 314.8 kB / 344.2 MB, free: 9.332 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.4164, allocations: 27.98 kB / 344.2 MB, free: 9.305 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.4166, allocations: 99.7 kB / 344.3 MB, free: 9.18 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.4168, allocations: 39.94 kB / 344.3 MB, free: 9.141 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4168, allocations: 0 / 344.3 MB, free: 9.141 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003761/0.4172, allocations: 117.5 kB / 344.4 MB, free: 9.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.4172, allocations: 11.94 kB / 344.4 MB, free: 9.008 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.4173, allocations: 0 / 344.4 MB, free: 9.008 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.4173, allocations: 0 / 344.4 MB, free: 9.008 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.4175, allocations: 27.92 kB / 344.5 MB, free: 8.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.4175, allocations: 0 / 344.5 MB, free: 8.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.4177, allocations: 20.02 kB / 344.5 MB, free: 8.961 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.4177, allocations: 8 kB / 344.5 MB, free: 8.953 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.0002009/0.4179, allocations: 153.8 kB / 344.6 MB, free: 8.793 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.4181, allocations: 73.34 kB / 344.7 MB, free: 8.715 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.865e-05/0.4182, allocations: 29.7 kB / 344.7 MB, free: 8.68 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.4182, allocations: 4 kB / 344.8 MB, free: 8.676 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4182, allocations: 0 / 344.8 MB, free: 8.676 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4182, allocations: 8.094 kB / 344.8 MB, free: 8.668 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003128/0.4186, allocations: 245.5 kB / 345 MB, free: 8.379 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4186, allocations: 0 / 345 MB, free: 8.379 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.4187, allocations: 16.3 kB / 345 MB, free: 8.363 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.4187, allocations: 0 / 345 MB, free: 8.363 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.4188, allocations: 12 kB / 345 MB, free: 8.352 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.4188, allocations: 3.984 kB / 345 MB, free: 8.348 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.4188, allocations: 4 kB / 345 MB, free: 8.344 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004592/0.4193, allocations: 220.4 kB / 345.3 MB, free: 8.082 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.4194, allocations: 112.8 kB / 345.4 MB, free: 7.953 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.474e-05/0.4195, allocations: 11.95 kB / 345.4 MB, free: 7.941 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.4196, allocations: 4 kB / 345.4 MB, free: 7.938 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.503e-05/0.4197, allocations: 15.98 kB / 345.4 MB, free: 7.922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.4197, allocations: 4 kB / 345.4 MB, free: 7.918 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003624/0.4201, allocations: 245.9 kB / 345.6 MB, free: 7.684 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-07/0.4201, allocations: 0 / 345.6 MB, free: 7.684 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003612/0.4205, allocations: 32 kB / 345.7 MB, free: 7.652 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.001158/0.4217, allocations: 398.2 kB / 346.1 MB, free: 7.316 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003762/0.4221, allocations: 91.77 kB / 346.1 MB, free: 7.227 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/0.4221, allocations: 4 kB / 346.2 MB, free: 7.223 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.4223, allocations: 35.86 kB / 346.2 MB, free: 7.188 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005182/0.4228, allocations: 56.56 kB / 346.2 MB, free: 7.129 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009232/0.4237, allocations: 447.3 kB / 346.7 MB, free: 6.652 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.4241, allocations: 0.7518 MB / 347.4 MB, free: 5.875 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.273e-05/0.4242, allocations: 19.44 kB / 347.4 MB, free: 5.859 MB / 282.7 MB Notification: Performance of SimCode: time 9.22e-07/0.4242, allocations: 0 / 347.4 MB, free: 5.859 MB / 282.7 MB Notification: Performance of Templates: time 0.007831/0.4321, allocations: 2.968 MB / 350.4 MB, free: 2.891 MB / 282.7 MB