Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.182/2.182, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.337e-05/3.342e-05, allocations: 3.797 kB / 292.2 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 50.4 MB / 342.6 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4309/0.541, allocations: 77.45 MB / 420.1 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.5413, allocations: 75.02 kB / 420.2 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006742/0.5481, allocations: 1.662 MB / 421.8 MB, free: 15.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5481, allocations: 0 / 421.8 MB, free: 15.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.5481, allocations: 4 kB / 421.8 MB, free: 15.2 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.0005586/0.5487, allocations: 387.6 kB / 422.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.5488, allocations: 12.03 kB / 422.2 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.533e-05/0.5488, allocations: 40.98 kB / 422.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.501e-05/0.5489, allocations: 11.91 kB / 422.3 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002972/0.5492, allocations: 209.7 kB / 422.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.5492, allocations: 7.375 kB / 422.5 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.5493, allocations: 4 kB / 422.5 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005525/0.5498, allocations: 198.9 kB / 422.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.5499, allocations: 3.953 kB / 422.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.5499, allocations: 0 / 422.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.5499, allocations: 4 kB / 422.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.55, allocations: 45.61 kB / 422.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006154/0.5507, allocations: 385 kB / 423.1 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.5509, allocations: 127.1 kB / 423.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.5511, allocations: 70.5 kB / 423.3 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.5512, allocations: 7.938 kB / 423.3 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.5512, allocations: 37.69 kB / 423.4 MB, free: 13.6 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.394e-06/0.5512, allocations: 0 / 423.4 MB, free: 13.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003811/0.5516, allocations: 113.9 kB / 423.5 MB, free: 13.5 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.351e-05/0.5517, allocations: 110.4 kB / 423.6 MB, free: 13.37 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001948/0.5519, allocations: 146.7 kB / 423.7 MB, free: 13.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.552, allocations: 29.58 kB / 423.7 MB, free: 13.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.327e-05/0.552, allocations: 92.17 kB / 423.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/0.5521, allocations: 11.92 kB / 423.8 MB, free: 13.1 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.5521, allocations: 3.812 kB / 423.8 MB, free: 13.1 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.5523, allocations: 318.7 kB / 424.2 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.525e-05/0.5523, allocations: 11.81 kB / 424.2 MB, free: 12.78 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.5524, allocations: 77.86 kB / 424.2 MB, free: 12.67 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.949e-05/0.5525, allocations: 35.73 kB / 424.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.5525, allocations: 0 / 424.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002647/0.5528, allocations: 108.6 kB / 424.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.5528, allocations: 11.94 kB / 424.4 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.5529, allocations: 4 kB / 424.4 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.5529, allocations: 7.938 kB / 424.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002172/0.5531, allocations: 19.98 kB / 424.4 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.5532, allocations: 4 kB / 424.4 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.972e-05/0.5533, allocations: 15.89 kB / 424.4 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.5533, allocations: 7.562 kB / 424.5 MB, free: 12.48 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.0001263/0.5534, allocations: 120.5 kB / 424.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002844/0.5537, allocations: 102.5 kB / 424.7 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.411e-05/0.5538, allocations: 14.88 kB / 424.7 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.5538, allocations: 7.984 kB / 424.7 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5538, allocations: 0 / 424.7 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.5538, allocations: 192 / 424.7 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003695/0.5542, allocations: 199.5 kB / 424.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.5542, allocations: 7.938 kB / 424.9 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002223/0.5545, allocations: 23.98 kB / 424.9 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.5545, allocations: 4 kB / 424.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.5545, allocations: 7.516 kB / 424.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.5545, allocations: 4 kB / 424.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5546, allocations: 0 / 424.9 MB, free: 11.98 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.000598/0.5552, allocations: 396.1 kB / 425.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.5553, allocations: 112.5 kB / 425.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/0.5553, allocations: 7.688 kB / 425.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001816/0.5555, allocations: 11.98 kB / 425.5 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.654e-05/0.5556, allocations: 4 kB / 425.5 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.5556, allocations: 4 kB / 425.5 MB, free: 11.44 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001333/0.5557, allocations: 119.6 kB / 425.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5558, allocations: 0 / 425.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004135/0.5562, allocations: 8 kB / 425.6 MB, free: 11.33 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.000808/0.557, allocations: 0.706 MB / 426.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002296/0.5572, allocations: 71.55 kB / 426.4 MB, free: 10.56 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.5573, allocations: 4 kB / 426.4 MB, free: 10.56 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.853e-05/0.5573, allocations: 7.984 kB / 426.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000513/0.5578, allocations: 56.16 kB / 426.4 MB, free: 10.51 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007148/0.5586, allocations: 174.6 kB / 426.6 MB, free: 10.34 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.559, allocations: 0.7199 MB / 427.3 MB, free: 9.594 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.238e-05/0.559, allocations: 4.562 kB / 427.3 MB, free: 9.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.381e-05/0.5591, allocations: 28.8 kB / 427.4 MB, free: 9.574 MB / 346.7 MB Notification: Performance of SimCode: time 4.238e-06/0.5591, allocations: 0 / 427.4 MB, free: 9.574 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.5853, allocations: 1.931 MB / 429.3 MB, free: 7.715 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003264/0.5857, allocations: 170.9 kB / 429.5 MB, free: 7.484 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.437/3.023, allocations: 0 / 429.5 MB, free: 7.484 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat does not exist to compare? outputFormat=mat