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.00125/0.00125, 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.001457/0.001457, allocations: 181 kB / 23.35 MB, free: 1.137 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.9418/0.9418, allocations: 177.1 MB / 203.8 MB, free: 5.465 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.104/0.104, allocations: 17.39 MB / 277.7 MB, free: 11.5 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.162e-06/1.162e-06, allocations: 0 / 300.6 MB, free: 1.836 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.179e-05/1.295e-05, allocations: 9.016 kB / 300.6 MB, free: 1.828 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.05652/0.05653, allocations: 56.65 MB / 357.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.3348/0.3913, allocations: 141.4 MB / 498.7 MB, free: 24.12 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005796/0.3971, allocations: 89.62 kB / 498.7 MB, free: 24.1 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005262/0.4024, allocations: 2.067 MB / 0.4891 GB, free: 23.42 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008257/0.4107, allocations: 2.589 MB / 0.4916 GB, free: 22.59 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005486/0.4161, allocations: 1.747 MB / 0.4933 GB, free: 22.07 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01073/0.4269, allocations: 7.248 MB / 0.5004 GB, free: 18.27 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002763/0.4296, allocations: 1.843 MB / 0.5022 GB, free: 17.17 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006499/0.4361, allocations: 4.333 MB / 0.5064 GB, free: 14.45 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004241/0.4404, allocations: 2.398 MB / 0.5088 GB, free: 13.13 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00179/0.4422, allocations: 0.754 MB / 0.5095 GB, free: 13.13 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004916/0.4471, allocations: 1.677 MB / 0.5111 GB, free: 12.8 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002234/0.4493, allocations: 2.329 MB / 0.5134 GB, free: 11.18 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00572/0.455, allocations: 2.635 MB / 0.516 GB, free: 9.754 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01115/0.4662, allocations: 7.868 MB / 0.5237 GB, free: 4.906 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4662, allocations: 0 / 0.5237 GB, free: 4.906 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.4662, allocations: 2.812 kB / 0.5237 GB, free: 4.906 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004691/0.4667, allocations: 0 / 0.5237 GB, free: 4.906 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.01098/0.4777, allocations: 8.486 MB / 0.532 GB, free: 14.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.4777, allocations: 8.031 kB / 0.532 GB, free: 14.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004023/0.4817, allocations: 3.144 MB / 0.535 GB, free: 11.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004342/0.4861, allocations: 2.347 MB / 0.5373 GB, free: 9.457 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001149/0.4872, allocations: 1.296 MB / 0.5386 GB, free: 8.094 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009093/0.4881, allocations: 0.7381 MB / 0.5393 GB, free: 7.371 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01113/0.4992, allocations: 9.203 MB / 0.5483 GB, free: 14.31 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000108/0.4994, allocations: 12.06 kB / 0.5483 GB, free: 14.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003626/0.4997, allocations: 317.2 kB / 0.5486 GB, free: 14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008816/0.5006, allocations: 1.211 MB / 0.5498 GB, free: 12.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01115/0.5118, allocations: 9.836 MB / 0.5594 GB, free: 2.871 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05604/0.5678, allocations: 35.24 MB / 0.5938 GB, free: 15.93 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007478/0.5753, allocations: 1.777 MB / 0.5955 GB, free: 14.15 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003534/0.5788, allocations: 0.6959 MB / 0.5962 GB, free: 13.46 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001768/0.5806, allocations: 0.6657 MB / 0.5969 GB, free: 12.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.828e-05/0.5806, allocations: 67.8 kB / 0.5969 GB, free: 12.73 MB / 490.7 MB Notification: Performance of pre-optimization done (n=245): time 8.817e-06/0.5806, allocations: 4 kB / 0.5969 GB, free: 12.72 MB / 490.7 MB Notification: Performance of matching and sorting (n=324): time 0.09783/0.6785, allocations: 20.86 MB / 0.6173 GB, free: 7.867 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007327/0.6858, allocations: 3.978 MB / 0.6212 GB, free: 3.688 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002796/0.6886, allocations: 2.402 MB / 0.6236 GB, free: 1.781 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001268/0.6899, allocations: 81.7 kB / 0.6236 GB, free: 1.695 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.2013/0.8912, allocations: 3.308 MB / 0.6269 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001798/0.893, allocations: 1.136 MB / 0.628 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002893/0.8959, allocations: 0.9565 MB / 0.6289 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 3.247e-05/0.8959, allocations: 309.2 kB / 0.6292 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004008/0.8999, allocations: 1.541 MB / 0.6307 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004631/0.9046, allocations: 2.295 MB / 0.6329 GB, free: 99.46 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01087/0.9154, allocations: 5.921 MB / 0.6387 GB, free: 98.55 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.853e-05/0.9155, allocations: 4.406 kB / 0.6387 GB, free: 98.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=442) (initialization): time 0.01134/0.9268, allocations: 4.95 MB / 0.6436 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.044e-05/0.9269, allocations: 13.7 kB / 0.6436 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.978e-05/0.9269, allocations: 23.66 kB / 0.6436 GB, free: 98.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01225/0.9391, allocations: 4.004 MB / 0.6475 GB, free: 98.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01943/0.9586, allocations: 3.49 MB / 0.6509 GB, free: 98.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008827/0.9674, allocations: 16.88 MB / 0.6674 GB, free: 83.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004391/0.9718, allocations: 137.5 kB / 0.6675 GB, free: 83.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001553/0.9733, allocations: 0.91 MB / 0.6684 GB, free: 83.3 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.003546/0.9769, allocations: 348.1 kB / 0.6688 GB, free: 83.16 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001735/0.9786, allocations: 332.4 kB / 0.6691 GB, free: 83.16 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01232/0.9909, allocations: 6.953 MB / 0.6759 GB, free: 82.54 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004386/0.9953, allocations: 2.309 MB / 0.6781 GB, free: 82.39 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.741e-05/0.9953, allocations: 7.656 kB / 0.6781 GB, free: 82.39 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.984e-05/0.9954, allocations: 17.7 kB / 0.6781 GB, free: 82.39 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01888/1.014, allocations: 12.83 MB / 0.6907 GB, free: 79.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/1.014, allocations: 23.94 kB / 0.6907 GB, free: 79.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01087/1.025, allocations: 2.16 MB / 0.6928 GB, free: 77.18 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01247/1.038, allocations: 3.668 MB / 0.6964 GB, free: 73.71 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007502/1.038, allocations: 135.9 kB / 0.6965 GB, free: 73.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009603/1.048, allocations: 20.79 MB / 0.7168 GB, free: 51.69 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.0006106/1.049, allocations: 0.6456 MB / 0.7174 GB, free: 51.04 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006963/1.056, allocations: 4.36 MB / 0.7217 GB, free: 46.28 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/1.057, allocations: 423.7 kB / 0.7221 GB, free: 45.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006903/1.057, allocations: 99.97 kB / 0.7222 GB, free: 45.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/1.058, allocations: 80.61 kB / 0.7223 GB, free: 45.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005824/1.059, allocations: 359.5 kB / 0.7226 GB, free: 45.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002765/1.059, allocations: 272.4 kB / 0.7229 GB, free: 45.1 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001546/1.061, allocations: 1.945 MB / 0.7248 GB, free: 43.29 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.9e-07/1.061, allocations: 0.6562 kB / 0.7248 GB, free: 43.29 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005189/1.066, allocations: 1.989 MB / 0.7267 GB, free: 41.3 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.0009722/1.067, allocations: 493.2 kB / 0.7272 GB, free: 40.93 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01213/1.079, allocations: 5.151 MB / 0.7322 GB, free: 35.85 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.726e-05/1.079, allocations: 41.81 kB / 0.7323 GB, free: 35.81 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007434/1.087, allocations: 3.164 MB / 0.7354 GB, free: 32.68 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00378/1.09, allocations: 1.023 MB / 0.7364 GB, free: 31.74 MB / 0.4948 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4068:9-4068:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:790:5-790: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.8070750487968326]