Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.139/2.139, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.365e-05/4.375e-05, allocations: 4 kB / 284.4 MB, free: 8.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1109, allocations: 50.36 MB / 334.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4702/0.5812, allocations: 78.5 MB / 413.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003476/0.5816, allocations: 78.56 kB / 413.4 MB, free: 15.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006606/0.5882, allocations: 1.405 MB / 414.8 MB, free: 14.42 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5883, allocations: 4 kB / 414.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.5883, allocations: 4 kB / 414.8 MB, free: 14.41 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.0005733/0.5889, allocations: 361.9 kB / 415.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/0.589, allocations: 8.031 kB / 415.1 MB, free: 14.01 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.676e-05/0.589, allocations: 42.44 kB / 415.2 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.125e-05/0.5891, allocations: 7.906 kB / 415.2 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.5894, allocations: 192.9 kB / 415.4 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.5895, allocations: 11.39 kB / 415.4 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.396e-05/0.5895, allocations: 4 kB / 415.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005878/0.5901, allocations: 187.6 kB / 415.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.5902, allocations: 0 / 415.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.5902, allocations: 0 / 415.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.5902, allocations: 4 kB / 415.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001513/0.5904, allocations: 39.62 kB / 415.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007398/0.5911, allocations: 373.2 kB / 416 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003019/0.5915, allocations: 108.1 kB / 416.1 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/0.5917, allocations: 61.94 kB / 416.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.5917, allocations: 4 kB / 416.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.5918, allocations: 30.56 kB / 416.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.685e-06/0.5918, allocations: 0 / 416.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004241/0.5922, allocations: 97.09 kB / 416.3 MB, free: 12.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.5923, allocations: 114.6 kB / 416.4 MB, free: 12.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002165/0.5926, allocations: 134.7 kB / 416.5 MB, free: 12.56 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.5926, allocations: 25.7 kB / 416.5 MB, free: 12.53 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.666e-05/0.5927, allocations: 154.8 kB / 416.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/0.5928, allocations: 4 kB / 416.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-06/0.5928, allocations: 3.938 kB / 416.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.593, allocations: 318.8 kB / 417 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.515e-05/0.5931, allocations: 15.69 kB / 417 MB, free: 12.04 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.5932, allocations: 77.14 kB / 417.1 MB, free: 11.94 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.354e-05/0.5933, allocations: 27.67 kB / 417.1 MB, free: 11.92 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.5933, allocations: 96 / 417.1 MB, free: 11.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003159/0.5937, allocations: 113.1 kB / 417.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.5937, allocations: 4 kB / 417.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.5937, allocations: 4 kB / 417.2 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.5938, allocations: 4 kB / 417.2 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.855e-05/0.5938, allocations: 4 kB / 417.2 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.067e-05/0.5939, allocations: 15.91 kB / 417.3 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.594, allocations: 4.344 kB / 417.3 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.5941, allocations: 11.88 kB / 417.3 MB, free: 11.77 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.0001313/0.5942, allocations: 116.7 kB / 417.4 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/0.5945, allocations: 80.91 kB / 417.5 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.614e-05/0.5946, allocations: 20 kB / 417.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.5946, allocations: 4 kB / 417.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5946, allocations: 0 / 417.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.5946, allocations: 3.984 kB / 417.5 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000463/0.5951, allocations: 181.1 kB / 417.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.5952, allocations: 8 kB / 417.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.248e-05/0.5952, allocations: 0 / 417.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.5952, allocations: 11.92 kB / 417.7 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.5953, allocations: 3.875 kB / 417.7 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.5953, allocations: 0 / 417.7 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.5953, allocations: 4 kB / 417.7 MB, free: 11.32 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.0006454/0.5959, allocations: 354.1 kB / 418 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.5961, allocations: 92.81 kB / 418.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.24e-05/0.5961, allocations: 7.625 kB / 418.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.5964, allocations: 0 / 418.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.24e-05/0.5964, allocations: 8 kB / 418.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.5965, allocations: 11.92 kB / 418.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00013/0.5966, allocations: 99.16 kB / 418.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5966, allocations: 0 / 418.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000641/0.5973, allocations: 11.88 kB / 418.3 MB, free: 10.74 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.0008952/0.5982, allocations: 0.6655 MB / 418.9 MB, free: 10.06 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002495/0.5985, allocations: 55.81 kB / 419 MB, free: 10.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5985, allocations: 4.062 kB / 419 MB, free: 10.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.812e-05/0.5985, allocations: 11.75 kB / 419 MB, free: 10.01 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007621/0.5993, allocations: 55.31 kB / 419.1 MB, free: 9.965 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009351/0.6003, allocations: 176.5 kB / 419.2 MB, free: 9.785 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.6008, allocations: 0.7082 MB / 419.9 MB, free: 9.051 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.6009, allocations: 23.44 kB / 420 MB, free: 9.035 MB / 346.7 MB Notification: Performance of SimCode: time 1.312e-06/0.6009, allocations: 0 / 420 MB, free: 9.035 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.295/2.896, allocations: 1.335 MB / 421.3 MB, free: 7.711 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2_res.mat does not exist to compare? outputFormat=mat