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.001345/0.001345, allocations: 92.22 kB / 19.65 MB, free: 276 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.001497/0.001497, 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 0.9248/0.9248, allocations: 177.1 MB / 203.4 MB, free: 5.641 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.1052/0.1052, allocations: 17.37 MB / 277.3 MB, free: 11.65 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.443e-06/1.443e-06, allocations: 0 / 353.4 MB, free: 9.996 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.596e-05/1.74e-05, allocations: 6.25 kB / 353.4 MB, free: 9.988 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.04212/0.04214, allocations: 51.53 MB / 405 MB, free: 6.496 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.273/0.3152, allocations: 141.5 MB / 0.5337 GB, free: 8.641 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003627/0.3188, allocations: 91.56 kB / 0.5338 GB, free: 8.551 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00348/0.3223, allocations: 1.98 MB / 0.5357 GB, free: 6.574 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004372/0.3266, allocations: 2.578 MB / 0.5382 GB, free: 3.977 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003217/0.3298, allocations: 1.717 MB / 0.5399 GB, free: 2.254 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.006378/0.3362, allocations: 7.26 MB / 0.547 GB, free: 10.98 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002169/0.3384, allocations: 1.745 MB / 0.5487 GB, free: 9.141 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004215/0.3426, allocations: 4.323 MB / 0.5529 GB, free: 4.809 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001977/0.3446, allocations: 2.403 MB / 0.5552 GB, free: 2.395 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006198/0.3452, allocations: 0.7578 MB / 0.556 GB, free: 1.637 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2214/0.5666, allocations: 1.684 MB / 0.5576 GB, free: 13.43 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002325/0.5689, allocations: 2.34 MB / 0.5599 GB, free: 13.43 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004558/0.5735, allocations: 2.642 MB / 0.5625 GB, free: 13.43 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007982/0.5815, allocations: 7.879 MB / 0.5702 GB, free: 12.74 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.5815, allocations: 0 / 0.5702 GB, free: 12.74 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5815, allocations: 5.719 kB / 0.5702 GB, free: 12.74 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.45e-05/0.5816, allocations: 0 / 0.5702 GB, free: 12.74 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.007246/0.5888, allocations: 9.228 MB / 0.5792 GB, free: 9.062 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.5888, allocations: 7.969 kB / 0.5792 GB, free: 9.062 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00317/0.592, allocations: 3.492 MB / 0.5826 GB, free: 8.469 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002992/0.595, allocations: 3.297 MB / 0.5858 GB, free: 7.527 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005742/0.5956, allocations: 1.289 MB / 0.5871 GB, free: 7.066 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005952/0.5962, allocations: 0.7384 MB / 0.5878 GB, free: 7.059 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01192/0.6081, allocations: 10.81 MB / 0.5984 GB, free: 5.633 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001443/0.6082, allocations: 13 kB / 0.5984 GB, free: 5.633 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005289/0.6088, allocations: 317.4 kB / 0.5987 GB, free: 5.633 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001079/0.6098, allocations: 1.214 MB / 0.5999 GB, free: 5.605 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01667/0.6265, allocations: 12.32 MB / 0.6119 GB, free: 4.348 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06078/0.6873, allocations: 46.62 MB / 0.6574 GB, free: 11.14 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007212/0.6945, allocations: 2.075 MB / 0.6595 GB, free: 9.051 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003381/0.6979, allocations: 1.022 MB / 0.6605 GB, free: 8.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001366/0.6992, allocations: 0.6972 MB / 0.6611 GB, free: 7.336 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.468e-05/0.6993, allocations: 63.39 kB / 0.6612 GB, free: 7.266 MB / 474.7 MB Notification: Performance of pre-optimization done (n=245): time 4.859e-06/0.6993, allocations: 0 / 0.6612 GB, free: 7.266 MB / 474.7 MB Notification: Performance of matching and sorting (n=324): time 0.09252/0.7918, allocations: 29.32 MB / 0.6898 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.006684/0.7985, allocations: 5.425 MB / 0.6951 GB, free: 4.375 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00326/0.8018, allocations: 3.223 MB / 0.6983 GB, free: 1.164 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005243/0.8023, allocations: 77.7 kB / 0.6984 GB, free: 1.082 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001825/0.8041, allocations: 4.199 MB / 0.7025 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001018/0.8051, allocations: 1.121 MB / 0.7036 GB, free: 11.77 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00248/0.8076, allocations: 1.242 MB / 0.7048 GB, free: 10.52 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.323e-05/0.8077, allocations: 476.8 kB / 0.7052 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00423/0.8119, allocations: 1.972 MB / 0.7071 GB, free: 8.078 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004906/0.8168, allocations: 2.974 MB / 0.71 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01212/0.8289, allocations: 7.046 MB / 0.7169 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.687e-05/0.829, allocations: 9 kB / 0.7169 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=442) (initialization): time 0.01461/0.8436, allocations: 6.967 MB / 0.7237 GB, free: 6.527 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.8436, allocations: 12 kB / 0.7238 GB, free: 6.516 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/0.8436, allocations: 20.97 kB / 0.7238 GB, free: 6.496 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01384/0.8575, allocations: 4.337 MB / 0.728 GB, free: 2.148 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02173/0.8792, allocations: 4.292 MB / 0.7322 GB, free: 13.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.224/1.103, allocations: 25.14 MB / 0.7567 GB, free: 114.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004498/1.108, allocations: 248.1 kB / 0.757 GB, free: 114.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001638/1.109, allocations: 0.9702 MB / 0.7579 GB, free: 114.8 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.003903/1.113, allocations: 400.5 kB / 0.7583 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001993/1.115, allocations: 0.5053 MB / 0.7588 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01547/1.131, allocations: 8.871 MB / 0.7675 GB, free: 114 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007238/1.138, allocations: 3.681 MB / 0.7711 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/1.138, allocations: 6.281 kB / 0.7711 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.763e-05/1.138, allocations: 18.52 kB / 0.7711 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0254/1.163, allocations: 18.13 MB / 0.7888 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/1.163, allocations: 18.06 kB / 0.7888 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01328/1.177, allocations: 2.254 MB / 0.791 GB, free: 111.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01395/1.191, allocations: 3.785 MB / 0.7947 GB, free: 111.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004202/1.191, allocations: 169.1 kB / 0.7949 GB, free: 111.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01185/1.203, allocations: 30.8 MB / 0.8249 GB, free: 82.61 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.0006116/1.204, allocations: 0.8302 MB / 0.8258 GB, free: 81.92 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009412/1.213, allocations: 5.791 MB / 0.8314 GB, free: 79.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009212/1.214, allocations: 480.3 kB / 0.8319 GB, free: 79.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005038/1.214, allocations: 89.02 kB / 0.832 GB, free: 79.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/1.216, allocations: 100.5 kB / 0.8321 GB, free: 79.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005916/1.216, allocations: 399.5 kB / 0.8324 GB, free: 79.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002916/1.216, allocations: 315.1 kB / 0.8327 GB, free: 79.88 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002935/1.219, allocations: 3.077 MB / 0.8357 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.21e-07/1.219, allocations: 1 kB / 0.8357 GB, free: 79.66 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004919/1.224, allocations: 1.988 MB / 0.8377 GB, free: 79.66 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.0007685/1.225, allocations: 0.4942 MB / 0.8382 GB, free: 79.56 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01277/1.238, allocations: 6.458 MB / 0.8445 GB, free: 76.97 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/1.238, allocations: 2.359 kB / 0.8445 GB, free: 76.97 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009589/1.247, allocations: 4.032 MB / 0.8484 GB, free: 72.95 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003656/1.251, allocations: 1.101 MB / 0.8495 GB, free: 71.93 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.912115450017154]