Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.968/1.968, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.517e-05/4.527e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1339, allocations: 50.42 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4199/0.5538, allocations: 77.53 MB / 420.2 MB, free: 256 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.5542, allocations: 76.05 kB / 420.2 MB, free: 216 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006514/0.5607, allocations: 1.662 MB / 421.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.552e-06/0.5607, allocations: 0 / 421.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.5608, allocations: 4 kB / 421.9 MB, free: 14.75 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.0004959/0.5613, allocations: 384.1 kB / 422.3 MB, free: 14.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.5613, allocations: 12.03 kB / 422.3 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.287e-05/0.5614, allocations: 41.92 kB / 422.3 MB, free: 14.28 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/0.5614, allocations: 11.91 kB / 422.3 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.5617, allocations: 198.5 kB / 422.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.5617, allocations: 7.938 kB / 422.6 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.278e-05/0.5618, allocations: 8 kB / 422.6 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005066/0.5623, allocations: 194.8 kB / 422.7 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.5623, allocations: 3.953 kB / 422.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.5623, allocations: 4 kB / 422.8 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.5624, allocations: 4 kB / 422.8 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.5625, allocations: 43.42 kB / 422.8 MB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.5631, allocations: 384.7 kB / 423.2 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002303/0.5633, allocations: 127.7 kB / 423.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.5635, allocations: 73.94 kB / 423.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.5635, allocations: 4.125 kB / 423.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.5636, allocations: 38.56 kB / 423.4 MB, free: 13.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.414e-06/0.5636, allocations: 0 / 423.4 MB, free: 13.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003583/0.5639, allocations: 112.9 kB / 423.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.736e-05/0.564, allocations: 114.2 kB / 423.6 MB, free: 12.92 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001716/0.5642, allocations: 148.5 kB / 423.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.5642, allocations: 25.7 kB / 423.8 MB, free: 12.76 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.648e-05/0.5643, allocations: 162.4 kB / 424 MB, free: 12.6 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.83e-05/0.5644, allocations: 3.984 kB / 424 MB, free: 12.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-06/0.5644, allocations: 7.5 kB / 424 MB, free: 12.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.5645, allocations: 318.8 kB / 424.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.298e-05/0.5646, allocations: 11.94 kB / 424.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.901e-05/0.5647, allocations: 73.38 kB / 424.4 MB, free: 12.17 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.332e-05/0.5648, allocations: 35.61 kB / 424.4 MB, free: 12.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5648, allocations: 4 kB / 424.4 MB, free: 12.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002371/0.565, allocations: 113 kB / 424.5 MB, free: 12.03 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.5651, allocations: 11.94 kB / 424.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.443e-06/0.5651, allocations: 0 / 424.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.5651, allocations: 4 kB / 424.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.5653, allocations: 28.33 kB / 424.6 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/0.5653, allocations: 4 kB / 424.6 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.951e-05/0.5654, allocations: 7.938 kB / 424.6 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.5655, allocations: 12 kB / 424.6 MB, free: 11.96 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,hold1.u,hold1.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 9.855e-05/0.5656, allocations: 112.7 kB / 424.7 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002455/0.5658, allocations: 112.8 kB / 424.8 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.613e-05/0.5659, allocations: 20.3 kB / 424.8 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.5659, allocations: 4 kB / 424.8 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.5659, allocations: 4 kB / 424.8 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.5659, allocations: 0 / 424.8 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003211/0.5663, allocations: 192.8 kB / 425 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.5663, allocations: 0 / 425 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.5665, allocations: 23.98 kB / 425 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.5665, allocations: 0 / 425 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.5665, allocations: 7.953 kB / 425.1 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.5665, allocations: 0 / 425.1 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5666, allocations: 3.938 kB / 425.1 MB, free: 11.48 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.) hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.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] hold1.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: hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y equations: hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.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] hold1.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.0005448/0.5671, allocations: 404.3 kB / 425.5 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.5672, allocations: 104.8 kB / 425.6 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.5673, allocations: 3.984 kB / 425.6 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.5674, allocations: 11.94 kB / 425.6 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.762e-05/0.5675, allocations: 4 kB / 425.6 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.5675, allocations: 0 / 425.6 MB, free: 10.95 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001152/0.5676, allocations: 121.7 kB / 425.7 MB, free: 10.84 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5676, allocations: 0 / 425.7 MB, free: 10.84 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000412/0.5681, allocations: 19.88 kB / 425.7 MB, free: 10.82 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 (hold1.y,sample1.u,sample1.y,hold1.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.) hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.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] hold1.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: hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y equations: hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.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] hold1.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.0007186/0.5688, allocations: 0.7004 MB / 426.4 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002161/0.569, allocations: 70.67 kB / 426.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.569, allocations: 0.6875 kB / 426.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.74e-05/0.5691, allocations: 4.062 kB / 426.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004676/0.5696, allocations: 67.73 kB / 426.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007003/0.5703, allocations: 192.2 kB / 426.7 MB, free: 9.809 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.5706, allocations: 0.7241 MB / 427.5 MB, free: 9.062 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.685e-05/0.5707, allocations: 22.94 kB / 427.5 MB, free: 9.051 MB / 346.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5707, allocations: 0 / 427.5 MB, free: 9.051 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.46/3.031, allocations: 1.609 MB / 429.1 MB, free: 7.453 MB / 346.7 MB