Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadModel(Modelica): time 1.874/1.874, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.351e-05/2.355e-05, allocations: 4 kB / 292.1 MB, free: 8.852 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0892/0.08924, allocations: 50.41 MB / 342.5 MB, free: 6.418 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3497/0.439, allocations: 77.52 MB / 420.1 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.4393, allocations: 78.89 kB / 420.1 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006124/0.4454, allocations: 1.656 MB / 421.8 MB, free: 15.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.999e-06/0.4455, allocations: 0 / 421.8 MB, free: 15.1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.4455, allocations: 0 / 421.8 MB, free: 15.1 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004823/0.446, allocations: 380.9 kB / 422.2 MB, free: 14.69 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.446, allocations: 12.03 kB / 422.2 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.364e-05/0.4461, allocations: 15.81 kB / 422.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.4464, allocations: 199.3 kB / 422.4 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.4464, allocations: 4 kB / 422.4 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.4464, allocations: 7.312 kB / 422.4 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004362/0.4469, allocations: 199.5 kB / 422.6 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.975e-06/0.4469, allocations: 4 kB / 422.6 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.4469, allocations: 7.141 kB / 422.6 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.086e-06/0.4469, allocations: 0 / 422.6 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001127/0.4471, allocations: 45.17 kB / 422.7 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005524/0.4476, allocations: 390.4 kB / 423 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000217/0.4479, allocations: 121.6 kB / 423.2 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.448, allocations: 70.77 kB / 423.2 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.4481, allocations: 7.984 kB / 423.2 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.4481, allocations: 45.86 kB / 423.3 MB, free: 13.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.465e-06/0.4481, allocations: 0 / 423.3 MB, free: 13.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003241/0.4485, allocations: 106.5 kB / 423.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.844e-05/0.4486, allocations: 114 kB / 423.5 MB, free: 13.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.4488, allocations: 152.7 kB / 423.6 MB, free: 13.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.4488, allocations: 28.95 kB / 423.7 MB, free: 13.15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.415e-05/0.4489, allocations: 154 kB / 423.8 MB, free: 13 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.4489, allocations: 11.23 kB / 423.8 MB, free: 12.99 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-06/0.4489, allocations: 3.25 kB / 423.8 MB, free: 12.99 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.4491, allocations: 310.8 kB / 424.1 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.657e-05/0.4492, allocations: 15.06 kB / 424.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.4493, allocations: 91.44 kB / 424.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.626e-05/0.4494, allocations: 27.11 kB / 424.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.323e-06/0.4494, allocations: 0 / 424.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002297/0.4496, allocations: 104.8 kB / 424.4 MB, free: 12.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.4497, allocations: 11.95 kB / 424.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.4497, allocations: 7.938 kB / 424.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.4497, allocations: 4 kB / 424.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.4499, allocations: 27.92 kB / 424.4 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.4499, allocations: 4 kB / 424.4 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.621e-05/0.45, allocations: 6.25 kB / 424.4 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.45, allocations: 4 kB / 424.4 MB, free: 12.37 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],sample2.y,hold1.u,hold1.y,sample1.y) * 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.0001176/0.4501, allocations: 128.2 kB / 424.6 MB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002361/0.4504, allocations: 96.92 kB / 424.7 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.404e-05/0.4505, allocations: 26.88 kB / 424.7 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.4505, allocations: 7.938 kB / 424.7 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.737e-06/0.4505, allocations: 0 / 424.7 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.76e-06/0.4505, allocations: 3.984 kB / 424.7 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003355/0.4509, allocations: 188.8 kB / 424.9 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.261e-06/0.4509, allocations: 3.984 kB / 424.9 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.451, allocations: 23.98 kB / 424.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.205e-06/0.4511, allocations: 4 kB / 424.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.4511, allocations: 3.562 kB / 424.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.4511, allocations: 8.5 kB / 424.9 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.002e-06/0.4511, allocations: 0 / 424.9 MB, free: 11.87 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y equations: hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7735:5-7735:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000519/0.4517, allocations: 393.8 kB / 425.3 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.4518, allocations: 107.8 kB / 425.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.4518, allocations: 4 kB / 425.4 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.452, allocations: 11.12 kB / 425.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.452, allocations: 7.984 kB / 425.4 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.4521, allocations: 4 kB / 425.4 MB, free: 11.33 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000119/0.4522, allocations: 119.2 kB / 425.6 MB, free: 11.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.63e-07/0.4522, allocations: 0 / 425.6 MB, free: 11.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004006/0.4526, allocations: 15.69 kB / 425.6 MB, free: 11.22 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: 12 (hold1.y,sample1.u,sample1.y,hold1.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001406/0.4528, allocations: 103.2 kB / 425.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001968/0.453, allocations: 74.23 kB / 425.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.647e-06/0.453, allocations: 0 / 425.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.171e-05/0.453, allocations: 11.92 kB / 425.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.4535, allocations: 57.56 kB / 425.8 MB, free: 11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004575/0.4539, allocations: 198 kB / 426 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.4544, allocations: 0.7205 MB / 426.7 MB, free: 10.05 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.983e-05/0.4544, allocations: 11.44 kB / 426.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of SimCode: time 1.419e-06/0.4545, allocations: 0 / 426.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of Templates: time 0.003094/0.4576, allocations: 1.143 MB / 427.9 MB, free: 8.906 MB / 346.7 MB