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.0009528/0.0009528, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.0009464/0.0009464, allocations: 169 kB / 24.06 MB, free: 456 kB / 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 0.9863/0.9863, allocations: 177.1 MB / 204.5 MB, free: 5.492 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.1079/0.1079, allocations: 17.38 MB / 278.4 MB, free: 11.48 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.353e-06/1.353e-06, allocations: 0 / 354.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.147e-05/2.282e-05, allocations: 2.312 kB / 354.7 MB, free: 10.73 MB / 330.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.04603/0.04605, allocations: 50.84 MB / 405.5 MB, free: 7.898 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3493/0.3953, allocations: 138.9 MB / 0.5316 GB, free: 24.02 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005441/0.4008, allocations: 93.5 kB / 0.5317 GB, free: 23.99 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005124/0.4059, allocations: 1.983 MB / 0.5337 GB, free: 23.07 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00695/0.4128, allocations: 2.572 MB / 0.5362 GB, free: 21.27 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003982/0.4168, allocations: 1.724 MB / 0.5379 GB, free: 20.24 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.009115/0.4259, allocations: 7.261 MB / 0.5449 GB, free: 16.04 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00259/0.4285, allocations: 1.755 MB / 0.5467 GB, free: 14.96 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005766/0.4343, allocations: 4.32 MB / 0.5509 GB, free: 11.81 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002853/0.4372, allocations: 2.392 MB / 0.5532 GB, free: 9.414 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001046/0.4382, allocations: 0.7539 MB / 0.554 GB, free: 8.66 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00328/0.4415, allocations: 1.682 MB / 0.5556 GB, free: 6.977 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008994/0.4424, allocations: 2.332 MB / 0.5579 GB, free: 4.637 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002398/0.4448, allocations: 2.63 MB / 0.5604 GB, free: 2 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008143/0.4529, allocations: 7.873 MB / 0.5681 GB, free: 10.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.4529, allocations: 0 / 0.5681 GB, free: 10.1 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4529, allocations: 0 / 0.5681 GB, free: 10.1 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001432/0.4531, allocations: 0 / 0.5681 GB, free: 10.1 MB / 426.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.009197/0.4623, allocations: 9.32 MB / 0.5772 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.4623, allocations: 8.031 kB / 0.5772 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004149/0.4665, allocations: 3.498 MB / 0.5807 GB, free: 13.18 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00379/0.4702, allocations: 3.189 MB / 0.5838 GB, free: 9.938 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008658/0.4711, allocations: 1.285 MB / 0.585 GB, free: 8.566 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006229/0.4717, allocations: 0.7385 MB / 0.5857 GB, free: 7.828 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0115/0.4832, allocations: 9.251 MB / 0.5948 GB, free: 14.21 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001244/0.4834, allocations: 20.05 kB / 0.5948 GB, free: 14.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004649/0.4838, allocations: 316.3 kB / 0.5951 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001101/0.4849, allocations: 1.211 MB / 0.5963 GB, free: 12.67 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01161/0.4965, allocations: 9.791 MB / 0.6058 GB, free: 2.801 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4346/0.9312, allocations: 44.47 MB / 0.6493 GB, free: 37.81 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005683/0.9368, allocations: 1.927 MB / 0.6512 GB, free: 37.46 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002865/0.9397, allocations: 0.8938 MB / 0.652 GB, free: 37.34 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001293/0.941, allocations: 0.6707 MB / 0.6527 GB, free: 37.14 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.493e-05/0.941, allocations: 65.58 kB / 0.6527 GB, free: 37.09 MB / 458.8 MB Notification: Performance of pre-optimization done (n=245): time 5.441e-06/0.9411, allocations: 0 / 0.6527 GB, free: 37.09 MB / 458.8 MB Notification: Performance of matching and sorting (n=324): time 0.0877/1.029, allocations: 21.68 MB / 0.6739 GB, free: 32.39 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006516/1.035, allocations: 5.32 MB / 0.6791 GB, free: 27.22 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003079/1.038, allocations: 3.119 MB / 0.6822 GB, free: 24.62 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001588/1.04, allocations: 78.2 kB / 0.6822 GB, free: 24.54 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001592/1.042, allocations: 4.218 MB / 0.6863 GB, free: 21.04 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002138/1.044, allocations: 1.135 MB / 0.6875 GB, free: 20.02 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002768/1.046, allocations: 1.262 MB / 0.6887 GB, free: 18.83 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 3.86e-05/1.046, allocations: 481.3 kB / 0.6891 GB, free: 18.36 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00353/1.05, allocations: 1.821 MB / 0.6909 GB, free: 16.54 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003933/1.054, allocations: 2.844 MB / 0.6937 GB, free: 13.38 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01103/1.065, allocations: 6.605 MB / 0.7002 GB, free: 6.562 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.868e-05/1.065, allocations: 4.562 kB / 0.7002 GB, free: 6.559 MB / 458.8 MB Notification: Performance of matching and sorting (n=442) (initialization): time 0.01562/1.081, allocations: 6.626 MB / 0.7066 GB, free: 60 kB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.673e-05/1.081, allocations: 16.62 kB / 0.7066 GB, free: 44 kB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.024e-05/1.081, allocations: 20 kB / 0.7067 GB, free: 24 kB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0143/1.095, allocations: 3.975 MB / 0.7105 GB, free: 12.05 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02331/1.118, allocations: 4.205 MB / 0.7147 GB, free: 7.93 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01492/1.133, allocations: 24.86 MB / 0.7389 GB, free: 14.12 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005214/1.138, allocations: 135.9 kB / 0.7391 GB, free: 13.99 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001989/1.14, allocations: 0.946 MB / 0.74 GB, free: 13.04 MB / 0.4949 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.004108/1.145, allocations: 401.2 kB / 0.7404 GB, free: 12.7 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002317/1.147, allocations: 0.5091 MB / 0.7409 GB, free: 12.19 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01595/1.163, allocations: 8.284 MB / 0.7489 GB, free: 3.973 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005894/1.169, allocations: 3.139 MB / 0.752 GB, free: 0.8203 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.661e-05/1.169, allocations: 4 kB / 0.752 GB, free: 0.8164 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.219e-05/1.169, allocations: 23.94 kB / 0.752 GB, free: 0.793 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03148/1.2, allocations: 17.61 MB / 0.7692 GB, free: 15.94 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-05/1.2, allocations: 16 kB / 0.7693 GB, free: 15.93 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01746/1.218, allocations: 2.25 MB / 0.7715 GB, free: 13.71 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0182/1.236, allocations: 3.407 MB / 0.7748 GB, free: 10.27 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009818/1.237, allocations: 171.9 kB / 0.7749 GB, free: 10.1 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2644/1.501, allocations: 30.36 MB / 0.8046 GB, free: 124.6 MB / 0.5418 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.0008322/1.502, allocations: 0.8319 MB / 0.8054 GB, free: 123.9 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009742/1.512, allocations: 5.267 MB / 0.8106 GB, free: 121.9 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/1.513, allocations: 462.7 kB / 0.811 GB, free: 121.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009645/1.514, allocations: 88.58 kB / 0.8111 GB, free: 121.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/1.516, allocations: 81.72 kB / 0.8112 GB, free: 121.9 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007834/1.516, allocations: 395.6 kB / 0.8115 GB, free: 121.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004253/1.517, allocations: 294 kB / 0.8118 GB, free: 121.9 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.002775/1.52, allocations: 2.506 MB / 0.8143 GB, free: 121.7 MB / 0.5418 GB Notification: Performance of sort global known variables: time 4.21e-07/1.52, allocations: 1.094 kB / 0.8143 GB, free: 121.7 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.007126/1.527, allocations: 1.985 MB / 0.8162 GB, free: 121.7 MB / 0.5418 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.001405/1.528, allocations: 0.5034 MB / 0.8167 GB, free: 121.6 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01597/1.544, allocations: 6.159 MB / 0.8227 GB, free: 120 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.249e-05/1.544, allocations: 4.406 kB / 0.8227 GB, free: 120 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.0101/1.554, allocations: 3.867 MB / 0.8265 GB, free: 118.3 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004887/1.559, allocations: 1.107 MB / 0.8276 GB, free: 118.3 MB / 0.5418 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4595:9-4595:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:827:5-827:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 658] [Calling sys.exit(0), Time elapsed: 3.393446553964168]