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_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadModel(Modelica_Synchronous): time 2.118/2.118, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.936e-05/2.954e-05, allocations: 0 / 284.3 MB, free: 8.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08803/0.08808, allocations: 50.36 MB / 334.7 MB, free: 6.223 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3523/0.4405, allocations: 78.51 MB / 413.2 MB, free: 15.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.4408, allocations: 86.44 kB / 413.3 MB, free: 15.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004901/0.4457, allocations: 1.402 MB / 414.7 MB, free: 14.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.12e-06/0.4457, allocations: 3.984 kB / 414.7 MB, free: 14.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.576e-05/0.4458, allocations: 8 kB / 414.7 MB, free: 14.4 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.0004335/0.4462, allocations: 359.1 kB / 415 MB, free: 14.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.4463, allocations: 12.03 kB / 415 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.013e-05/0.4463, allocations: 7.906 kB / 415 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002406/0.4466, allocations: 193.6 kB / 415.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.4466, allocations: 3.25 kB / 415.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.511e-05/0.4466, allocations: 11.27 kB / 415.3 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.447, allocations: 174.1 kB / 415.4 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.13e-06/0.4471, allocations: 0 / 415.4 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.4471, allocations: 3 kB / 415.4 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.437e-06/0.4471, allocations: 4 kB / 415.4 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.632e-05/0.4472, allocations: 35.5 kB / 415.5 MB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005279/0.4478, allocations: 376.9 kB / 415.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001875/0.448, allocations: 100.5 kB / 415.9 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.4481, allocations: 63.25 kB / 416 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.4481, allocations: 12.11 kB / 416 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.4482, allocations: 34.25 kB / 416 MB, free: 12.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.547e-06/0.4482, allocations: 0 / 416 MB, free: 12.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002948/0.4485, allocations: 90.59 kB / 416.1 MB, free: 12.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.644e-05/0.4486, allocations: 114.3 kB / 416.2 MB, free: 12.74 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/0.4488, allocations: 132 kB / 416.4 MB, free: 12.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.4488, allocations: 29.39 kB / 416.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.252e-05/0.4489, allocations: 158.7 kB / 416.5 MB, free: 12.42 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.449, allocations: 7.188 kB / 416.6 MB, free: 12.42 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/0.449, allocations: 0 / 416.6 MB, free: 12.42 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.4491, allocations: 322.2 kB / 416.9 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.703e-05/0.4492, allocations: 11.44 kB / 416.9 MB, free: 12.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.264e-05/0.4493, allocations: 88.14 kB / 417 MB, free: 11.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.255e-05/0.4494, allocations: 26.83 kB / 417 MB, free: 11.95 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.223e-06/0.4494, allocations: 7.938 kB / 417 MB, free: 11.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002146/0.4496, allocations: 103.5 kB / 417.1 MB, free: 11.85 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.4496, allocations: 4 kB / 417.1 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.4497, allocations: 4 kB / 417.1 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.4497, allocations: 4 kB / 417.1 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.721e-05/0.4497, allocations: 7.062 kB / 417.1 MB, free: 11.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.4497, allocations: 7.984 kB / 417.1 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.487e-05/0.4499, allocations: 4 kB / 417.1 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.4499, allocations: 11.94 kB / 417.1 MB, free: 11.81 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.0001023/0.45, allocations: 128.6 kB / 417.3 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001951/0.4502, allocations: 81.97 kB / 417.3 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.251e-05/0.4503, allocations: 15 kB / 417.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.538e-06/0.4503, allocations: 4 kB / 417.4 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.082e-06/0.4503, allocations: 0 / 417.4 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4503, allocations: 0 / 417.4 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003228/0.4506, allocations: 190.2 kB / 417.6 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.814e-06/0.4507, allocations: 0 / 417.6 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.854e-05/0.4507, allocations: 0 / 417.6 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.367e-06/0.4507, allocations: 8 kB / 417.6 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.4507, allocations: 3.875 kB / 417.6 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.466e-06/0.4508, allocations: 3.984 kB / 417.6 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.4508, allocations: 7.938 kB / 417.6 MB, free: 11.36 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.00046/0.4512, allocations: 350.1 kB / 417.9 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.4514, allocations: 99.31 kB / 418 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.4514, allocations: 0 / 418 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.4515, allocations: 6.938 kB / 418 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.948e-05/0.4516, allocations: 0 / 418 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.4516, allocations: 4 kB / 418 MB, free: 10.89 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.734e-05/0.4517, allocations: 108.6 kB / 418.1 MB, free: 10.79 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.68e-07/0.4517, allocations: 0 / 418.1 MB, free: 10.79 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003963/0.4521, allocations: 11 kB / 418.1 MB, free: 10.78 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.0001288/0.4523, allocations: 110.2 kB / 418.3 MB, free: 10.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001786/0.4525, allocations: 56.97 kB / 418.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.064e-06/0.4525, allocations: 4.625 kB / 418.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.715e-05/0.4525, allocations: 8 kB / 418.3 MB, free: 10.61 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003961/0.4529, allocations: 56.97 kB / 418.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000409/0.4534, allocations: 169.6 kB / 418.5 MB, free: 10.39 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.4538, allocations: 0.7082 MB / 419.2 MB, free: 9.656 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.092e-05/0.4538, allocations: 15.44 kB / 419.3 MB, free: 9.641 MB / 346.7 MB Notification: Performance of SimCode: time 1.308e-06/0.4538, allocations: 128 / 419.3 MB, free: 9.641 MB / 346.7 MB Notification: Performance of Templates: time 0.002797/0.4567, allocations: 0.9608 MB / 420.2 MB, free: 8.688 MB / 346.7 MB