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.001036/0.001036, allocations: 86.05 kB / 19.87 MB, free: 4.617 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.001304/0.001304, allocations: 170 kB / 23.27 MB, free: 1.223 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 0.9005/0.9005, allocations: 177.1 MB / 203.7 MB, free: 5.516 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.08628/0.08628, allocations: 17.39 MB / 277.6 MB, free: 11.49 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.522e-06/1.522e-06, allocations: 0 / 353.9 MB, free: 9.734 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.065e-05/1.217e-05, allocations: 2.312 kB / 353.9 MB, free: 9.73 MB / 282.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.0621/0.06212, allocations: 50.86 MB / 404.7 MB, free: 6.914 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.262/0.3241, allocations: 138.9 MB / 0.5309 GB, free: 11.35 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002674/0.3268, allocations: 91.56 kB / 0.531 GB, free: 11.26 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003404/0.3302, allocations: 1.98 MB / 0.5329 GB, free: 9.285 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004926/0.3351, allocations: 2.574 MB / 0.5354 GB, free: 6.691 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00353/0.3387, allocations: 1.721 MB / 0.5371 GB, free: 4.965 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.006954/0.3456, allocations: 7.256 MB / 0.5442 GB, free: 13.69 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002152/0.3478, allocations: 1.745 MB / 0.5459 GB, free: 11.85 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004056/0.3518, allocations: 4.331 MB / 0.5501 GB, free: 7.512 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002336/0.3542, allocations: 2.392 MB / 0.5525 GB, free: 5.113 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001205/0.3554, allocations: 0.7578 MB / 0.5532 GB, free: 4.355 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002498/0.3579, allocations: 1.678 MB / 0.5548 GB, free: 2.672 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001028/0.3589, allocations: 2.332 MB / 0.5571 GB, free: 340 kB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1865/0.5454, allocations: 2.628 MB / 0.5597 GB, free: 13.66 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01229/0.5577, allocations: 7.878 MB / 0.5674 GB, free: 12.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.5577, allocations: 0 / 0.5674 GB, free: 12.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.5577, allocations: 0.5312 kB / 0.5674 GB, free: 12.96 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003575/0.558, allocations: 0 / 0.5674 GB, free: 12.96 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.01007/0.5681, allocations: 9.308 MB / 0.5765 GB, free: 9.289 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.5682, allocations: 10.78 kB / 0.5765 GB, free: 9.289 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003259/0.5714, allocations: 3.496 MB / 0.5799 GB, free: 8.691 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003049/0.5745, allocations: 3.188 MB / 0.583 GB, free: 7.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006167/0.5751, allocations: 1.296 MB / 0.5843 GB, free: 7.289 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005227/0.5756, allocations: 0.7379 MB / 0.585 GB, free: 7.281 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007842/0.5834, allocations: 9.253 MB / 0.594 GB, free: 5.855 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.669e-05/0.5835, allocations: 16.36 kB / 0.594 GB, free: 5.852 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003291/0.5839, allocations: 319.8 kB / 0.5943 GB, free: 5.852 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000703/0.5846, allocations: 1.209 MB / 0.5955 GB, free: 5.824 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007816/0.5924, allocations: 9.797 MB / 0.6051 GB, free: 5.555 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05021/0.6426, allocations: 45.28 MB / 0.6493 GB, free: 3.367 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004267/0.6469, allocations: 1.913 MB / 0.6512 GB, free: 1.469 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001734/0.6486, allocations: 0.8932 MB / 0.6521 GB, free: 0.5742 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001264/0.6498, allocations: 0.7435 MB / 0.6528 GB, free: 15.88 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/0.6499, allocations: 68.77 kB / 0.6528 GB, free: 15.81 MB / 474.7 MB Notification: Performance of pre-optimization done (n=245): time 4.017e-06/0.6499, allocations: 0 / 0.6528 GB, free: 15.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=324): time 0.07313/0.723, allocations: 21.68 MB / 0.674 GB, free: 10.37 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00648/0.7295, allocations: 5.314 MB / 0.6792 GB, free: 4.852 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003196/0.7327, allocations: 3.12 MB / 0.6823 GB, free: 2.223 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008109/0.7335, allocations: 81.64 kB / 0.6823 GB, free: 2.141 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001941/0.7354, allocations: 4.217 MB / 0.6864 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00117/0.7366, allocations: 1.136 MB / 0.6876 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002431/0.739, allocations: 1.261 MB / 0.6888 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.132e-05/0.7391, allocations: 480.5 kB / 0.6892 GB, free: 11.33 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003697/0.7428, allocations: 1.819 MB / 0.691 GB, free: 9.504 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003731/0.7466, allocations: 2.843 MB / 0.6938 GB, free: 6.352 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/0.7566, allocations: 6.614 MB / 0.7003 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.688e-05/0.7566, allocations: 4 kB / 0.7003 GB, free: 15.53 MB / 0.5105 GB Notification: Performance of matching and sorting (n=442) (initialization): time 0.01299/0.7696, allocations: 6.629 MB / 0.7067 GB, free: 9.023 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.7696, allocations: 16.53 kB / 0.7068 GB, free: 9.008 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/0.7696, allocations: 24.8 kB / 0.7068 GB, free: 8.984 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01258/0.7822, allocations: 3.971 MB / 0.7107 GB, free: 5.004 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01983/0.802, allocations: 4.206 MB / 0.7148 GB, free: 0.8398 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01356/0.8156, allocations: 25.83 MB / 0.74 GB, free: 6.016 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004131/0.8197, allocations: 139.3 kB / 0.7401 GB, free: 5.883 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/0.8208, allocations: 0.9488 MB / 0.741 GB, free: 4.934 MB / 0.5417 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): 8 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,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): 3 systems {(2,1), (3,24), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.003462/0.8243, allocations: 390.1 kB / 0.7414 GB, free: 4.59 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001856/0.8261, allocations: 0.5119 MB / 0.7419 GB, free: 4.078 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2385/1.065, allocations: 8.284 MB / 0.75 GB, free: 129.3 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005363/1.07, allocations: 3.134 MB / 0.7531 GB, free: 129.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-05/1.07, allocations: 4.266 kB / 0.7531 GB, free: 129.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-05/1.07, allocations: 17.8 kB / 0.7531 GB, free: 129.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02505/1.095, allocations: 17.61 MB / 0.7703 GB, free: 127.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/1.095, allocations: 20.78 kB / 0.7703 GB, free: 127.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01226/1.107, allocations: 2.25 MB / 0.7725 GB, free: 127.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0126/1.12, allocations: 3.42 MB / 0.7758 GB, free: 126.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007515/1.121, allocations: 168.4 kB / 0.776 GB, free: 126.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/1.132, allocations: 30.38 MB / 0.8057 GB, free: 98.33 MB / 0.5417 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.0006013/1.132, allocations: 0.83 MB / 0.8065 GB, free: 97.64 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008228/1.14, allocations: 5.277 MB / 0.8116 GB, free: 95.62 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/1.141, allocations: 463 kB / 0.8121 GB, free: 95.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006477/1.142, allocations: 96.2 kB / 0.8122 GB, free: 95.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/1.143, allocations: 82.09 kB / 0.8123 GB, free: 95.44 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006525/1.144, allocations: 399.7 kB / 0.8126 GB, free: 95.42 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000346/1.144, allocations: 293 kB / 0.8129 GB, free: 95.42 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002219/1.147, allocations: 2.508 MB / 0.8154 GB, free: 95.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.4e-07/1.147, allocations: 1.922 kB / 0.8154 GB, free: 95.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005441/1.152, allocations: 1.965 MB / 0.8173 GB, free: 95.2 MB / 0.5417 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.001018/1.153, allocations: 0.5038 MB / 0.8178 GB, free: 95.09 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01187/1.165, allocations: 5.976 MB / 0.8236 GB, free: 93.64 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-05/1.165, allocations: 3.906 kB / 0.8236 GB, free: 93.64 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007581/1.172, allocations: 3.876 MB / 0.8274 GB, free: 91.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003888/1.176, allocations: 1.099 MB / 0.8285 GB, free: 90.93 MB / 0.5417 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 659] [Calling sys.exit(0), Time elapsed: 2.763016535900533]