Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.158/2.158, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.077e-05/5.085e-05, allocations: 8 kB / 284.4 MB, free: 8.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 50.36 MB / 334.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4275/0.5435, allocations: 78.67 MB / 413.4 MB, free: 15.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.5438, allocations: 75.77 kB / 413.5 MB, free: 15.13 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006302/0.5502, allocations: 1.612 MB / 415.1 MB, free: 13.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.5502, allocations: 0 / 415.1 MB, free: 13.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.5502, allocations: 0 / 415.1 MB, free: 13.71 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.0005/0.5507, allocations: 389 kB / 415.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.5508, allocations: 12.03 kB / 415.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.335e-05/0.5509, allocations: 33.94 kB / 415.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.348e-05/0.5509, allocations: 15.81 kB / 415.6 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.5512, allocations: 206.1 kB / 415.8 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.5512, allocations: 7.25 kB / 415.8 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.5513, allocations: 4 kB / 415.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005104/0.5518, allocations: 195.5 kB / 416 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.5518, allocations: 0 / 416 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.5518, allocations: 0 / 416 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.5518, allocations: 4 kB / 416 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001409/0.552, allocations: 47.66 kB / 416 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005632/0.5526, allocations: 405 kB / 416.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002414/0.5528, allocations: 109.4 kB / 416.5 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.553, allocations: 74.56 kB / 416.6 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.553, allocations: 4 kB / 416.6 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.5531, allocations: 37.92 kB / 416.6 MB, free: 12.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.974e-06/0.5531, allocations: 3.938 kB / 416.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.000371/0.5535, allocations: 116.4 kB / 416.7 MB, free: 12.01 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.739e-05/0.5536, allocations: 118.2 kB / 416.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.5538, allocations: 141.4 kB / 417 MB, free: 11.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.5538, allocations: 29.7 kB / 417 MB, free: 11.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.481e-05/0.5539, allocations: 157.5 kB / 417.2 MB, free: 11.56 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.5539, allocations: 7.891 kB / 417.2 MB, free: 11.55 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.713e-06/0.554, allocations: 7.188 kB / 417.2 MB, free: 11.55 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.5541, allocations: 318.6 kB / 417.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.303e-05/0.5542, allocations: 11.12 kB / 417.5 MB, free: 11.22 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.774e-05/0.5543, allocations: 84.55 kB / 417.6 MB, free: 11.11 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.412e-05/0.5544, allocations: 27.36 kB / 417.6 MB, free: 11.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.5544, allocations: 7.938 kB / 417.6 MB, free: 11.08 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000231/0.5546, allocations: 104.7 kB / 417.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.5546, allocations: 8 kB / 417.7 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.5547, allocations: 4 kB / 417.8 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.5547, allocations: 4 kB / 417.8 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.5549, allocations: 23.8 kB / 417.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.5549, allocations: 7.938 kB / 417.8 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.555, allocations: 15.89 kB / 417.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.446e-05/0.5551, allocations: 4 kB / 417.8 MB, free: 10.92 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.0001043/0.5552, allocations: 121.5 kB / 417.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002402/0.5554, allocations: 104.7 kB / 418 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.177e-05/0.5555, allocations: 16 kB / 418 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.5555, allocations: 4 kB / 418 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.5555, allocations: 0 / 418 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.5556, allocations: 3.984 kB / 418 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003219/0.5559, allocations: 200 kB / 418.2 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.5559, allocations: 4.188 kB / 418.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002049/0.5561, allocations: 27.92 kB / 418.3 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.5561, allocations: 7.938 kB / 418.3 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.5562, allocations: 0 / 418.3 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.5562, allocations: 0 / 418.3 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.5562, allocations: 4 kB / 418.3 MB, free: 10.43 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.0005452/0.5567, allocations: 397.8 kB / 418.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.5569, allocations: 104.2 kB / 418.8 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.5569, allocations: 3.438 kB / 418.8 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.5571, allocations: 15.98 kB / 418.8 MB, free: 9.902 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.287e-05/0.5571, allocations: 3.938 kB / 418.8 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.5571, allocations: 4 kB / 418.8 MB, free: 9.895 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001216/0.5573, allocations: 126.5 kB / 418.9 MB, free: 9.781 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5573, allocations: 0 / 418.9 MB, free: 9.781 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004038/0.5577, allocations: 11.38 kB / 418.9 MB, free: 9.773 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.0007275/0.5584, allocations: 0.6941 MB / 419.6 MB, free: 9.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002131/0.5587, allocations: 69.11 kB / 419.7 MB, free: 9.016 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5587, allocations: 0 / 419.7 MB, free: 9.016 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.066e-05/0.5587, allocations: 11.38 kB / 419.7 MB, free: 9.008 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004737/0.5592, allocations: 61.27 kB / 419.8 MB, free: 8.961 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000708/0.5599, allocations: 210.9 kB / 420 MB, free: 8.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003402/0.5603, allocations: 0.7121 MB / 420.7 MB, free: 8.012 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.269e-05/0.5604, allocations: 31.92 kB / 420.7 MB, free: 7.992 MB / 346.7 MB Notification: Performance of SimCode: time 9.81e-07/0.5604, allocations: 0 / 420.7 MB, free: 7.992 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.418/2.979, allocations: 1.599 MB / 422.3 MB, free: 6.406 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2_res.mat does not exist to compare? outputFormat=mat