Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadModel(Modelica_Synchronous): time 2.128/2.128, allocations: 218.4 MB / 231.1 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.74e-05/3.755e-05, allocations: 4 kB / 284.3 MB, free: 8.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 50.37 MB / 334.7 MB, free: 5.727 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3996/0.513, allocations: 78.46 MB / 413.2 MB, free: 15.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000395/0.5135, allocations: 73.83 kB / 413.2 MB, free: 15.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008094/0.5216, allocations: 1.41 MB / 414.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.34e-06/0.5216, allocations: 4 kB / 414.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.073e-05/0.5217, allocations: 4 kB / 414.7 MB, free: 14.51 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.0005981/0.5223, allocations: 360.8 kB / 415 MB, free: 14.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/0.5224, allocations: 12.03 kB / 415 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.367e-05/0.5225, allocations: 7.906 kB / 415 MB, free: 14.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.5228, allocations: 190.4 kB / 415.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.957e-05/0.5229, allocations: 0 / 415.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.059e-05/0.523, allocations: 15.2 kB / 415.2 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000662/0.5236, allocations: 172.7 kB / 415.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.5237, allocations: 0 / 415.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.573e-05/0.5237, allocations: 6.797 kB / 415.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.5238, allocations: 4 kB / 415.4 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.5239, allocations: 34.81 kB / 415.4 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008052/0.5248, allocations: 379.1 kB / 415.8 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003176/0.5251, allocations: 109.7 kB / 415.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/0.5254, allocations: 60.83 kB / 416 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.661e-05/0.5254, allocations: 0 / 416 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.653e-05/0.5255, allocations: 33.81 kB / 416 MB, free: 13.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 4.481e-06/0.5255, allocations: 4 kB / 416 MB, free: 13.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004877/0.526, allocations: 94.45 kB / 416.1 MB, free: 12.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.5262, allocations: 117.8 kB / 416.2 MB, free: 12.84 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.5264, allocations: 128.5 kB / 416.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.5265, allocations: 25.7 kB / 416.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.079e-05/0.5266, allocations: 94.69 kB / 416.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.726e-05/0.5267, allocations: 4 kB / 416.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.67e-06/0.5267, allocations: 3.5 kB / 416.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002137/0.5269, allocations: 325.7 kB / 416.8 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.498e-05/0.527, allocations: 11.31 kB / 416.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.5272, allocations: 83.39 kB / 416.9 MB, free: 12.14 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001092/0.5273, allocations: 26.98 kB / 416.9 MB, free: 12.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.628e-06/0.5273, allocations: 0 / 416.9 MB, free: 12.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004315/0.5278, allocations: 108.1 kB / 417 MB, free: 12.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.5278, allocations: 4 kB / 417 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.5279, allocations: 4 kB / 417 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.578e-05/0.5279, allocations: 4 kB / 417 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.24e-05/0.528, allocations: 4 kB / 417 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.967e-05/0.528, allocations: 7.938 kB / 417 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.5282, allocations: 7.109 kB / 417 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.482e-05/0.5283, allocations: 8.344 kB / 417.1 MB, free: 11.98 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,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.000153/0.5284, allocations: 124.1 kB / 417.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003547/0.5288, allocations: 79.84 kB / 417.3 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.306e-05/0.5289, allocations: 17 kB / 417.3 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.188e-06/0.529, allocations: 0 / 417.3 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/0.529, allocations: 8 kB / 417.3 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.901e-06/0.529, allocations: 0 / 417.3 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005549/0.5296, allocations: 183.8 kB / 417.5 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.012e-06/0.5296, allocations: 0 / 417.5 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.723e-05/0.5297, allocations: 8 kB / 417.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.441e-05/0.5297, allocations: 0 / 417.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.5298, allocations: 11.5 kB / 417.5 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.469e-06/0.5298, allocations: 3.984 kB / 417.5 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.357e-06/0.5298, allocations: 0 / 417.5 MB, free: 11.54 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 hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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 hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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.0007474/0.5306, allocations: 356.9 kB / 417.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.5308, allocations: 96.11 kB / 417.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.945e-05/0.5308, allocations: 4 kB / 417.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.5311, allocations: 3.5 kB / 417.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.383e-05/0.5312, allocations: 4 kB / 417.9 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.5312, allocations: 4 kB / 417.9 MB, free: 11.06 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001599/0.5314, allocations: 119.9 kB / 418.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.708e-06/0.5315, allocations: 0 / 418.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007617/0.5322, allocations: 11.38 kB / 418.1 MB, free: 10.95 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,hold.y,sample1.y,hold.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.0001935/0.5325, allocations: 99.23 kB / 418.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002969/0.5328, allocations: 66 kB / 418.2 MB, free: 10.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.933e-06/0.5328, allocations: 4.188 kB / 418.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.698e-05/0.5329, allocations: 4 kB / 418.2 MB, free: 10.78 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000692/0.5336, allocations: 57.28 kB / 418.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006222/0.5343, allocations: 136.2 kB / 418.4 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005373/0.5348, allocations: 0.7115 MB / 419.1 MB, free: 9.859 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.941e-05/0.5349, allocations: 16.53 kB / 419.2 MB, free: 9.844 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.571e-05/0.535, allocations: 11.44 kB / 419.2 MB, free: 9.832 MB / 346.7 MB Notification: Performance of SimCode: time 2.026e-06/0.535, allocations: 0 / 419.2 MB, free: 9.832 MB / 346.7 MB Notification: Performance of Templates: time 0.006079/0.5411, allocations: 0.6835 MB / 419.8 MB, free: 9.156 MB / 346.7 MB