Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.049/2.049, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.249e-05/3.26e-05, allocations: 0 / 292.7 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1142, allocations: 50.41 MB / 343.2 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4625/0.5767, allocations: 77.48 MB / 420.6 MB, free: 320 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003399/0.5771, allocations: 74.58 kB / 420.7 MB, free: 276 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008195/0.5853, allocations: 1.669 MB / 422.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.5854, allocations: 0 / 422.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.5854, allocations: 3.375 kB / 422.4 MB, free: 14.8 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.0006416/0.5861, allocations: 383.8 kB / 422.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.5861, allocations: 8.031 kB / 422.8 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.787e-05/0.5862, allocations: 42.48 kB / 422.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.114e-05/0.5863, allocations: 11.91 kB / 422.8 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003605/0.5867, allocations: 202.8 kB / 423 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.5867, allocations: 7.5 kB / 423 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.029e-05/0.5867, allocations: 7.375 kB / 423 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006644/0.5874, allocations: 195.5 kB / 423.2 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.5874, allocations: 3.953 kB / 423.2 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.5875, allocations: 4 kB / 423.2 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.413e-06/0.5875, allocations: 0 / 423.2 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.5877, allocations: 45.3 kB / 423.3 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007367/0.5884, allocations: 390.2 kB / 423.7 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.5888, allocations: 124.3 kB / 423.8 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.589, allocations: 68.25 kB / 423.8 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/0.5891, allocations: 7.562 kB / 423.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.5891, allocations: 34.56 kB / 423.9 MB, free: 13.21 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.284e-06/0.5891, allocations: 4 kB / 423.9 MB, free: 13.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003819/0.5895, allocations: 116.6 kB / 424 MB, free: 13.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.69e-05/0.5896, allocations: 109.6 kB / 424.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001912/0.5898, allocations: 152.5 kB / 424.3 MB, free: 12.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.5899, allocations: 28.83 kB / 424.3 MB, free: 12.81 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.991e-05/0.5899, allocations: 94.8 kB / 424.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.883e-05/0.59, allocations: 6.984 kB / 424.4 MB, free: 12.71 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.55e-06/0.59, allocations: 0 / 424.4 MB, free: 12.71 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.5902, allocations: 325.2 kB / 424.7 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.5e-05/0.5902, allocations: 11.12 kB / 424.7 MB, free: 12.39 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001032/0.5903, allocations: 82.95 kB / 424.8 MB, free: 12.28 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.049e-05/0.5904, allocations: 30.55 kB / 424.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.5905, allocations: 0 / 424.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002427/0.5907, allocations: 110.7 kB / 424.9 MB, free: 12.15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.5907, allocations: 8.281 kB / 424.9 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.5908, allocations: 11.98 kB / 425 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.5908, allocations: 4 kB / 425 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001977/0.591, allocations: 23.25 kB / 425 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.591, allocations: 11.97 kB / 425 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.673e-05/0.5911, allocations: 7.906 kB / 425 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.5912, allocations: 8 kB / 425 MB, free: 12.08 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 0.0001117/0.5913, allocations: 119.2 kB / 425.1 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002522/0.5915, allocations: 108.7 kB / 425.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.338e-05/0.5916, allocations: 22.73 kB / 425.3 MB, free: 11.85 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.5916, allocations: 0 / 425.3 MB, free: 11.85 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.5917, allocations: 0 / 425.3 MB, free: 11.85 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.5917, allocations: 4 kB / 425.3 MB, free: 11.85 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003572/0.592, allocations: 193.1 kB / 425.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.5921, allocations: 0 / 425.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002054/0.5923, allocations: 27.36 kB / 425.5 MB, free: 11.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.737e-06/0.5923, allocations: 3.984 kB / 425.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.5923, allocations: 7.953 kB / 425.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.5923, allocations: 4 kB / 425.5 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.5923, allocations: 3.938 kB / 425.5 MB, free: 11.58 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.0005622/0.5929, allocations: 386.9 kB / 425.9 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.593, allocations: 108.7 kB / 426 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.5931, allocations: 4 kB / 426 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/0.5933, allocations: 14.42 kB / 426 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.458e-05/0.5933, allocations: 0 / 426 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.5933, allocations: 4 kB / 426 MB, free: 11.05 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000124/0.5935, allocations: 123.1 kB / 426.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.11e-07/0.5935, allocations: 0 / 426.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00042/0.5939, allocations: 15.5 kB / 426.1 MB, free: 10.94 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.0007807/0.5947, allocations: 0.6965 MB / 426.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002247/0.595, allocations: 76.67 kB / 426.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.595, allocations: 0 / 426.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.776e-05/0.595, allocations: 7.562 kB / 426.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004578/0.5955, allocations: 54.02 kB / 427 MB, free: 10.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006966/0.5962, allocations: 175.5 kB / 427.1 MB, free: 9.953 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.5966, allocations: 0.7162 MB / 427.9 MB, free: 9.211 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.143e-05/0.5966, allocations: 12.48 kB / 427.9 MB, free: 9.199 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.737e-05/0.5967, allocations: 23.81 kB / 427.9 MB, free: 9.188 MB / 346.7 MB Notification: Performance of SimCode: time 8.31e-07/0.5967, allocations: 0 / 427.9 MB, free: 9.188 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02496/0.6217, allocations: 1.945 MB / 429.8 MB, free: 7.312 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003283/0.6221, allocations: 170.8 kB / 430 MB, free: 7.082 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.46/3.082, allocations: 0 / 430 MB, free: 7.082 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat does not exist to compare? outputFormat=mat