Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.332e-05/3.372e-05, allocations: 6.812 kB / 292.7 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0938/0.09385, allocations: 50.41 MB / 343.1 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.389/0.4829, allocations: 77.3 MB / 420.4 MB, free: 0.875 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.4832, allocations: 77.83 kB / 420.5 MB, free: 0.832 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005145/0.4884, allocations: 1.451 MB / 421.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.796e-06/0.4884, allocations: 3.938 kB / 421.9 MB, free: 15.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.614e-05/0.4885, allocations: 4 kB / 421.9 MB, free: 15.54 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.0004364/0.4889, allocations: 360.4 kB / 422.3 MB, free: 15.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.489, allocations: 12.03 kB / 422.3 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.8e-05/0.489, allocations: 11.86 kB / 422.3 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.4893, allocations: 189.9 kB / 422.5 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.4893, allocations: 3.438 kB / 422.5 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/0.4893, allocations: 8 kB / 422.5 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.4898, allocations: 187 kB / 422.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.084e-06/0.4898, allocations: 0 / 422.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.4898, allocations: 3.25 kB / 422.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.83e-06/0.4898, allocations: 7.953 kB / 422.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.76e-05/0.4899, allocations: 30.81 kB / 422.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.4905, allocations: 367.6 kB / 423.1 MB, free: 14.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001905/0.4907, allocations: 107.3 kB / 423.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.4908, allocations: 59.27 kB / 423.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.4908, allocations: 4 kB / 423.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.4909, allocations: 42.5 kB / 423.3 MB, free: 14.09 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.632e-06/0.4909, allocations: 0 / 423.3 MB, free: 14.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003204/0.4912, allocations: 97.03 kB / 423.4 MB, free: 14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.365e-05/0.4913, allocations: 110.4 kB / 423.5 MB, free: 13.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001578/0.4915, allocations: 138.4 kB / 423.6 MB, free: 13.74 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.4916, allocations: 29.14 kB / 423.7 MB, free: 13.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.945e-05/0.4916, allocations: 83.73 kB / 423.7 MB, free: 13.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.4917, allocations: 15.33 kB / 423.7 MB, free: 13.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.632e-06/0.4917, allocations: 0 / 423.7 MB, free: 13.61 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.4918, allocations: 322.1 kB / 424.1 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.649e-05/0.4919, allocations: 11.44 kB / 424.1 MB, free: 13.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.31e-05/0.492, allocations: 80.2 kB / 424.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.081e-05/0.4921, allocations: 27.55 kB / 424.2 MB, free: 13.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.127e-06/0.4921, allocations: 0 / 424.2 MB, free: 13.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002199/0.4923, allocations: 109.5 kB / 424.3 MB, free: 13.05 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.4923, allocations: 4 kB / 424.3 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.4924, allocations: 7.953 kB / 424.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.4924, allocations: 4 kB / 424.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.235e-05/0.4924, allocations: 11.92 kB / 424.3 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.4925, allocations: 4 kB / 424.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.962e-05/0.4926, allocations: 4 kB / 424.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.4926, allocations: 7.375 kB / 424.3 MB, free: 13.02 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,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,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 9.926e-05/0.4927, allocations: 116.1 kB / 424.4 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.4929, allocations: 77.97 kB / 424.5 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.622e-05/0.493, allocations: 15.31 kB / 424.5 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.335e-06/0.493, allocations: 3.953 kB / 424.5 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.195e-06/0.493, allocations: 4 kB / 424.5 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.978e-06/0.493, allocations: 3.984 kB / 424.5 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000323/0.4933, allocations: 178 kB / 424.7 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.325e-06/0.4934, allocations: 4 kB / 424.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.467e-05/0.4934, allocations: 11.92 kB / 424.7 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.4934, allocations: 0 / 424.7 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.4934, allocations: 11.25 kB / 424.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.742e-06/0.4935, allocations: 0 / 424.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.617e-06/0.4935, allocations: 4.141 kB / 424.8 MB, free: 12.57 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.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.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.0004575/0.4939, allocations: 364.4 kB / 425.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.301e-05/0.494, allocations: 92.12 kB / 425.2 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.4941, allocations: 7.953 kB / 425.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.4942, allocations: 3.125 kB / 425.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.4943, allocations: 7.984 kB / 425.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.4943, allocations: 4 kB / 425.2 MB, free: 12.08 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001323/0.4945, allocations: 105.6 kB / 425.3 MB, free: 11.99 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.263e-06/0.4945, allocations: 4 kB / 425.3 MB, free: 11.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007917/0.4953, allocations: 8 kB / 425.3 MB, free: 11.98 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 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.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.0001858/0.4955, allocations: 107.1 kB / 425.4 MB, free: 11.87 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002705/0.4958, allocations: 58.88 kB / 425.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.415e-06/0.4958, allocations: 0 / 425.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.354e-05/0.4959, allocations: 8.5 kB / 425.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006558/0.4966, allocations: 57.64 kB / 425.6 MB, free: 11.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004938/0.4971, allocations: 134 kB / 425.7 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.4975, allocations: 0.7082 MB / 426.4 MB, free: 10.9 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.157e-05/0.4976, allocations: 8.375 kB / 426.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.645e-05/0.4976, allocations: 19.38 kB / 426.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of SimCode: time 1.85e-06/0.4976, allocations: 0 / 426.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of Templates: time 0.003558/0.5012, allocations: 0.6814 MB / 427.1 MB, free: 10.21 MB / 346.7 MB