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.001081/0.001081, allocations: 93.06 kB / 19.65 MB, free: 280 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.001464/0.001464, allocations: 169 kB / 23.02 MB, free: 1.551 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.053/1.053, allocations: 177.1 MB / 203.4 MB, free: 5.652 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.1473/0.1473, allocations: 17.38 MB / 277.3 MB, free: 11.66 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.294e-06/2.294e-06, allocations: 0 / 353.4 MB, free: 9.98 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.85e-05/3.08e-05, allocations: 2.312 kB / 353.4 MB, free: 9.977 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.04913/0.04916, allocations: 51.52 MB / 405 MB, free: 6.492 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.3826/0.4317, allocations: 141.5 MB / 0.5337 GB, free: 8.641 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0057/0.4374, allocations: 87.56 kB / 0.5337 GB, free: 8.555 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004835/0.4423, allocations: 1.984 MB / 0.5357 GB, free: 6.574 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007431/0.4497, allocations: 2.578 MB / 0.5382 GB, free: 3.977 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00447/0.4542, allocations: 1.721 MB / 0.5399 GB, free: 2.25 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.009656/0.4638, allocations: 7.262 MB / 0.547 GB, free: 10.97 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002184/0.466, allocations: 1.742 MB / 0.5487 GB, free: 9.133 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005575/0.4716, allocations: 4.331 MB / 0.5529 GB, free: 4.793 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002715/0.4743, allocations: 2.396 MB / 0.5552 GB, free: 2.387 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006712/0.475, allocations: 0.7539 MB / 0.556 GB, free: 1.633 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2567/0.7317, allocations: 1.673 MB / 0.5576 GB, free: 13.48 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003089/0.7348, allocations: 2.328 MB / 0.5599 GB, free: 13.48 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006433/0.7412, allocations: 2.633 MB / 0.5625 GB, free: 13.48 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.7532, allocations: 7.883 MB / 0.5702 GB, free: 12.79 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.7533, allocations: 0 / 0.5702 GB, free: 12.79 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.7533, allocations: 0 / 0.5702 GB, free: 12.79 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000376/0.7536, allocations: 0.5469 kB / 0.5702 GB, free: 12.79 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.009153/0.7628, allocations: 9.228 MB / 0.5792 GB, free: 9.113 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.7628, allocations: 10.53 kB / 0.5792 GB, free: 9.113 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003714/0.7665, allocations: 3.493 MB / 0.5826 GB, free: 8.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003537/0.7701, allocations: 3.283 MB / 0.5858 GB, free: 7.578 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000683/0.7708, allocations: 1.287 MB / 0.5871 GB, free: 7.117 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005847/0.7713, allocations: 0.7408 MB / 0.5878 GB, free: 7.109 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01112/0.7825, allocations: 10.8 MB / 0.5983 GB, free: 5.684 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/0.7826, allocations: 16.62 kB / 0.5983 GB, free: 5.684 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004548/0.783, allocations: 316.2 kB / 0.5986 GB, free: 5.684 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001044/0.7841, allocations: 1.214 MB / 0.5998 GB, free: 5.656 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01398/0.7981, allocations: 12.32 MB / 0.6119 GB, free: 4.348 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05381/0.8519, allocations: 46.6 MB / 0.6574 GB, free: 11.12 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005691/0.8575, allocations: 2.076 MB / 0.6594 GB, free: 9.035 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002519/0.8601, allocations: 1.02 MB / 0.6604 GB, free: 8.008 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001277/0.8613, allocations: 0.6978 MB / 0.6611 GB, free: 7.32 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/0.8614, allocations: 61.92 kB / 0.6611 GB, free: 7.254 MB / 474.7 MB Notification: Performance of pre-optimization done (n=245): time 5.2e-06/0.8614, allocations: 4 kB / 0.6611 GB, free: 7.25 MB / 474.7 MB Notification: Performance of matching and sorting (n=324): time 0.08415/0.9455, allocations: 29.32 MB / 0.6898 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007249/0.9528, allocations: 5.428 MB / 0.6951 GB, free: 4.359 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003661/0.9565, allocations: 3.206 MB / 0.6982 GB, free: 1.164 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007658/0.9572, allocations: 74.7 kB / 0.6983 GB, free: 1.086 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002179/0.9594, allocations: 4.201 MB / 0.7024 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00129/0.9607, allocations: 1.131 MB / 0.7035 GB, free: 11.79 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002466/0.9632, allocations: 1.234 MB / 0.7047 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.9633, allocations: 476.8 kB / 0.7051 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004418/0.9677, allocations: 1.979 MB / 0.7071 GB, free: 8.098 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004896/0.9726, allocations: 2.974 MB / 0.71 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/0.9847, allocations: 7.047 MB / 0.7169 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.932e-05/0.9847, allocations: 6.812 kB / 0.7169 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=442) (initialization): time 0.01784/1.003, allocations: 6.963 MB / 0.7237 GB, free: 6.551 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.644e-05/1.003, allocations: 19.94 kB / 0.7237 GB, free: 6.535 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.025e-05/1.003, allocations: 20 kB / 0.7237 GB, free: 6.516 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01681/1.019, allocations: 4.331 MB / 0.7279 GB, free: 2.168 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02067/1.04, allocations: 4.293 MB / 0.7321 GB, free: 13.92 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2793/1.319, allocations: 25.13 MB / 0.7567 GB, free: 114.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005544/1.325, allocations: 252.1 kB / 0.7569 GB, free: 114.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001483/1.326, allocations: 0.9697 MB / 0.7579 GB, free: 114.9 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.003532/1.33, allocations: 397 kB / 0.7582 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001801/1.332, allocations: 0.5136 MB / 0.7587 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01513/1.347, allocations: 8.872 MB / 0.7674 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006773/1.354, allocations: 3.675 MB / 0.771 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.929e-05/1.354, allocations: 8.109 kB / 0.771 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.406e-05/1.354, allocations: 14.48 kB / 0.771 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02341/1.377, allocations: 18.12 MB / 0.7887 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/1.377, allocations: 18.06 kB / 0.7887 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01238/1.389, allocations: 2.255 MB / 0.7909 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01359/1.403, allocations: 3.785 MB / 0.7946 GB, free: 111.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004848/1.404, allocations: 172.5 kB / 0.7948 GB, free: 111.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01253/1.416, allocations: 30.8 MB / 0.8249 GB, free: 82.66 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.0006326/1.417, allocations: 0.8347 MB / 0.8257 GB, free: 81.96 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009674/1.426, allocations: 5.776 MB / 0.8313 GB, free: 79.95 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009097/1.427, allocations: 477.6 kB / 0.8318 GB, free: 79.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005616/1.428, allocations: 93.28 kB / 0.8319 GB, free: 79.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/1.429, allocations: 95.06 kB / 0.832 GB, free: 79.94 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006811/1.43, allocations: 399.6 kB / 0.8323 GB, free: 79.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002941/1.43, allocations: 314.3 kB / 0.8326 GB, free: 79.93 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003068/1.433, allocations: 3.068 MB / 0.8356 GB, free: 79.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.7e-07/1.433, allocations: 1.125 kB / 0.8356 GB, free: 79.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0055/1.439, allocations: 1.989 MB / 0.8376 GB, free: 79.7 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.0009275/1.439, allocations: 0.4888 MB / 0.8381 GB, free: 79.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01357/1.453, allocations: 6.459 MB / 0.8444 GB, free: 76.98 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.274e-05/1.453, allocations: 0 / 0.8444 GB, free: 76.98 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00812/1.461, allocations: 4.032 MB / 0.8483 GB, free: 73.04 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003802/1.465, allocations: 1.107 MB / 0.8494 GB, free: 72.02 MB / 0.5417 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4759:9-4759:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:856:5-856: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: 3.4054011339321733]