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.001323/0.001323, allocations: 79.59 kB / 19.18 MB, free: 2.516 MB / 14.72 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.00154/0.00154, allocations: 165.4 kB / 22.46 MB, free: 5.375 MB / 14.72 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.478/1.478, allocations: 177.1 MB / 202.8 MB, free: 9.164 MB / 190.1 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.1421/0.1421, allocations: 17.37 MB / 276.5 MB, free: 15.29 MB / 270.1 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.623e-06/1.623e-06, allocations: 0 / 411.9 MB, free: 4.445 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.529e-05/3.691e-05, allocations: 5.656 kB / 411.9 MB, free: 4.441 MB / 334.1 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.3875/0.3876, allocations: 44.99 MB / 456.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1741/0.5617, allocations: 128.6 MB / 0.5719 GB, free: 6.598 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006241/0.5679, allocations: 91.56 kB / 0.5719 GB, free: 6.508 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007367/0.5753, allocations: 1.986 MB / 0.5739 GB, free: 4.508 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009203/0.5845, allocations: 2.562 MB / 0.5764 GB, free: 1.926 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006059/0.5905, allocations: 1.729 MB / 0.5781 GB, free: 196 kB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.01279/0.6033, allocations: 7.244 MB / 0.5851 GB, free: 8.918 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003594/0.6069, allocations: 1.749 MB / 0.5869 GB, free: 7.082 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00852/0.6155, allocations: 4.327 MB / 0.5911 GB, free: 2.746 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004174/0.6196, allocations: 2.384 MB / 0.5934 GB, free: 364 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001296/0.6209, allocations: 0.7618 MB / 0.5941 GB, free: 15.59 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004874/0.6258, allocations: 1.682 MB / 0.5958 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002342/0.6281, allocations: 2.336 MB / 0.5981 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004889/0.633, allocations: 2.645 MB / 0.6007 GB, free: 8.914 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01772/0.6508, allocations: 11.54 MB / 0.6119 GB, free: 13.34 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.6508, allocations: 3.984 kB / 0.6119 GB, free: 13.33 MB / 0.4982 GB Notification: Performance of FrontEnd: time 1.823e-06/0.6508, allocations: 0 / 0.6119 GB, free: 13.33 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 0.0003397/0.6511, allocations: 4 kB / 0.6119 GB, free: 13.33 MB / 0.4982 GB 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.01609/0.6672, allocations: 8.519 MB / 0.6203 GB, free: 4.73 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.6672, allocations: 8.031 kB / 0.6203 GB, free: 4.723 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004335/0.6716, allocations: 1.607 MB / 0.6218 GB, free: 3.109 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1985/0.8701, allocations: 3.543 MB / 0.6253 GB, free: 176.4 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001397/0.8715, allocations: 1.294 MB / 0.6266 GB, free: 175.8 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001867/0.8733, allocations: 0.7414 MB / 0.6273 GB, free: 175.6 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03473/0.9081, allocations: 28.72 MB / 0.6553 GB, free: 156.7 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001817/0.9083, allocations: 12.06 kB / 0.6553 GB, free: 156.6 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001062/0.9093, allocations: 315.3 kB / 0.6556 GB, free: 156.4 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001059/0.9104, allocations: 1.215 MB / 0.6568 GB, free: 155.1 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03583/0.9462, allocations: 45.88 MB / 0.7016 GB, free: 109.4 MB / 0.4982 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07713/1.023, allocations: 66.98 MB / 0.767 GB, free: 42.8 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01591/1.039, allocations: 12.18 MB / 0.7789 GB, free: 30.62 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009027/1.048, allocations: 8.754 MB / 0.7875 GB, free: 21.86 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002056/1.05, allocations: 0.683 MB / 0.7882 GB, free: 21.18 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/1.05, allocations: 60.94 kB / 0.7882 GB, free: 21.12 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=245): time 5.46e-06/1.05, allocations: 0 / 0.7882 GB, free: 21.12 MB / 0.4982 GB Notification: Performance of matching and sorting (n=324): time 0.4226/1.473, allocations: 70.25 MB / 0.8568 GB, free: 167.4 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01446/1.487, allocations: 8.29 MB / 0.8649 GB, free: 160.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004507/1.492, allocations: 3.578 MB / 0.8684 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001874/1.494, allocations: 80.36 kB / 0.8685 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001799/1.496, allocations: 3.961 MB / 0.8723 GB, free: 154.2 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002212/1.498, allocations: 1.127 MB / 0.8734 GB, free: 153.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003648/1.501, allocations: 1.335 MB / 0.8748 GB, free: 151.8 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.7e-05/1.502, allocations: 309.1 kB / 0.875 GB, free: 151.5 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01382/1.515, allocations: 13.23 MB / 0.888 GB, free: 138.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01476/1.53, allocations: 13.98 MB / 0.9016 GB, free: 124 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2825/1.813, allocations: 61.26 MB / 0.9614 GB, free: 62.96 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-05/1.813, allocations: 4 kB / 0.9614 GB, free: 62.96 MB / 0.5138 GB Notification: Performance of matching and sorting (n=442) (initialization): time 0.03604/1.849, allocations: 25.8 MB / 0.9866 GB, free: 37.16 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/1.849, allocations: 14.66 kB / 0.9866 GB, free: 37.15 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.524e-05/1.849, allocations: 20 kB / 0.9867 GB, free: 37.13 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02806/1.877, allocations: 5.439 MB / 0.992 GB, free: 31.7 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04753/1.924, allocations: 4.279 MB / 0.9962 GB, free: 27.46 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01854/1.943, allocations: 25.12 MB / 1.021 GB, free: 1.258 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008424/1.951, allocations: 254.3 kB / 1.021 GB, free: 1.012 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002442/1.954, allocations: 0.9721 MB / 1.022 GB, free: 40 kB / 0.5138 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.1993/2.153, allocations: 1.91 MB / 1.024 GB, free: 171.5 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002399/2.155, allocations: 409.5 kB / 1.024 GB, free: 171.5 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03447/2.19, allocations: 16.71 MB / 1.04 GB, free: 166.9 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01771/2.208, allocations: 10.55 MB / 1.051 GB, free: 162.3 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-05/2.208, allocations: 3.219 kB / 1.051 GB, free: 162.3 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.862e-05/2.208, allocations: 20.61 kB / 1.051 GB, free: 162.3 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04605/2.254, allocations: 31.85 MB / 1.082 GB, free: 134.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-05/2.254, allocations: 16 kB / 1.082 GB, free: 134.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02905/2.283, allocations: 2.251 MB / 1.084 GB, free: 132.6 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02663/2.309, allocations: 4.368 MB / 1.088 GB, free: 128.2 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008428/2.31, allocations: 172.7 kB / 1.089 GB, free: 128 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02071/2.331, allocations: 25.58 MB / 1.114 GB, free: 101 MB / 0.5138 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.001131/2.332, allocations: 0.6277 MB / 1.114 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02003/2.352, allocations: 14.41 MB / 1.128 GB, free: 85.8 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001352/2.354, allocations: 487.2 kB / 1.129 GB, free: 85.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001058/2.355, allocations: 97.7 kB / 1.129 GB, free: 85.46 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002341/2.357, allocations: 95.95 kB / 1.129 GB, free: 85.37 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009477/2.358, allocations: 437 kB / 1.129 GB, free: 84.94 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003953/2.358, allocations: 311.9 kB / 1.13 GB, free: 84.64 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006109/2.364, allocations: 5.513 MB / 1.135 GB, free: 79.11 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.61e-07/2.364, allocations: 480 / 1.135 GB, free: 79.11 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008412/2.373, allocations: 1.993 MB / 1.137 GB, free: 77.14 MB / 0.5138 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.001262/2.374, allocations: 491.3 kB / 1.137 GB, free: 76.76 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.03146/2.406, allocations: 17.48 MB / 1.154 GB, free: 59.28 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 2.772e-05/2.406, allocations: 4 kB / 1.154 GB, free: 59.27 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.01972/2.425, allocations: 5.49 MB / 1.16 GB, free: 53.72 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005711/2.431, allocations: 0.8613 MB / 1.161 GB, free: 52.93 MB / 0.5138 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4676:9-4676:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:836:5-836: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.89388894289732] Failed to read output from testmodel.py, exit status != 0: 2.4406715221703053 2.449407775 1.796201883 Calling exit ...