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.001012/0.001012, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001034/0.001034, allocations: 173 kB / 23.49 MB, free: 1.059 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.9187/0.9187, allocations: 177.1 MB / 203.8 MB, free: 5.633 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.08098/0.08098, allocations: 17.39 MB / 277.7 MB, free: 11.7 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.583e-06/1.583e-06, allocations: 0 / 353.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.468e-05/1.626e-05, allocations: 2.312 kB / 353.5 MB, free: 10.31 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.05285/0.05286, allocations: 51.25 MB / 404.7 MB, free: 7.109 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.2469/0.2998, allocations: 141.2 MB / 0.5331 GB, free: 9.355 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004519/0.3043, allocations: 91.56 kB / 0.5332 GB, free: 9.266 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004756/0.3091, allocations: 1.98 MB / 0.5351 GB, free: 7.289 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00656/0.3156, allocations: 2.574 MB / 0.5376 GB, free: 4.695 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003961/0.3196, allocations: 1.729 MB / 0.5393 GB, free: 2.961 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.009054/0.3286, allocations: 7.233 MB / 0.5464 GB, free: 11.71 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002344/0.331, allocations: 1.745 MB / 0.5481 GB, free: 9.871 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005852/0.3368, allocations: 4.323 MB / 0.5523 GB, free: 5.539 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003593/0.3404, allocations: 2.407 MB / 0.5547 GB, free: 3.121 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001378/0.3418, allocations: 0.7578 MB / 0.5554 GB, free: 2.363 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00366/0.3455, allocations: 1.682 MB / 0.557 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1819/0.5274, allocations: 2.334 MB / 0.5593 GB, free: 13.72 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005287/0.5327, allocations: 2.648 MB / 0.5619 GB, free: 13.72 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01426/0.5469, allocations: 7.878 MB / 0.5696 GB, free: 13.03 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.5469, allocations: 0 / 0.5696 GB, free: 13.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.5469, allocations: 3.094 kB / 0.5696 GB, free: 13.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000464/0.5474, allocations: 0 / 0.5696 GB, free: 13.03 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.01404/0.5614, allocations: 9.221 MB / 0.5786 GB, free: 9.355 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/0.5615, allocations: 10.25 kB / 0.5786 GB, free: 9.355 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004753/0.5662, allocations: 3.495 MB / 0.582 GB, free: 8.758 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005129/0.5714, allocations: 3.296 MB / 0.5852 GB, free: 7.816 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001014/0.5724, allocations: 1.291 MB / 0.5865 GB, free: 7.355 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.5735, allocations: 0.7372 MB / 0.5872 GB, free: 7.348 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01599/0.5895, allocations: 10.81 MB / 0.5978 GB, free: 5.922 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002164/0.5897, allocations: 12.69 kB / 0.5978 GB, free: 5.922 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006333/0.5903, allocations: 317.8 kB / 0.5981 GB, free: 5.922 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008441/0.5912, allocations: 1.218 MB / 0.5993 GB, free: 5.895 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01471/0.6059, allocations: 12.32 MB / 0.6113 GB, free: 4.746 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05712/0.663, allocations: 46.62 MB / 0.6568 GB, free: 11.63 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007682/0.6707, allocations: 2.073 MB / 0.6589 GB, free: 9.543 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00359/0.6743, allocations: 1.021 MB / 0.6599 GB, free: 8.516 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001412/0.6757, allocations: 0.6988 MB / 0.6606 GB, free: 7.828 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.019e-05/0.6757, allocations: 65.66 kB / 0.6606 GB, free: 7.758 MB / 474.7 MB Notification: Performance of pre-optimization done (n=245): time 5.109e-06/0.6757, allocations: 0.5938 kB / 0.6606 GB, free: 7.758 MB / 474.7 MB Notification: Performance of matching and sorting (n=324): time 0.106/0.7818, allocations: 29.31 MB / 0.6892 GB, free: 10.57 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007093/0.7889, allocations: 5.433 MB / 0.6945 GB, free: 4.867 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003679/0.7925, allocations: 3.218 MB / 0.6977 GB, free: 1.66 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001171/0.7937, allocations: 82.52 kB / 0.6978 GB, free: 1.574 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002308/0.796, allocations: 4.204 MB / 0.7019 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001578/0.7976, allocations: 1.121 MB / 0.703 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002441/0.8, allocations: 1.241 MB / 0.7042 GB, free: 11 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.8001, allocations: 477.4 kB / 0.7046 GB, free: 10.53 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004889/0.805, allocations: 1.972 MB / 0.7066 GB, free: 8.559 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005085/0.8101, allocations: 2.973 MB / 0.7095 GB, free: 5.195 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01263/0.8227, allocations: 7.044 MB / 0.7163 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-05/0.8228, allocations: 9.125 kB / 0.7163 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of matching and sorting (n=442) (initialization): time 0.01597/0.8387, allocations: 6.963 MB / 0.7231 GB, free: 7.02 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.8388, allocations: 12 kB / 0.7232 GB, free: 7.008 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.241e-05/0.8388, allocations: 20.88 kB / 0.7232 GB, free: 6.988 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01465/0.8534, allocations: 4.339 MB / 0.7274 GB, free: 2.637 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02221/0.8757, allocations: 4.297 MB / 0.7316 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.153/1.029, allocations: 25.13 MB / 0.7562 GB, free: 240.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005488/1.034, allocations: 249.1 kB / 0.7564 GB, free: 240.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001926/1.036, allocations: 0.974 MB / 0.7573 GB, free: 240.1 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.004144/1.04, allocations: 394.6 kB / 0.7577 GB, free: 239.9 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002783/1.043, allocations: 0.5152 MB / 0.7582 GB, free: 239.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01891/1.062, allocations: 8.865 MB / 0.7669 GB, free: 239.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007245/1.069, allocations: 3.683 MB / 0.7705 GB, free: 239.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.46e-05/1.069, allocations: 6.531 kB / 0.7705 GB, free: 239.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.046e-05/1.069, allocations: 15.14 kB / 0.7705 GB, free: 239.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02661/1.096, allocations: 18.13 MB / 0.7882 GB, free: 232.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-05/1.096, allocations: 22.7 kB / 0.7882 GB, free: 232.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0128/1.109, allocations: 2.25 MB / 0.7904 GB, free: 231.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01405/1.123, allocations: 3.788 MB / 0.7941 GB, free: 229.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008226/1.123, allocations: 175 kB / 0.7943 GB, free: 229.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01315/1.137, allocations: 30.8 MB / 0.8244 GB, free: 197 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.0006596/1.137, allocations: 0.8384 MB / 0.8252 GB, free: 196.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009626/1.147, allocations: 5.784 MB / 0.8308 GB, free: 190.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/1.148, allocations: 473.2 kB / 0.8313 GB, free: 189.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007251/1.149, allocations: 97.58 kB / 0.8314 GB, free: 189.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/1.15, allocations: 95.95 kB / 0.8315 GB, free: 189.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007034/1.151, allocations: 400.6 kB / 0.8318 GB, free: 189.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002973/1.151, allocations: 315.8 kB / 0.8321 GB, free: 188.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003079/1.154, allocations: 3.083 MB / 0.8352 GB, free: 185.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/1.154, allocations: 0 / 0.8352 GB, free: 185.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006346/1.161, allocations: 1.988 MB / 0.8371 GB, free: 183.9 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.001167/1.162, allocations: 491.5 kB / 0.8376 GB, free: 183.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01791/1.18, allocations: 6.459 MB / 0.8439 GB, free: 176.9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.798e-05/1.18, allocations: 4 kB / 0.8439 GB, free: 176.9 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01129/1.191, allocations: 4.022 MB / 0.8478 GB, free: 172.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005364/1.196, allocations: 1.113 MB / 0.8489 GB, free: 171.8 MB / 0.5417 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4695:9-4695: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: 2.828095084056258]