Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.301/2.301, allocations: 218.4 MB / 231.1 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.223e-05/5.246e-05, allocations: 7.938 kB / 284.4 MB, free: 8.094 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1157, allocations: 50.35 MB / 334.8 MB, free: 5.641 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5072/0.623, allocations: 78.6 MB / 413.4 MB, free: 15.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/0.6233, allocations: 75.52 kB / 413.5 MB, free: 15.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006741/0.6301, allocations: 1.615 MB / 415.1 MB, free: 13.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.6301, allocations: 0 / 415.1 MB, free: 13.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.847e-05/0.6302, allocations: 4 kB / 415.1 MB, free: 13.82 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.0005574/0.6307, allocations: 386.6 kB / 415.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.6308, allocations: 8.031 kB / 415.5 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.933e-05/0.6309, allocations: 44.8 kB / 415.5 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.612e-05/0.6309, allocations: 11.81 kB / 415.5 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.6312, allocations: 210 kB / 415.7 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.6313, allocations: 7.688 kB / 415.7 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.874e-05/0.6313, allocations: 4 kB / 415.7 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005424/0.6318, allocations: 195.3 kB / 415.9 MB, free: 12.92 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.6319, allocations: 4 kB / 415.9 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.6319, allocations: 0 / 415.9 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.6319, allocations: 0 / 415.9 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.6321, allocations: 45.42 kB / 416 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005945/0.6327, allocations: 401.9 kB / 416.4 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002388/0.6329, allocations: 121.5 kB / 416.5 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.6331, allocations: 76.94 kB / 416.6 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.6332, allocations: 0 / 416.6 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/0.6332, allocations: 34.56 kB / 416.6 MB, free: 12.22 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.225e-06/0.6332, allocations: 0 / 416.6 MB, free: 12.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003736/0.6336, allocations: 114.9 kB / 416.7 MB, free: 12.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.289e-05/0.6337, allocations: 118.3 kB / 416.8 MB, free: 11.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001983/0.6339, allocations: 148.4 kB / 417 MB, free: 11.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.634, allocations: 25.7 kB / 417 MB, free: 11.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.767e-05/0.634, allocations: 93.48 kB / 417.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.6341, allocations: 10.95 kB / 417.1 MB, free: 11.72 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-06/0.6341, allocations: 0 / 417.1 MB, free: 11.72 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.6343, allocations: 322.1 kB / 417.4 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.614e-05/0.6343, allocations: 15.36 kB / 417.4 MB, free: 11.39 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.6344, allocations: 88.2 kB / 417.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.86e-05/0.6345, allocations: 31.05 kB / 417.6 MB, free: 11.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.6346, allocations: 0 / 417.6 MB, free: 11.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002779/0.6349, allocations: 111.5 kB / 417.7 MB, free: 11.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.6349, allocations: 4 kB / 417.7 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.6349, allocations: 4 kB / 417.7 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.6349, allocations: 4 kB / 417.7 MB, free: 11.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001993/0.6351, allocations: 27.86 kB / 417.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.734e-05/0.6352, allocations: 7.938 kB / 417.7 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.892e-05/0.6353, allocations: 7.984 kB / 417.7 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.819e-05/0.6353, allocations: 8 kB / 417.7 MB, free: 11.09 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,integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],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.0001189/0.6354, allocations: 124.4 kB / 417.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002651/0.6357, allocations: 107 kB / 417.9 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.036e-05/0.6358, allocations: 22.67 kB / 418 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.6358, allocations: 3.984 kB / 418 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.6358, allocations: 0 / 418 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.6359, allocations: 4 kB / 418 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003625/0.6362, allocations: 195.1 kB / 418.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.6362, allocations: 0 / 418.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.6365, allocations: 31.92 kB / 418.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.6365, allocations: 0 / 418.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.6365, allocations: 4 kB / 418.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.6365, allocations: 0 / 418.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.6365, allocations: 0 / 418.2 MB, free: 10.59 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.) hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y equations: hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold.u = sum2.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.0005663/0.6371, allocations: 390.9 kB / 418.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.6372, allocations: 104.8 kB / 418.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.408e-05/0.6373, allocations: 3.375 kB / 418.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.6375, allocations: 11.98 kB / 418.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.671e-05/0.6375, allocations: 7.938 kB / 418.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.6375, allocations: 4 kB / 418.7 MB, free: 10.06 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001245/0.6377, allocations: 122.7 kB / 418.8 MB, free: 9.953 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6377, allocations: 0 / 418.8 MB, free: 9.953 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004035/0.6381, allocations: 15.38 kB / 418.8 MB, free: 9.941 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 (hold.y,sample1.u,sample1.y,hold.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.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.) hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y equations: hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold.u = sum2.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.0007187/0.6388, allocations: 0.7065 MB / 419.6 MB, free: 9.227 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002165/0.6391, allocations: 60.8 kB / 419.6 MB, free: 9.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6391, allocations: 0 / 419.6 MB, free: 9.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.352e-05/0.6391, allocations: 15.23 kB / 419.6 MB, free: 9.168 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004523/0.6396, allocations: 56.66 kB / 419.7 MB, free: 9.125 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007213/0.6403, allocations: 183.5 kB / 419.9 MB, free: 8.945 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/0.6407, allocations: 0.7158 MB / 420.6 MB, free: 8.207 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.166e-05/0.6408, allocations: 8.5 kB / 420.6 MB, free: 8.199 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.132e-05/0.6408, allocations: 29.92 kB / 420.6 MB, free: 8.18 MB / 346.7 MB Notification: Performance of SimCode: time 8.92e-07/0.6409, allocations: 0 / 420.6 MB, free: 8.18 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02391/0.6648, allocations: 1.94 MB / 422.6 MB, free: 6.297 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003884/0.6653, allocations: 179.7 kB / 422.7 MB, free: 6.066 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.361/3.026, allocations: 0 / 422.7 MB, free: 6.066 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2_res.mat does not exist to compare? outputFormat=mat