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.002294/0.002294, allocations: 85.48 kB / 19.44 MB, free: 340 kB / 13.93 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.002683/0.002683, allocations: 173.2 kB / 22.76 MB, free: 1.66 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.583/1.583, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.1373/0.1373, allocations: 17.36 MB / 276.9 MB, free: 11.69 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 2.414e-06/2.414e-06, allocations: 0 / 352.7 MB, free: 10.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.327e-05/3.569e-05, allocations: 2.312 kB / 352.7 MB, free: 10.33 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.08034/0.08037, allocations: 49.01 MB / 401.7 MB, free: 9.371 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.3242/0.4046, allocations: 141.2 MB / 0.5301 GB, free: 10.89 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004764/0.4094, allocations: 91.56 kB / 0.5302 GB, free: 10.8 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006613/0.416, allocations: 1.974 MB / 0.5322 GB, free: 8.836 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008678/0.4246, allocations: 2.578 MB / 0.5347 GB, free: 6.238 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005121/0.4298, allocations: 1.725 MB / 0.5364 GB, free: 4.508 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0132/0.443, allocations: 7.236 MB / 0.5434 GB, free: 13.25 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003385/0.4464, allocations: 1.749 MB / 0.5451 GB, free: 11.41 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00841/0.4548, allocations: 4.319 MB / 0.5494 GB, free: 7.082 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004919/0.4597, allocations: 2.411 MB / 0.5517 GB, free: 4.664 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00151/0.4612, allocations: 0.7617 MB / 0.5525 GB, free: 3.902 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004836/0.466, allocations: 1.678 MB / 0.5541 GB, free: 2.219 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1949/0.6609, allocations: 2.339 MB / 0.5564 GB, free: 13.63 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009444/0.6703, allocations: 2.634 MB / 0.559 GB, free: 13.63 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02352/0.6939, allocations: 11.56 MB / 0.5702 GB, free: 12.94 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.6939, allocations: 0 / 0.5702 GB, free: 12.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.6939, allocations: 0 / 0.5702 GB, free: 12.94 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007079/0.6946, allocations: 0.5938 kB / 0.5702 GB, free: 12.94 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.02929/0.7239, allocations: 9.842 MB / 0.5799 GB, free: 9.262 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.7239, allocations: 10.92 kB / 0.5799 GB, free: 9.262 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01017/0.7341, allocations: 3.494 MB / 0.5833 GB, free: 8.664 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008874/0.743, allocations: 3.348 MB / 0.5865 GB, free: 7.723 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001459/0.7444, allocations: 1.292 MB / 0.5878 GB, free: 7.262 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002209/0.7466, allocations: 0.7421 MB / 0.5885 GB, free: 7.254 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02374/0.7704, allocations: 12.14 MB / 0.6004 GB, free: 5.844 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000171/0.7705, allocations: 11.84 kB / 0.6004 GB, free: 5.844 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009418/0.7715, allocations: 320.6 kB / 0.6007 GB, free: 5.844 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001086/0.7726, allocations: 1.215 MB / 0.6019 GB, free: 5.816 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02682/0.7994, allocations: 19.82 MB / 0.6212 GB, free: 11.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1115/0.9109, allocations: 57.17 MB / 0.6771 GB, free: 4.031 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01349/0.9244, allocations: 3.653 MB / 0.6806 GB, free: 372 kB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007038/0.9315, allocations: 2.255 MB / 0.6828 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002453/0.9339, allocations: 0.6915 MB / 0.6835 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.952e-05/0.934, allocations: 69.31 kB / 0.6836 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 4.839e-06/0.934, allocations: 0.6875 kB / 0.6836 GB, free: 13.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=324): time 0.2169/1.151, allocations: 37.45 MB / 0.7202 GB, free: 7.961 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02808/1.179, allocations: 6.46 MB / 0.7265 GB, free: 1.23 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01525/1.194, allocations: 3.969 MB / 0.7303 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002837/1.197, allocations: 81.7 kB / 0.7304 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.006423/1.204, allocations: 4.352 MB / 0.7347 GB, free: 8.824 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003639/1.207, allocations: 1.212 MB / 0.7359 GB, free: 7.629 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006105/1.213, allocations: 1.37 MB / 0.7372 GB, free: 6.246 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002247/1.213, allocations: 477.7 kB / 0.7376 GB, free: 5.777 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01/1.223, allocations: 3.764 MB / 0.7413 GB, free: 2.012 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.204/1.428, allocations: 4.878 MB / 0.7461 GB, free: 246.8 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0264/1.454, allocations: 11.42 MB / 0.7572 GB, free: 245.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.583e-05/1.454, allocations: 10.25 kB / 0.7573 GB, free: 245.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=442) (initialization): time 0.02834/1.482, allocations: 10.46 MB / 0.7675 GB, free: 243 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.884e-05/1.482, allocations: 13.72 kB / 0.7675 GB, free: 243 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.079e-05/1.482, allocations: 22.34 kB / 0.7675 GB, free: 243 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02824/1.511, allocations: 4.62 MB / 0.772 GB, free: 242 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04874/1.559, allocations: 4.289 MB / 0.7762 GB, free: 241.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01793/1.577, allocations: 26.93 MB / 0.8025 GB, free: 214.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01071/1.588, allocations: 250.3 kB / 0.8027 GB, free: 214.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00333/1.591, allocations: 0.9671 MB / 0.8037 GB, free: 213.7 MB / 0.5417 GB Warning: Assuming fixed start value for the following 8 variables: 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 boundaryRear4.fore.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 boundaryFore1.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 {(2,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%), (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.007366/1.599, allocations: 0.9403 MB / 0.8046 GB, free: 212.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004669/1.603, allocations: 0.5092 MB / 0.8051 GB, free: 212.5 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04058/1.644, allocations: 11.32 MB / 0.8161 GB, free: 203 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01995/1.664, allocations: 5.506 MB / 0.8215 GB, free: 198 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.245e-05/1.664, allocations: 4 kB / 0.8215 GB, free: 197.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001024/1.664, allocations: 19.19 kB / 0.8215 GB, free: 197.9 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04918/1.713, allocations: 21.64 MB / 0.8427 GB, free: 176.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.192e-05/1.713, allocations: 20 kB / 0.8427 GB, free: 176.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03/1.743, allocations: 2.247 MB / 0.8449 GB, free: 174.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02807/1.771, allocations: 4.006 MB / 0.8488 GB, free: 170 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001114/1.772, allocations: 171.9 kB / 0.849 GB, free: 169.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02174/1.794, allocations: 32.97 MB / 0.8812 GB, free: 135.2 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.001243/1.795, allocations: 0.8559 MB / 0.882 GB, free: 134.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01823/1.814, allocations: 8.575 MB / 0.8904 GB, free: 125.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001961/1.816, allocations: 480.8 kB / 0.8908 GB, free: 125 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001235/1.817, allocations: 98.12 kB / 0.8909 GB, free: 124.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002433/1.819, allocations: 91.95 kB / 0.891 GB, free: 124.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001045/1.82, allocations: 432.9 kB / 0.8914 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004454/1.821, allocations: 311.9 kB / 0.8917 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00572/1.826, allocations: 3.783 MB / 0.8954 GB, free: 120.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.8e-07/1.826, allocations: 2.594 kB / 0.8954 GB, free: 120.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009528/1.836, allocations: 1.982 MB / 0.8974 GB, free: 118.4 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.001866/1.838, allocations: 0.5012 MB / 0.8978 GB, free: 118 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02871/1.867, allocations: 9.019 MB / 0.9066 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.957e-05/1.867, allocations: 4 kB / 0.9067 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01926/1.886, allocations: 4.779 MB / 0.9113 GB, free: 103.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006897/1.893, allocations: 1.1 MB / 0.9124 GB, free: 102.9 MB / 0.5417 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4687:9-4687:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:848:5-848: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: 4.37406857998576]