Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Boundaries.Tests.TestExternalSubstance.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.001823/0.001823, allocations: 88.05 kB / 19.44 MB, free: 320 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.001971/0.001971, allocations: 173.3 kB / 22.76 MB, free: 1.641 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.555/1.555, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.144/0.144, allocations: 17.44 MB / 277 MB, free: 11.6 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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.TestExternalSubstance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Boundaries.Tests.TestExternalSubstance") translateModel(Chemical.Boundaries.Tests.TestExternalSubstance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Boundaries.Tests.TestExternalSubstance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.724e-06/1.724e-06, allocations: 0 / 352.8 MB, free: 10.21 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.864e-05/3.037e-05, allocations: 8.641 kB / 352.8 MB, free: 10.21 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Interfaces.mo:1586:5-1586: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 master/Interfaces.mo:1586:5-1586: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 master/Boundaries.mo:1361:7-1361: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 master/Boundaries.mo:1361:7-1361: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.TestExternalSubstance): time 0.06989/0.06992, allocations: 50.25 MB / 403.1 MB, free: 8.008 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.2034/0.2733, allocations: 14.05 MB / 417.1 MB, free: 31.8 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008139/0.2815, allocations: 197.7 kB / 417.3 MB, free: 31.8 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008645/0.2901, allocations: 2.058 MB / 419.4 MB, free: 31.74 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0127/0.3028, allocations: 3.241 MB / 422.6 MB, free: 30.99 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006733/0.3095, allocations: 2.068 MB / 424.7 MB, free: 30.22 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01174/0.3213, allocations: 7.889 MB / 432.6 MB, free: 26.31 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003084/0.3244, allocations: 1.756 MB / 434.3 MB, free: 25.46 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008574/0.3329, allocations: 4.651 MB / 439 MB, free: 22.71 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006491/0.3394, allocations: 3.31 MB / 442.3 MB, free: 21.12 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002073/0.3415, allocations: 0.7277 MB / 443 MB, free: 21.12 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007348/0.3489, allocations: 1.888 MB / 444.9 MB, free: 20.71 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002671/0.3515, allocations: 2.404 MB / 447.3 MB, free: 18.71 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006308/0.3578, allocations: 2.7 MB / 450 MB, free: 16.11 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01473/0.3726, allocations: 11.81 MB / 461.8 MB, free: 4.891 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3726, allocations: 0 / 461.8 MB, free: 4.891 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3726, allocations: 2.656 kB / 461.8 MB, free: 4.891 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004582/0.373, allocations: 0 / 461.8 MB, free: 4.891 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2385 * Number of variables: 2385 Notification: Performance of Generate backend data structure: time 0.02146/0.3945, allocations: 10.06 MB / 471.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.3945, allocations: 15.97 kB / 471.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01054/0.4051, allocations: 3.478 MB / 475.4 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.011/0.4161, allocations: 4.416 MB / 479.8 MB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001391/0.4175, allocations: 0.9774 MB / 480.8 MB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00216/0.4196, allocations: 0.7483 MB / 481.5 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03045/0.4501, allocations: 11.71 MB / 493.2 MB, free: 5.145 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002136/0.4503, allocations: 12.06 kB / 493.2 MB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001262/0.4516, allocations: 325.8 kB / 493.6 MB, free: 4.832 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00156/0.4531, allocations: 1.172 MB / 494.7 MB, free: 3.652 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03076/0.4839, allocations: 19.25 MB / 0.5019 GB, free: 380 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08893/0.5728, allocations: 51.02 MB / 0.5517 GB, free: 12.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009628/0.5824, allocations: 2.84 MB / 0.5545 GB, free: 9.398 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004598/0.587, allocations: 1.788 MB / 0.5563 GB, free: 7.598 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.325/0.9121, allocations: 11.52 MB / 0.5675 GB, free: 144.2 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.48e-05/0.9121, allocations: 70.94 kB / 0.5676 GB, free: 144.1 MB / 442.8 MB Notification: Performance of pre-optimization done (n=226): time 4.769e-06/0.9121, allocations: 1.438 kB / 0.5676 GB, free: 144.1 MB / 442.8 MB Notification: Performance of matching and sorting (n=290): time 0.1045/1.017, allocations: 28.53 MB / 0.5954 GB, free: 135.2 MB / 442.8 MB 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 inlineWhenForInitialization (initialization): time 0.0006239/1.017, allocations: 0.9568 MB / 0.5964 GB, free: 134.3 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004764/1.022, allocations: 4.338 MB / 0.6006 GB, free: 132.1 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009096/1.023, allocations: 73.7 kB / 0.6007 GB, free: 132 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00269/1.026, allocations: 4.672 MB / 0.6052 GB, free: 128.4 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001575/1.027, allocations: 1.096 MB / 0.6063 GB, free: 127.4 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002348/1.03, allocations: 1.351 MB / 0.6076 GB, free: 126.1 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 7.249e-05/1.03, allocations: 480.7 kB / 0.6081 GB, free: 125.7 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004398/1.034, allocations: 2.616 MB / 0.6106 GB, free: 123 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005141/1.039, allocations: 4.744 MB / 0.6153 GB, free: 117.4 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0146/1.054, allocations: 10.3 MB / 0.6253 GB, free: 106.3 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.809e-05/1.054, allocations: 12 kB / 0.6254 GB, free: 106.3 MB / 442.8 MB Notification: Performance of matching and sorting (n=508) (initialization): time 0.01755/1.071, allocations: 8.479 MB / 0.6336 GB, free: 97.8 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.73e-05/1.071, allocations: 24 kB / 0.6337 GB, free: 97.77 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.569e-05/1.071, allocations: 48 kB / 0.6337 GB, free: 97.73 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005517/1.077, allocations: 1.29 MB / 0.635 GB, free: 96.42 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04038/1.117, allocations: 3.315 MB / 0.6382 GB, free: 93.16 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02039/1.138, allocations: 31.5 MB / 0.669 GB, free: 59.74 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01048/1.148, allocations: 222.4 kB / 0.6692 GB, free: 59.53 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002651/1.151, allocations: 0.7849 MB / 0.6699 GB, free: 58.75 MB / 442.8 MB Warning: Assuming fixed start value for the following 8 variables: 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 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 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: 212 * Number of states: 0 () * Number of discrete variables: 6 (solvent.substanceDefinitionVar.SelfClustering,solvent.substanceDefinitionVar.data.phase,externalSubstance2.substanceDefinitionVar.SelfClustering,externalSubstance2.substanceDefinitionVar.data.phase,externalIdealGas.substanceDefinitionVar.SelfClustering,externalIdealGas.substanceDefinitionVar.data.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (480): * Single equations (assignments): 463 * 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%), (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%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,16), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.006322/1.157, allocations: 1.018 MB / 0.6709 GB, free: 57.73 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003305/1.161, allocations: 0.5519 MB / 0.6715 GB, free: 57.18 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02546/1.186, allocations: 8.936 MB / 0.6802 GB, free: 48.31 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.409e-05/1.186, allocations: 24 kB / 0.6802 GB, free: 48.29 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/1.186, allocations: 4 kB / 0.6802 GB, free: 48.29 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-05/1.186, allocations: 22.59 kB / 0.6802 GB, free: 48.27 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03168/1.218, allocations: 18.32 MB / 0.6981 GB, free: 29.7 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/1.218, allocations: 14.62 kB / 0.6982 GB, free: 29.69 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03583/1.254, allocations: 2.478 MB / 0.7006 GB, free: 27.26 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006355/1.26, allocations: 1.35 MB / 0.7019 GB, free: 25.89 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007491/1.261, allocations: 147.9 kB / 0.702 GB, free: 25.75 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2274/1.488, allocations: 31.76 MB / 0.7331 GB, free: 115 MB / 442.8 MB 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.000751/1.489, allocations: 0.7996 MB / 0.7338 GB, free: 114.3 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02089/1.51, allocations: 7.725 MB / 0.7414 GB, free: 112.9 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/1.511, allocations: 368.2 kB / 0.7417 GB, free: 112.9 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002071/1.514, allocations: 81.78 kB / 0.7418 GB, free: 112.9 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004394/1.518, allocations: 83.97 kB / 0.7419 GB, free: 112.9 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001367/1.519, allocations: 328.2 kB / 0.7422 GB, free: 112.9 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006293/1.52, allocations: 269.7 kB / 0.7425 GB, free: 112.9 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.006546/1.526, allocations: 3.43 MB / 0.7458 GB, free: 112.6 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.5e-07/1.526, allocations: 0 / 0.7458 GB, free: 112.6 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.009277/1.536, allocations: 1.749 MB / 0.7475 GB, free: 112.6 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 10 (boundaryFore1.rear.n_flow,boundaryRear1.fore.n_flow,boundaryFore2.rear.n_flow,boundaryRear4.fore.n_flow,$STATESET1.x,boundaryFore.rear.n_flow,boundaryRear2.fore.n_flow,boundaryRear3.fore.n_flow,boundaryFore3.rear.n_flow,solvent.logm) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (252): * Single equations (assignments): 235 * 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 {(1,18), (3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001874/1.538, allocations: 477.9 kB / 0.748 GB, free: 112.5 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.02712/1.565, allocations: 8.098 MB / 0.7559 GB, free: 110.8 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 2.145e-05/1.565, allocations: 3.688 kB / 0.7559 GB, free: 110.8 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01957/1.584, allocations: 4.634 MB / 0.7604 GB, free: 108.7 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009012/1.593, allocations: 1.114 MB / 0.7615 GB, free: 108.4 MB / 442.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4687:9-4687:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:848:5-848: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.948755446006544]