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 2.225/2.225, allocations: 224.7 MB / 241.1 MB, free: 1.648 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.538e-05/2.536e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1152, allocations: 50.42 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002447/0.1177, allocations: 1.308 MB / 346.3 MB, free: 7.609 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000563/0.1183, allocations: 175.4 kB / 346.5 MB, free: 7.438 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.866e-05/0.1184, allocations: 4 kB / 346.5 MB, free: 7.434 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.241e-05/0.1185, allocations: 11.92 kB / 346.5 MB, free: 7.422 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.1187, allocations: 11.92 kB / 346.5 MB, free: 7.41 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.119, allocations: 35.95 kB / 346.5 MB, free: 7.375 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001282/0.1191, allocations: 35.89 kB / 346.6 MB, free: 7.34 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.1193, allocations: 32.11 kB / 346.6 MB, free: 7.305 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.597e-05/0.1193, allocations: 11.94 kB / 346.6 MB, free: 7.293 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.509e-05/0.1194, allocations: 27.84 kB / 346.6 MB, free: 7.266 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.247e-05/0.1195, allocations: 4 kB / 346.6 MB, free: 7.262 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.71e-05/0.1195, allocations: 0 / 346.6 MB, free: 7.262 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.411e-05/0.1195, allocations: 23.86 kB / 346.7 MB, free: 7.238 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.814e-05/0.1196, allocations: 8 kB / 346.7 MB, free: 7.23 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.1197, allocations: 55.89 kB / 346.7 MB, free: 7.176 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.614e-06/0.1197, allocations: 4 kB / 346.7 MB, free: 7.172 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1197, allocations: 0 / 346.7 MB, free: 7.172 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.1198, allocations: 0 / 346.7 MB, free: 7.172 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006133/0.1204, allocations: 379.4 kB / 347.1 MB, free: 6.754 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.1204, allocations: 8.031 kB / 347.1 MB, free: 6.746 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.922e-05/0.1205, allocations: 15.86 kB / 347.1 MB, free: 6.73 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/0.1208, allocations: 198.8 kB / 347.3 MB, free: 6.496 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.1208, allocations: 11.94 kB / 347.3 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.361e-05/0.1209, allocations: 12 kB / 347.3 MB, free: 6.473 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000606/0.1215, allocations: 204.6 kB / 347.5 MB, free: 6.254 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1215, allocations: 3.984 kB / 347.5 MB, free: 6.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.1215, allocations: 7.953 kB / 347.5 MB, free: 6.242 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.1216, allocations: 4 kB / 347.5 MB, free: 6.238 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.1218, allocations: 59.91 kB / 347.6 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005908/0.1224, allocations: 385.8 kB / 348 MB, free: 5.746 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002996/0.1227, allocations: 127.6 kB / 348.1 MB, free: 5.594 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.1228, allocations: 4.312 kB / 348.1 MB, free: 5.59 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.1228, allocations: 42.45 kB / 348.2 MB, free: 5.539 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 2.865e-06/0.1228, allocations: 0 / 348.2 MB, free: 5.539 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006516/0.1235, allocations: 169.4 kB / 348.3 MB, free: 5.367 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.007e-05/0.1236, allocations: 110.8 kB / 348.4 MB, free: 5.234 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001987/0.1238, allocations: 151.2 kB / 348.6 MB, free: 5.082 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.1238, allocations: 25.7 kB / 348.6 MB, free: 5.051 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.124, allocations: 158.8 kB / 348.8 MB, free: 4.891 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/0.124, allocations: 8.359 kB / 348.8 MB, free: 4.883 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/0.124, allocations: 0 / 348.8 MB, free: 4.883 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1241, allocations: 318.8 kB / 349.1 MB, free: 4.562 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.96e-05/0.1243, allocations: 23.92 kB / 349.1 MB, free: 4.539 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001523/0.1244, allocations: 93.31 kB / 349.2 MB, free: 4.414 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001196/0.1246, allocations: 31.98 kB / 349.2 MB, free: 4.383 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1246, allocations: 0 / 349.2 MB, free: 4.383 MB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003452/0.1249, allocations: 129.3 kB / 349.3 MB, free: 4.25 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.125, allocations: 8 kB / 349.4 MB, free: 4.242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.125, allocations: 7.953 kB / 349.4 MB, free: 4.234 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.125, allocations: 4 kB / 349.4 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.1252, allocations: 27.92 kB / 349.4 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.1253, allocations: 4 kB / 349.4 MB, free: 4.199 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.822e-05/0.1254, allocations: 12.33 kB / 349.4 MB, free: 4.188 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.1254, allocations: 8 kB / 349.4 MB, free: 4.18 MB / 282.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.0001723/0.1256, allocations: 133.8 kB / 349.5 MB, free: 4.039 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002767/0.1259, allocations: 105.4 kB / 349.7 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.057e-05/0.1259, allocations: 20.7 kB / 349.7 MB, free: 3.91 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.126, allocations: 7.953 kB / 349.7 MB, free: 3.902 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.126, allocations: 0 / 349.7 MB, free: 3.902 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.126, allocations: 0 / 349.7 MB, free: 3.902 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003292/0.1263, allocations: 193.6 kB / 349.9 MB, free: 3.664 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.1263, allocations: 4 kB / 349.9 MB, free: 3.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002056/0.1266, allocations: 27.92 kB / 349.9 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.1266, allocations: 3.984 kB / 349.9 MB, free: 3.629 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.1266, allocations: 4 kB / 349.9 MB, free: 3.625 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.1266, allocations: 4 kB / 349.9 MB, free: 3.621 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.1266, allocations: 3.953 kB / 349.9 MB, free: 3.617 MB / 282.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.) sum1.y sum2.u[2] sum2.y hold1.u hold1.y sample2.y sum1.u[2] sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: sum1.y sum2.u[2] sum2.y hold1.u hold1.y sample2.y sum1.u[2] equations: sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.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:7888:5-7888: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.0006962/0.1273, allocations: 403.7 kB / 350.3 MB, free: 3.191 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.1275, allocations: 108.9 kB / 350.4 MB, free: 3.066 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.1275, allocations: 11.95 kB / 350.4 MB, free: 3.055 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.1277, allocations: 4 kB / 350.4 MB, free: 3.051 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.578e-05/0.1277, allocations: 0 / 350.4 MB, free: 3.051 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.1278, allocations: 4 kB / 350.4 MB, free: 3.047 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001401/0.1279, allocations: 125.5 kB / 350.6 MB, free: 2.926 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1279, allocations: 0 / 350.6 MB, free: 2.926 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00038/0.1283, allocations: 16 kB / 350.6 MB, free: 2.91 MB / 282.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 (sample1.u,hold1.y,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.0001577/0.1285, allocations: 106.1 kB / 350.7 MB, free: 2.797 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003463/0.1288, allocations: 91.77 kB / 350.8 MB, free: 2.707 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1289, allocations: 0.6875 kB / 350.8 MB, free: 2.707 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.286e-05/0.1289, allocations: 15.94 kB / 350.8 MB, free: 2.691 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004783/0.1294, allocations: 64 kB / 350.8 MB, free: 2.629 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006505/0.1301, allocations: 288.7 kB / 351.1 MB, free: 2.312 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/0.1305, allocations: 0.716 MB / 351.8 MB, free: 1.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.96e-05/0.1305, allocations: 11.44 kB / 351.9 MB, free: 1.559 MB / 282.7 MB Notification: Performance of SimCode: time 1.162e-06/0.1305, allocations: 0 / 351.9 MB, free: 1.559 MB / 282.7 MB Notification: Performance of Templates: time 0.003767/0.1343, allocations: 1.145 MB / 353 MB, free: 420 kB / 282.7 MB