Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.127/2.127, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.771e-05/3.782e-05, allocations: 4 kB / 292.2 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 50.41 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4757/0.5863, allocations: 77.33 MB / 420 MB, free: 476 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.5866, allocations: 71.95 kB / 420 MB, free: 436 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00558/0.5922, allocations: 1.447 MB / 421.5 MB, free: 15.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5923, allocations: 3.938 kB / 421.5 MB, free: 15.15 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.522e-05/0.5923, allocations: 8 kB / 421.5 MB, free: 15.14 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.0004441/0.5928, allocations: 356.9 kB / 421.9 MB, free: 14.76 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.5928, allocations: 8.031 kB / 421.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.113e-05/0.5929, allocations: 37.69 kB / 421.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.295e-05/0.593, allocations: 19.75 kB / 421.9 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.5932, allocations: 193.7 kB / 422.1 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.5933, allocations: 6.625 kB / 422.1 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.5933, allocations: 11.75 kB / 422.1 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004357/0.5937, allocations: 173.2 kB / 422.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.5938, allocations: 0 / 422.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.5938, allocations: 6.766 kB / 422.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.5938, allocations: 11.97 kB / 422.3 MB, free: 14.28 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001087/0.5939, allocations: 29.25 kB / 422.3 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004973/0.5944, allocations: 368.5 kB / 422.7 MB, free: 13.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.5947, allocations: 114.3 kB / 422.8 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.5948, allocations: 57.45 kB / 422.9 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.269e-05/0.5948, allocations: 3.953 kB / 422.9 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.5949, allocations: 38.5 kB / 422.9 MB, free: 13.64 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.254e-06/0.5949, allocations: 0 / 422.9 MB, free: 13.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003053/0.5952, allocations: 95.89 kB / 423 MB, free: 13.55 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.469e-05/0.5953, allocations: 114.8 kB / 423.1 MB, free: 13.42 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.5955, allocations: 134.1 kB / 423.2 MB, free: 13.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.5955, allocations: 25.7 kB / 423.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.097e-05/0.5956, allocations: 87.78 kB / 423.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.5956, allocations: 11.66 kB / 423.4 MB, free: 13.17 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.5956, allocations: 0 / 423.4 MB, free: 13.17 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.5957, allocations: 322.4 kB / 423.7 MB, free: 12.85 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.047e-05/0.5958, allocations: 15.75 kB / 423.7 MB, free: 12.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.608e-05/0.5959, allocations: 80.14 kB / 423.8 MB, free: 12.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.55e-05/0.596, allocations: 23.86 kB / 423.8 MB, free: 12.71 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.596, allocations: 0 / 423.8 MB, free: 12.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002225/0.5962, allocations: 107.3 kB / 423.9 MB, free: 12.61 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.5962, allocations: 7.953 kB / 423.9 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5963, allocations: 4 kB / 423.9 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.5963, allocations: 4 kB / 423.9 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.226e-05/0.5963, allocations: 7.938 kB / 423.9 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.5964, allocations: 4 kB / 423.9 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.873e-05/0.5965, allocations: 11.05 kB / 423.9 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.5965, allocations: 4.344 kB / 423.9 MB, free: 12.57 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,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,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 8.884e-05/0.5966, allocations: 119.3 kB / 424.1 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001926/0.5968, allocations: 79.91 kB / 424.1 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.525e-05/0.5969, allocations: 20.2 kB / 424.2 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.5969, allocations: 0 / 424.2 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.5969, allocations: 4 kB / 424.2 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.5969, allocations: 0 / 424.2 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.5972, allocations: 184 kB / 424.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.5972, allocations: 4 kB / 424.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.383e-05/0.5973, allocations: 7.438 kB / 424.4 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.5973, allocations: 0 / 424.4 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.5973, allocations: 4.188 kB / 424.4 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.5973, allocations: 3.953 kB / 424.4 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5973, allocations: 3.938 kB / 424.4 MB, free: 12.12 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.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.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.0004701/0.5978, allocations: 359.4 kB / 424.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.436e-05/0.5979, allocations: 103.8 kB / 424.8 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/0.598, allocations: 4 kB / 424.8 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.5981, allocations: 4 kB / 424.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.091e-05/0.5982, allocations: 7.938 kB / 424.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.5982, allocations: 8 kB / 424.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.666e-05/0.5983, allocations: 105.4 kB / 424.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.5983, allocations: 0 / 424.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004147/0.5987, allocations: 10 kB / 425 MB, free: 11.53 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 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.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.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.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.0006797/0.5994, allocations: 0.6621 MB / 425.6 MB, free: 10.86 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002093/0.5996, allocations: 68.67 kB / 425.7 MB, free: 10.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.5997, allocations: 4.188 kB / 425.7 MB, free: 10.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.785e-05/0.5997, allocations: 4 kB / 425.7 MB, free: 10.8 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.6002, allocations: 53.22 kB / 425.7 MB, free: 10.76 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006637/0.6008, allocations: 149.5 kB / 425.9 MB, free: 10.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.6012, allocations: 0.7004 MB / 426.6 MB, free: 9.887 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.029e-05/0.6012, allocations: 12.55 kB / 426.6 MB, free: 9.875 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.376e-05/0.6013, allocations: 17.75 kB / 426.6 MB, free: 9.863 MB / 346.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6013, allocations: 0 / 426.6 MB, free: 9.863 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02028/0.6216, allocations: 1.691 MB / 428.3 MB, free: 8.238 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003336/0.622, allocations: 163 kB / 428.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.35/2.972, allocations: 4 kB / 428.5 MB, free: 8.012 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat does not exist to compare? outputFormat=mat