Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToTrigger.y|sample.y|triggeredSampler.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadModel(Modelica_Synchronous): time 2.313/2.313, allocations: 218.4 MB / 234.2 MB, free: 4.633 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.893e-05/3.865e-05, allocations: 7.984 kB / 287.6 MB, free: 15.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3282, allocations: 50.36 MB / 338 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.002519/0.3308, allocations: 1.333 MB / 339.3 MB, free: 14.51 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.332, allocations: 496 kB / 339.8 MB, free: 14.02 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.805e-05/0.3321, allocations: 4 kB / 339.8 MB, free: 14.02 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.408e-05/0.3322, allocations: 7.922 kB / 339.8 MB, free: 14.01 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001305/0.3323, allocations: 11.98 kB / 339.8 MB, free: 14 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003507/0.3327, allocations: 47.81 kB / 339.9 MB, free: 13.95 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.3328, allocations: 35.89 kB / 339.9 MB, free: 13.91 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.614e-05/0.3329, allocations: 11.98 kB / 339.9 MB, free: 13.9 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.505e-05/0.333, allocations: 19.92 kB / 339.9 MB, free: 13.88 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.477e-05/0.3331, allocations: 19.92 kB / 339.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.009e-05/0.3331, allocations: 8 kB / 339.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.566e-05/0.3332, allocations: 3.938 kB / 340 MB, free: 13.85 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.513e-05/0.3332, allocations: 19.92 kB / 340 MB, free: 13.83 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.577e-05/0.3333, allocations: 4 kB / 340 MB, free: 13.83 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001114/0.3334, allocations: 51.89 kB / 340 MB, free: 13.78 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3334, allocations: 0 / 340 MB, free: 13.78 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3334, allocations: 3.938 kB / 340 MB, free: 13.77 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.3334, allocations: 0 / 340 MB, free: 13.77 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005713/0.334, allocations: 373 kB / 340.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.3341, allocations: 8.031 kB / 340.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.597e-05/0.3341, allocations: 7.906 kB / 340.4 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.3344, allocations: 205.9 kB / 340.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.3344, allocations: 4 kB / 340.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.465e-05/0.3345, allocations: 8 kB / 340.6 MB, free: 13.1 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000424/0.3349, allocations: 137.6 kB / 340.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.3349, allocations: 0 / 340.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.335, allocations: 4 kB / 340.8 MB, free: 12.94 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.335, allocations: 4 kB / 340.8 MB, free: 12.94 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001778/0.3352, allocations: 27.98 kB / 340.8 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006218/0.3358, allocations: 317.5 kB / 341.1 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.3362, allocations: 154.3 kB / 341.3 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.3362, allocations: 8 kB / 341.3 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.3364, allocations: 63.48 kB / 341.3 MB, free: 12.28 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 2.806e-06/0.3364, allocations: 0 / 341.3 MB, free: 12.28 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004767/0.3369, allocations: 121.5 kB / 341.4 MB, free: 12.15 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.449e-05/0.337, allocations: 85.11 kB / 341.5 MB, free: 12.05 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.3372, allocations: 136.7 kB / 341.7 MB, free: 11.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.3372, allocations: 29.7 kB / 341.7 MB, free: 11.88 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.398e-05/0.3373, allocations: 162.6 kB / 341.8 MB, free: 11.71 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.209e-05/0.3374, allocations: 11.81 kB / 341.9 MB, free: 11.7 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.742e-06/0.3374, allocations: 4 kB / 341.9 MB, free: 11.7 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3375, allocations: 318.8 kB / 342.2 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.3377, allocations: 31.86 kB / 342.2 MB, free: 11.35 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.3378, allocations: 61.14 kB / 342.3 MB, free: 11.27 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.338, allocations: 28.25 kB / 342.3 MB, free: 11.24 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.338, allocations: 0 / 342.3 MB, free: 11.24 MB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003728/0.3384, allocations: 121.4 kB / 342.4 MB, free: 11.12 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.3384, allocations: 8 kB / 342.4 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3384, allocations: 0 / 342.4 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.3384, allocations: 4.156 kB / 342.4 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.3386, allocations: 19.92 kB / 342.4 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.3386, allocations: 7.953 kB / 342.4 MB, free: 11.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.579e-05/0.3387, allocations: 4 kB / 342.5 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.3388, allocations: 7.938 kB / 342.5 MB, free: 11.07 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: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,triggeredSampler.trigger,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001589/0.3389, allocations: 133.6 kB / 342.6 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.3391, allocations: 49.55 kB / 342.6 MB, free: 10.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.724e-05/0.3391, allocations: 20.3 kB / 342.7 MB, free: 10.85 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.3391, allocations: 4 kB / 342.7 MB, free: 10.85 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3392, allocations: 4 kB / 342.7 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.3392, allocations: 3.953 kB / 342.7 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005702/0.3398, allocations: 338.5 kB / 343 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.3398, allocations: 4 kB / 343 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.3399, allocations: 15.92 kB / 343 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.3399, allocations: 0 / 343 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.34, allocations: 4 kB / 343 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.286e-06/0.34, allocations: 7.953 kB / 343 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.34, allocations: 0 / 343 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003601/0.3403, allocations: 221.8 kB / 343.2 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.324e-05/0.3405, allocations: 97 kB / 343.3 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.319e-05/0.3405, allocations: 7.953 kB / 343.4 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.3406, allocations: 8 kB / 343.4 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.3407, allocations: 3.984 kB / 343.4 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.3407, allocations: 4 kB / 343.4 MB, free: 10.04 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001114/0.3408, allocations: 110 kB / 343.5 MB, free: 9.938 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.3408, allocations: 3.938 kB / 343.5 MB, free: 9.934 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003192/0.3412, allocations: 16 kB / 343.5 MB, free: 9.918 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: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001365/0.3413, allocations: 99.25 kB / 343.6 MB, free: 9.809 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000313/0.3416, allocations: 71.97 kB / 343.7 MB, free: 9.738 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3417, allocations: 0 / 343.7 MB, free: 9.738 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.3418, allocations: 23.98 kB / 343.7 MB, free: 9.715 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.3421, allocations: 31.88 kB / 343.7 MB, free: 9.684 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006199/0.3428, allocations: 260 kB / 344 MB, free: 9.395 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.3431, allocations: 0.7005 MB / 344.7 MB, free: 8.668 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.273e-05/0.3432, allocations: 19.38 kB / 344.7 MB, free: 8.652 MB / 282.7 MB Notification: Performance of SimCode: time 1.162e-06/0.3432, allocations: 0 / 344.7 MB, free: 8.652 MB / 282.7 MB Notification: Performance of Templates: time 0.0035/0.3467, allocations: 1.014 MB / 345.7 MB, free: 7.637 MB / 282.7 MB