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.241/2.241, allocations: 218.4 MB / 234.2 MB, free: 352 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.931e-05/2.934e-05, allocations: 4.469 kB / 287.6 MB, free: 8.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1051, allocations: 50.38 MB / 338 MB, free: 10.58 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2): time 0.002443/0.1076, allocations: 1.301 MB / 339.3 MB, free: 9.262 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005348/0.1082, allocations: 159.4 kB / 339.4 MB, free: 9.105 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.272e-05/0.1083, allocations: 4 kB / 339.4 MB, free: 9.102 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.527e-05/0.1084, allocations: 7.922 kB / 339.4 MB, free: 9.094 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.1085, allocations: 15.94 kB / 339.5 MB, free: 9.078 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002899/0.1088, allocations: 35.95 kB / 339.5 MB, free: 9.043 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.573e-05/0.1089, allocations: 31.89 kB / 339.5 MB, free: 9.012 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.109, allocations: 24.11 kB / 339.5 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.567e-05/0.1091, allocations: 11.94 kB / 339.6 MB, free: 8.973 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.135e-05/0.1091, allocations: 23.91 kB / 339.6 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.597e-05/0.1092, allocations: 0 / 339.6 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.1092, allocations: 4 kB / 339.6 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.24e-05/0.1092, allocations: 11.94 kB / 339.6 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.759e-05/0.1093, allocations: 8 kB / 339.6 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.1094, allocations: 47.89 kB / 339.7 MB, free: 8.879 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.1094, allocations: 0 / 339.7 MB, free: 8.879 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1094, allocations: 0 / 339.7 MB, free: 8.879 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.1094, allocations: 0 / 339.7 MB, free: 8.879 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.0005132/0.11, allocations: 363.4 kB / 340 MB, free: 8.477 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.11, allocations: 8.031 kB / 340 MB, free: 8.469 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.25e-05/0.1101, allocations: 11.89 kB / 340 MB, free: 8.457 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002585/0.1103, allocations: 194.8 kB / 340.2 MB, free: 8.227 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.1104, allocations: 11.95 kB / 340.2 MB, free: 8.215 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.1104, allocations: 8 kB / 340.2 MB, free: 8.207 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004986/0.1109, allocations: 177.8 kB / 340.4 MB, free: 8.012 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1109, allocations: 4 kB / 340.4 MB, free: 8.008 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.111, allocations: 0 / 340.4 MB, free: 8.008 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.946e-05/0.111, allocations: 7.984 kB / 340.4 MB, free: 8 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.1112, allocations: 43.86 kB / 340.5 MB, free: 7.957 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005025/0.1117, allocations: 377.8 kB / 340.8 MB, free: 7.531 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.112, allocations: 111.6 kB / 340.9 MB, free: 7.395 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.112, allocations: 12.25 kB / 341 MB, free: 7.383 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.1121, allocations: 30.56 kB / 341 MB, free: 7.344 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 2.264e-06/0.1121, allocations: 4 kB / 341 MB, free: 7.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004852/0.1126, allocations: 133.4 kB / 341.1 MB, free: 7.203 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.368e-05/0.1127, allocations: 110.8 kB / 341.2 MB, free: 7.07 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.1128, allocations: 130.6 kB / 341.4 MB, free: 6.938 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.1129, allocations: 25.7 kB / 341.4 MB, free: 6.906 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.874e-05/0.113, allocations: 155.1 kB / 341.5 MB, free: 6.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.842e-05/0.113, allocations: 19.89 kB / 341.5 MB, free: 6.73 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-06/0.113, allocations: 0 / 341.5 MB, free: 6.73 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1132, allocations: 314.8 kB / 341.9 MB, free: 6.414 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.169e-05/0.1133, allocations: 19.98 kB / 341.9 MB, free: 6.395 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001264/0.1134, allocations: 85.38 kB / 342 MB, free: 6.277 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.1135, allocations: 28 kB / 342 MB, free: 6.25 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1135, allocations: 0 / 342 MB, free: 6.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002967/0.1138, allocations: 113.4 kB / 342.1 MB, free: 6.133 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.1139, allocations: 7.125 kB / 342.1 MB, free: 6.129 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.1139, allocations: 4.344 kB / 342.1 MB, free: 6.125 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.1139, allocations: 8 kB / 342.1 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.217e-05/0.114, allocations: 7.938 kB / 342.1 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.114, allocations: 4 kB / 342.1 MB, free: 6.105 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.807e-05/0.1141, allocations: 11.91 kB / 342.1 MB, free: 6.094 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.1141, allocations: 4 kB / 342.1 MB, free: 6.09 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 (step.y,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.0001449/0.1143, allocations: 133.7 kB / 342.3 MB, free: 5.949 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002109/0.1145, allocations: 89.84 kB / 342.4 MB, free: 5.855 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.902e-05/0.1146, allocations: 16.72 kB / 342.4 MB, free: 5.836 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.1146, allocations: 7.938 kB / 342.4 MB, free: 5.828 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.1146, allocations: 4 kB / 342.4 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.1146, allocations: 3.984 kB / 342.4 MB, free: 5.82 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003163/0.1149, allocations: 181.6 kB / 342.6 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.1149, allocations: 0 / 342.6 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.741e-05/0.115, allocations: 11.92 kB / 342.6 MB, free: 5.582 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.115, allocations: 0 / 342.6 MB, free: 5.582 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.115, allocations: 8 kB / 342.6 MB, free: 5.574 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.115, allocations: 0 / 342.6 MB, free: 5.574 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.115, allocations: 0 / 342.6 MB, free: 5.574 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.) 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: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.0005714/0.1156, allocations: 367.8 kB / 342.9 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.1158, allocations: 100.8 kB / 343 MB, free: 5.066 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.1158, allocations: 7.984 kB / 343.1 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001358/0.116, allocations: 4 kB / 343.1 MB, free: 5.055 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.166e-05/0.116, allocations: 4 kB / 343.1 MB, free: 5.051 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.116, allocations: 0 / 343.1 MB, free: 5.051 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001114/0.1162, allocations: 107.2 kB / 343.2 MB, free: 4.945 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.314e-06/0.1162, allocations: 0 / 343.2 MB, free: 4.945 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003689/0.1165, allocations: 19.94 kB / 343.2 MB, free: 4.926 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 (step.y,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.0001447/0.1167, allocations: 103.2 kB / 343.3 MB, free: 4.816 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002775/0.117, allocations: 67.84 kB / 343.4 MB, free: 4.75 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.117, allocations: 0 / 343.4 MB, free: 4.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.988e-05/0.1171, allocations: 16.69 kB / 343.4 MB, free: 4.734 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004154/0.1175, allocations: 59.97 kB / 343.4 MB, free: 4.676 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005576/0.1181, allocations: 245 kB / 343.7 MB, free: 4.402 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.1185, allocations: 0.7083 MB / 344.4 MB, free: 3.668 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.9e-05/0.1185, allocations: 11.44 kB / 344.4 MB, free: 3.656 MB / 282.7 MB Notification: Performance of SimCode: time 1.323e-06/0.1185, allocations: 3.938 kB / 344.4 MB, free: 3.652 MB / 282.7 MB Notification: Performance of Templates: time 0.003421/0.122, allocations: 0.976 MB / 345.4 MB, free: 2.676 MB / 282.7 MB