Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Boundaries.Tests.TestExternalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.023/1.023, allocations: 177.1 MB / 203.8 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1053/0.1053, allocations: 17.38 MB / 277.6 MB, free: 11.54 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Chemical.Boundaries.Tests.TestExternalGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Chemical_Chemical.Boundaries.Tests.TestExternalGas") translateModel(Chemical.Boundaries.Tests.TestExternalGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Chemical_Chemical.Boundaries.Tests.TestExternalGas") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 300.6 MB, free: 1.68 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.292e-05/2.446e-05, allocations: 2.312 kB / 300.6 MB, free: 1.676 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Interfaces.mo:1564:5-1564:64:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Interfaces.mo:1564:5-1564:64:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1343:7-1343:76:writable] Warning: An inner declaration for outer component dropOfCommons could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1343:7-1343:76:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"dropOfCommons\" component but an inner \"dropOfCommons\" component is not defined. Use Chemical.DropOfCommons in your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Boundaries.Tests.TestExternalGas): time 0.04828/0.0483, allocations: 56.69 MB / 357.3 MB, free: 11.68 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.3457/0.394, allocations: 141.4 MB / 498.7 MB, free: 24.25 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006788/0.4007, allocations: 93.28 kB / 498.8 MB, free: 24.22 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005885/0.4066, allocations: 2.077 MB / 0.4892 GB, free: 23.54 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01032/0.417, allocations: 2.572 MB / 0.4917 GB, free: 22.7 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005416/0.4224, allocations: 1.735 MB / 0.4934 GB, free: 22.19 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.4327, allocations: 7.255 MB / 0.5004 GB, free: 18.33 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003027/0.4357, allocations: 1.846 MB / 0.5022 GB, free: 17.22 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007907/0.4436, allocations: 4.331 MB / 0.5065 GB, free: 14.51 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01009/0.4537, allocations: 2.396 MB / 0.5088 GB, free: 13.19 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.007789/0.4615, allocations: 0.7518 MB / 0.5096 GB, free: 13.19 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01752/0.479, allocations: 1.711 MB / 0.5112 GB, free: 12.85 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002202/0.4812, allocations: 2.329 MB / 0.5135 GB, free: 11.23 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01747/0.4987, allocations: 2.635 MB / 0.5161 GB, free: 9.801 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01774/0.5164, allocations: 7.864 MB / 0.5238 GB, free: 4.957 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.5164, allocations: 0 / 0.5238 GB, free: 4.957 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5164, allocations: 3 kB / 0.5238 GB, free: 4.957 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003563/0.5168, allocations: 0 / 0.5238 GB, free: 4.957 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2356 * Number of variables: 2356 Notification: Performance of Generate backend data structure: time 0.008175/0.5249, allocations: 8.486 MB / 0.532 GB, free: 14.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.525, allocations: 8.031 kB / 0.532 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003865/0.5288, allocations: 3.146 MB / 0.5351 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00365/0.5325, allocations: 2.343 MB / 0.5374 GB, free: 9.457 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000812/0.5333, allocations: 1.304 MB / 0.5387 GB, free: 8.082 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005726/0.5339, allocations: 0.7348 MB / 0.5394 GB, free: 7.367 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01058/0.5444, allocations: 9.201 MB / 0.5484 GB, free: 14.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.5446, allocations: 12.06 kB / 0.5484 GB, free: 14.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003317/0.5449, allocations: 316.5 kB / 0.5487 GB, free: 14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008365/0.5457, allocations: 1.215 MB / 0.5499 GB, free: 12.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009957/0.5557, allocations: 9.837 MB / 0.5595 GB, free: 2.863 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05265/0.6083, allocations: 35.23 MB / 0.5939 GB, free: 15.92 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006476/0.6148, allocations: 1.785 MB / 0.5956 GB, free: 14.13 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002709/0.6175, allocations: 0.6852 MB / 0.5963 GB, free: 13.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001345/0.6189, allocations: 0.6811 MB / 0.597 GB, free: 12.78 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.19e-05/0.6189, allocations: 66.14 kB / 0.597 GB, free: 12.71 MB / 490.7 MB Notification: Performance of pre-optimization done (n=245): time 5.551e-06/0.6189, allocations: 0 / 0.597 GB, free: 12.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=324): time 0.09567/0.7146, allocations: 20.83 MB / 0.6174 GB, free: 7.887 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005896/0.7205, allocations: 3.977 MB / 0.6213 GB, free: 3.707 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002405/0.7229, allocations: 2.41 MB / 0.6236 GB, free: 1.793 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001165/0.7241, allocations: 77.7 kB / 0.6237 GB, free: 1.711 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.2626/0.9866, allocations: 3.307 MB / 0.6269 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002104/0.9887, allocations: 1.14 MB / 0.628 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003336/0.9921, allocations: 0.9575 MB / 0.629 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 3.573e-05/0.9921, allocations: 308.1 kB / 0.6293 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004169/0.9963, allocations: 1.543 MB / 0.6308 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004552/1.001, allocations: 2.299 MB / 0.633 GB, free: 99.63 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/1.012, allocations: 5.906 MB / 0.6388 GB, free: 98.71 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-05/1.012, allocations: 8.906 kB / 0.6388 GB, free: 98.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=442) (initialization): time 0.0122/1.024, allocations: 4.951 MB / 0.6436 GB, free: 98.46 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.429e-05/1.024, allocations: 17.69 kB / 0.6436 GB, free: 98.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.628e-05/1.024, allocations: 21.5 kB / 0.6437 GB, free: 98.46 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01254/1.036, allocations: 3.994 MB / 0.6476 GB, free: 98.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02415/1.061, allocations: 4.256 MB / 0.6517 GB, free: 98.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008513/1.069, allocations: 16.89 MB / 0.6682 GB, free: 83.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004646/1.074, allocations: 138.8 kB / 0.6683 GB, free: 83.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/1.075, allocations: 0.9083 MB / 0.6692 GB, free: 83.46 MB / 0.4948 GB Warning: Assuming fixed start value for the following 8 variables: boundaryFore1.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryFore2.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryRear1.fore.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryRear4.fore.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryFore3.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryRear3.fore.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryRear2.fore.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real boundaryFore.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (402): * Single equations (assignments): 383 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,24), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.003342/1.078, allocations: 356.2 kB / 0.6696 GB, free: 83.31 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001561/1.08, allocations: 334.4 kB / 0.6699 GB, free: 83.31 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01175/1.092, allocations: 6.946 MB / 0.6767 GB, free: 82.69 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004314/1.096, allocations: 2.305 MB / 0.6789 GB, free: 82.55 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.951e-05/1.096, allocations: 4.375 kB / 0.6789 GB, free: 82.55 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.898e-05/1.096, allocations: 14.41 kB / 0.6789 GB, free: 82.55 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01772/1.114, allocations: 12.84 MB / 0.6915 GB, free: 78.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-05/1.114, allocations: 16 kB / 0.6915 GB, free: 78.65 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01345/1.127, allocations: 2.626 MB / 0.6941 GB, free: 76.15 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01254/1.14, allocations: 3.669 MB / 0.6976 GB, free: 72.56 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006598/1.14, allocations: 133.2 kB / 0.6978 GB, free: 72.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00927/1.15, allocations: 20.81 MB / 0.7181 GB, free: 50.52 MB / 0.4948 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006433/1.15, allocations: 0.638 MB / 0.7187 GB, free: 49.88 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007843/1.158, allocations: 4.367 MB / 0.723 GB, free: 45.11 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/1.159, allocations: 420.2 kB / 0.7234 GB, free: 44.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006583/1.16, allocations: 96.56 kB / 0.7235 GB, free: 44.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/1.161, allocations: 76.7 kB / 0.7235 GB, free: 44.54 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006649/1.162, allocations: 361.4 kB / 0.7239 GB, free: 44.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002622/1.162, allocations: 276.5 kB / 0.7242 GB, free: 43.94 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001657/1.164, allocations: 1.949 MB / 0.7261 GB, free: 42.13 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4e-08/1.164, allocations: 0.625 kB / 0.7261 GB, free: 42.13 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005851/1.17, allocations: 1.984 MB / 0.728 GB, free: 40.14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 80 * Number of states: 10 ($STATESET1.x[2],$STATESET1.x[1],boundaryFore.rear.n_flow,boundaryRear2.fore.n_flow,boundaryRear3.fore.n_flow,boundaryFore3.rear.n_flow,boundaryRear4.fore.n_flow,boundaryRear1.fore.n_flow,boundaryFore2.rear.n_flow,boundaryFore1.rear.n_flow) * Number of discrete variables: 7 ($cse47,$cse43,$cse39,$cse35,$cse27,$cse19,$cse11) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (273): * Single equations (assignments): 256 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,28), (5,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00103/1.171, allocations: 0.4955 MB / 0.7285 GB, free: 39.76 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01288/1.183, allocations: 5.149 MB / 0.7335 GB, free: 34.68 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 0.0001053/1.184, allocations: 41.81 kB / 0.7335 GB, free: 34.64 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007831/1.191, allocations: 3.161 MB / 0.7366 GB, free: 31.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003643/1.195, allocations: 1.029 MB / 0.7376 GB, free: 30.54 MB / 0.4948 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4069:9-4069:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:791:5-791:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.089798373170197]