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.001214/0.001214, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.001402/0.001402, allocations: 177.9 kB / 23.21 MB, free: 1.352 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.8754/0.8754, allocations: 177.1 MB / 203.5 MB, free: 5.73 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.07943/0.07943, allocations: 17.37 MB / 277.3 MB, free: 11.84 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.623e-06/1.623e-06, allocations: 0 / 412.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.218e-05/2.38e-05, allocations: 6.219 kB / 412.7 MB, free: 15.92 MB / 394.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.2725/0.2725, allocations: 44.95 MB / 457.7 MB, free: 41.64 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.108/0.3805, allocations: 128.6 MB / 0.5726 GB, free: 0.7656 MB / 458.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004571/0.3851, allocations: 87.62 kB / 0.5726 GB, free: 0.6797 MB / 458.8 MB Notification: Performance of NFTyping.typeComponents: time 0.004807/0.3899, allocations: 1.982 MB / 0.5746 GB, free: 14.68 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 0.006424/0.3963, allocations: 2.581 MB / 0.5771 GB, free: 12.09 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.004057/0.4004, allocations: 1.721 MB / 0.5788 GB, free: 10.36 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.007751/0.4081, allocations: 7.24 MB / 0.5858 GB, free: 3.094 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002095/0.4102, allocations: 1.754 MB / 0.5876 GB, free: 1.258 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004573/0.4148, allocations: 4.319 MB / 0.5918 GB, free: 12.93 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002864/0.4177, allocations: 2.388 MB / 0.5941 GB, free: 10.54 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 0.001057/0.4187, allocations: 0.7578 MB / 0.5949 GB, free: 9.777 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003338/0.422, allocations: 1.682 MB / 0.5965 GB, free: 8.094 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 0.00121/0.4233, allocations: 2.336 MB / 0.5988 GB, free: 5.75 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.002693/0.426, allocations: 2.641 MB / 0.6014 GB, free: 3.102 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01072/0.4367, allocations: 11.55 MB / 0.6126 GB, free: 7.516 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.4367, allocations: 0 / 0.6126 GB, free: 7.516 MB / 0.4949 GB Notification: Performance of FrontEnd: time 2.084e-06/0.4367, allocations: 0 / 0.6126 GB, free: 7.516 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 0.0002535/0.4369, allocations: 0 / 0.6126 GB, free: 7.516 MB / 0.4949 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.157/0.594, allocations: 8.523 MB / 0.621 GB, free: 152.8 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.594, allocations: 10.53 kB / 0.621 GB, free: 152.8 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002092/0.5961, allocations: 1.594 MB / 0.6225 GB, free: 152 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00349/0.5996, allocations: 3.553 MB / 0.626 GB, free: 150.3 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006105/0.6002, allocations: 1.302 MB / 0.6273 GB, free: 149.5 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005354/0.6007, allocations: 0.7304 MB / 0.628 GB, free: 149.3 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01959/0.6203, allocations: 28.72 MB / 0.656 GB, free: 136.8 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-05/0.6204, allocations: 13.72 kB / 0.656 GB, free: 136.7 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003531/0.6208, allocations: 317 kB / 0.6563 GB, free: 136.5 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007856/0.6216, allocations: 1.215 MB / 0.6575 GB, free: 136.3 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02467/0.6462, allocations: 45.88 MB / 0.7023 GB, free: 97.97 MB / 0.4949 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.05244/0.6987, allocations: 66.97 MB / 0.7677 GB, free: 34.11 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009476/0.7081, allocations: 12.18 MB / 0.7796 GB, free: 21.91 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005877/0.714, allocations: 8.752 MB / 0.7882 GB, free: 13.15 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009453/0.715, allocations: 0.6906 MB / 0.7889 GB, free: 12.46 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.715, allocations: 56.94 kB / 0.7889 GB, free: 12.4 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=245): time 4.97e-06/0.715, allocations: 0 / 0.7889 GB, free: 12.4 MB / 0.4949 GB Notification: Performance of matching and sorting (n=324): time 0.2686/0.9836, allocations: 70.24 MB / 0.8575 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008302/0.9919, allocations: 8.291 MB / 0.8656 GB, free: 137.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003769/0.9957, allocations: 3.581 MB / 0.8691 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001164/0.9968, allocations: 81.58 kB / 0.8692 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001593/0.9984, allocations: 3.958 MB / 0.873 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001297/0.9997, allocations: 1.124 MB / 0.8741 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002331/1.002, allocations: 1.335 MB / 0.8754 GB, free: 132.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 2.291e-05/1.002, allocations: 310 kB / 0.8757 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01022/1.012, allocations: 13.24 MB / 0.8887 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009285/1.022, allocations: 13.98 MB / 0.9023 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1298/1.151, allocations: 61.24 MB / 0.9621 GB, free: 52.04 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.085e-05/1.151, allocations: 10.66 kB / 0.9621 GB, free: 52.03 MB / 0.5105 GB Notification: Performance of matching and sorting (n=442) (initialization): time 0.02233/1.174, allocations: 25.79 MB / 0.9873 GB, free: 26.23 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/1.174, allocations: 12 kB / 0.9873 GB, free: 26.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-05/1.174, allocations: 24 kB / 0.9874 GB, free: 26.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01287/1.187, allocations: 5.436 MB / 0.9927 GB, free: 20.76 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02015/1.207, allocations: 4.282 MB / 0.9968 GB, free: 16.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1662/1.373, allocations: 25.11 MB / 1.021 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004235/1.377, allocations: 259 kB / 1.022 GB, free: 146.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009291/1.378, allocations: 0.969 MB / 1.023 GB, free: 146.4 MB / 0.5105 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.003638/1.382, allocations: 1.919 MB / 1.024 GB, free: 146.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0011/1.383, allocations: 413.1 kB / 1.025 GB, free: 146.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01728/1.4, allocations: 16.71 MB / 1.041 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01047/1.411, allocations: 10.55 MB / 1.051 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/1.411, allocations: 5.984 kB / 1.051 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.062e-05/1.411, allocations: 18.89 kB / 1.051 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0283/1.439, allocations: 31.85 MB / 1.083 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/1.439, allocations: 16 kB / 1.083 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01196/1.451, allocations: 2.241 MB / 1.085 GB, free: 119 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01205/1.463, allocations: 4.386 MB / 1.089 GB, free: 116 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002314/1.463, allocations: 174.4 kB / 1.089 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/1.474, allocations: 25.57 MB / 1.114 GB, free: 89.09 MB / 0.5105 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.000492/1.474, allocations: 0.6215 MB / 1.115 GB, free: 88.45 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01167/1.486, allocations: 14.42 MB / 1.129 GB, free: 73.86 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006242/1.487, allocations: 484.2 kB / 1.129 GB, free: 73.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004593/1.487, allocations: 96.16 kB / 1.129 GB, free: 73.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/1.488, allocations: 95.95 kB / 1.13 GB, free: 73.43 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000535/1.489, allocations: 433 kB / 1.13 GB, free: 73.01 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/1.489, allocations: 310.5 kB / 1.13 GB, free: 72.71 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003446/1.492, allocations: 5.521 MB / 1.136 GB, free: 67.17 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.2e-07/1.492, allocations: 2.625 kB / 1.136 GB, free: 67.17 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003948/1.496, allocations: 1.989 MB / 1.138 GB, free: 65.2 MB / 0.5105 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.0005687/1.497, allocations: 493.2 kB / 1.138 GB, free: 64.82 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01595/1.513, allocations: 17.42 MB / 1.155 GB, free: 47.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/1.513, allocations: 4 kB / 1.155 GB, free: 47.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00803/1.521, allocations: 5.417 MB / 1.16 GB, free: 41.91 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/1.523, allocations: 0.8845 MB / 1.161 GB, free: 41.11 MB / 0.5105 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: 3.1300072195008397] Failed to read output from testmodel.py, exit status != 0: 1.5285605480894446 1.533469229 1.095432753 Calling exit ...