Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadModel(Modelica_Synchronous): time 2.054/2.054, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.748e-05/3.748e-05, allocations: 7.984 kB / 284.3 MB, free: 8.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08616/0.08622, allocations: 50.36 MB / 334.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3464/0.4327, allocations: 78.64 MB / 413.3 MB, free: 15.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.433, allocations: 85.06 kB / 413.4 MB, free: 15.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006119/0.4391, allocations: 1.608 MB / 415 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.288e-06/0.4391, allocations: 0 / 415 MB, free: 14.13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.4392, allocations: 0 / 415 MB, free: 14.13 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.0004787/0.4397, allocations: 383.2 kB / 415.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.4397, allocations: 12.03 kB / 415.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.255e-05/0.4398, allocations: 11.81 kB / 415.4 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.4401, allocations: 207.8 kB / 415.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.4401, allocations: 11.45 kB / 415.6 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.4401, allocations: 7.375 kB / 415.6 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004385/0.4406, allocations: 198.3 kB / 415.8 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.4406, allocations: 4 kB / 415.8 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.4406, allocations: 3.812 kB / 415.8 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.398e-06/0.4406, allocations: 0 / 415.8 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.4408, allocations: 47.23 kB / 415.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005371/0.4413, allocations: 393 kB / 416.3 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.4416, allocations: 119.7 kB / 416.4 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.4417, allocations: 68.94 kB / 416.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.4417, allocations: 4 kB / 416.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.884e-05/0.4418, allocations: 38 kB / 416.5 MB, free: 12.58 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.555e-06/0.4418, allocations: 0 / 416.5 MB, free: 12.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003304/0.4421, allocations: 112.6 kB / 416.6 MB, free: 12.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/0.4422, allocations: 114.4 kB / 416.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.4424, allocations: 151.3 kB / 416.8 MB, free: 12.21 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.4425, allocations: 28.95 kB / 416.9 MB, free: 12.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.369e-05/0.4426, allocations: 157.1 kB / 417 MB, free: 12.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.4426, allocations: 19.81 kB / 417.1 MB, free: 12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.4426, allocations: 3.125 kB / 417.1 MB, free: 12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.4428, allocations: 317.9 kB / 417.4 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.422e-05/0.4428, allocations: 15.12 kB / 417.4 MB, free: 11.68 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.399e-05/0.4429, allocations: 83.88 kB / 417.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.756e-05/0.443, allocations: 34.36 kB / 417.5 MB, free: 11.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.248e-06/0.443, allocations: 0 / 417.5 MB, free: 11.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002257/0.4433, allocations: 99.64 kB / 417.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.4433, allocations: 12 kB / 417.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.4433, allocations: 4 kB / 417.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.4433, allocations: 4 kB / 417.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.4435, allocations: 23.98 kB / 417.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.4435, allocations: 7.938 kB / 417.6 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.981e-05/0.4436, allocations: 11.53 kB / 417.7 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.4436, allocations: 4 kB / 417.7 MB, free: 11.38 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,hold.u,hold.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.0001254/0.4438, allocations: 124.5 kB / 417.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002302/0.444, allocations: 103.8 kB / 417.9 MB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.678e-05/0.4441, allocations: 15.38 kB / 417.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.4441, allocations: 4 kB / 417.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.416e-06/0.4441, allocations: 0 / 417.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.748e-06/0.4441, allocations: 0 / 417.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003374/0.4445, allocations: 204.9 kB / 418.1 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.183e-06/0.4445, allocations: 4 kB / 418.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.4447, allocations: 27.92 kB / 418.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.913e-06/0.4447, allocations: 4 kB / 418.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.4447, allocations: 3.984 kB / 418.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.4447, allocations: 4 kB / 418.1 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4447, allocations: 0 / 418.1 MB, free: 10.88 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.) hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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] hold.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: hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y equations: hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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] hold.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.0005009/0.4452, allocations: 387.1 kB / 418.5 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.4454, allocations: 108.4 kB / 418.6 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.429e-05/0.4454, allocations: 4 kB / 418.6 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.4456, allocations: 7.5 kB / 418.6 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/0.4456, allocations: 11.92 kB / 418.6 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.4457, allocations: 4.094 kB / 418.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001164/0.4458, allocations: 122 kB / 418.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.4458, allocations: 0 / 418.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004018/0.4462, allocations: 19.83 kB / 418.8 MB, free: 10.23 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 (hold.y,sample1.u,sample1.y,hold.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.0001346/0.4464, allocations: 110.9 kB / 418.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001961/0.4466, allocations: 71.17 kB / 419 MB, free: 10.06 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.248e-06/0.4466, allocations: 0 / 419 MB, free: 10.06 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.683e-05/0.4466, allocations: 7.5 kB / 419 MB, free: 10.05 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.447, allocations: 61.25 kB / 419 MB, free: 10.01 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004598/0.4475, allocations: 205.4 kB / 419.2 MB, free: 9.797 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.4479, allocations: 0.7159 MB / 420 MB, free: 9.059 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.246e-05/0.448, allocations: 11.44 kB / 420 MB, free: 9.047 MB / 346.7 MB Notification: Performance of SimCode: time 1.555e-06/0.448, allocations: 4 kB / 420 MB, free: 9.043 MB / 346.7 MB Notification: Performance of Templates: time 0.003117/0.4511, allocations: 1.128 MB / 421.1 MB, free: 7.922 MB / 346.7 MB