Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.5/2.5, allocations: 218.4 MB / 231.1 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.322e-05/3.333e-05, allocations: 0 / 284.4 MB, free: 8.094 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1183, allocations: 50.36 MB / 334.8 MB, free: 5.633 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4973/0.6157, allocations: 78.47 MB / 413.3 MB, free: 15.51 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.6161, allocations: 74.58 kB / 413.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005279/0.6214, allocations: 1.42 MB / 414.8 MB, free: 14.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.6214, allocations: 4 kB / 414.8 MB, free: 14.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.6214, allocations: 0 / 414.8 MB, free: 14.21 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.0004741/0.6219, allocations: 361.8 kB / 415.1 MB, free: 13.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.622, allocations: 15.97 kB / 415.1 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.46e-05/0.622, allocations: 34.12 kB / 415.2 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.988e-05/0.6221, allocations: 11.91 kB / 415.2 MB, free: 13.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002651/0.6224, allocations: 192.9 kB / 415.4 MB, free: 13.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.844e-05/0.6224, allocations: 7.953 kB / 415.4 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.6224, allocations: 7.438 kB / 415.4 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004534/0.6229, allocations: 189.5 kB / 415.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-06/0.6229, allocations: 0 / 415.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.623, allocations: 0 / 415.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.623, allocations: 0 / 415.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001125/0.6231, allocations: 34.12 kB / 415.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005759/0.6237, allocations: 382.5 kB / 416 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002077/0.6239, allocations: 104.6 kB / 416.1 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.6241, allocations: 59.56 kB / 416.1 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.6241, allocations: 3.938 kB / 416.1 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.6242, allocations: 37.81 kB / 416.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.204e-06/0.6242, allocations: 0 / 416.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003349/0.6245, allocations: 100.6 kB / 416.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.016e-05/0.6246, allocations: 113.9 kB / 416.4 MB, free: 12.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.6248, allocations: 129.4 kB / 416.5 MB, free: 12.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.6248, allocations: 25.7 kB / 416.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.516e-05/0.6249, allocations: 87.55 kB / 416.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.6249, allocations: 7.734 kB / 416.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.625, allocations: 0 / 416.6 MB, free: 12.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.6251, allocations: 324.1 kB / 416.9 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.113e-05/0.6252, allocations: 15.22 kB / 417 MB, free: 11.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.6253, allocations: 79.94 kB / 417 MB, free: 11.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.71e-05/0.6254, allocations: 23.16 kB / 417.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.6254, allocations: 3.938 kB / 417.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002388/0.6256, allocations: 106.6 kB / 417.2 MB, free: 11.67 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.6257, allocations: 11.98 kB / 417.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.6257, allocations: 0 / 417.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.6257, allocations: 4 kB / 417.2 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.012e-05/0.6258, allocations: 11.31 kB / 417.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.6258, allocations: 7.938 kB / 417.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.6259, allocations: 4.344 kB / 417.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.6259, allocations: 8 kB / 417.2 MB, free: 11.62 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.0001217/0.6261, allocations: 122.6 kB / 417.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002102/0.6263, allocations: 82.28 kB / 417.4 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.387e-05/0.6264, allocations: 14.36 kB / 417.4 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.6264, allocations: 4 kB / 417.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.6264, allocations: 0 / 417.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.6264, allocations: 0 / 417.4 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003448/0.6268, allocations: 189.4 kB / 417.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.6268, allocations: 4 kB / 417.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.632e-05/0.6268, allocations: 4 kB / 417.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.6268, allocations: 0 / 417.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.6269, allocations: 3.438 kB / 417.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.366e-06/0.6269, allocations: 7.938 kB / 417.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.6269, allocations: 0 / 417.6 MB, free: 11.18 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.0005137/0.6274, allocations: 350.9 kB / 418 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.6275, allocations: 103.3 kB / 418.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.467e-05/0.6276, allocations: 3.984 kB / 418.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.6277, allocations: 7.75 kB / 418.1 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.6278, allocations: 4 kB / 418.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.6278, allocations: 4 kB / 418.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00011/0.6279, allocations: 104.9 kB / 418.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.286e-06/0.628, allocations: 0 / 418.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000421/0.6284, allocations: 15 kB / 418.2 MB, free: 10.59 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 [/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 [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1765:3-1765:84:writable] Error: Internal error function createFMIModelDerivatives failed Notification: Performance of Backend phase and start with SimCode phase: time 0.000726/0.6291, allocations: 0.6605 MB / 418.9 MB, free: 9.922 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001989/0.6293, allocations: 54.06 kB / 418.9 MB, free: 9.879 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.6294, allocations: 4.062 kB / 418.9 MB, free: 9.875 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.905e-05/0.6294, allocations: 10.88 kB / 418.9 MB, free: 9.867 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.6298, allocations: 52.03 kB / 419 MB, free: 9.828 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006431/0.6305, allocations: 146.9 kB / 419.1 MB, free: 9.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003939/0.6309, allocations: 0.7115 MB / 419.8 MB, free: 8.945 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.683e-05/0.631, allocations: 8.562 kB / 419.9 MB, free: 8.938 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.448e-05/0.6311, allocations: 21.86 kB / 419.9 MB, free: 8.922 MB / 346.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6311, allocations: 0 / 419.9 MB, free: 8.922 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/0.6539, allocations: 1.707 MB / 421.6 MB, free: 7.27 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003338/0.6543, allocations: 179.7 kB / 421.8 MB, free: 7.039 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.315/2.969, allocations: 4 kB / 421.8 MB, free: 7.035 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2_res.mat does not exist to compare? outputFormat=mat