Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Examples.WaterSublimation.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.001172/0.001172, 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.001378/0.001378, allocations: 173 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.052/1.052, allocations: 177.2 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.09919/0.09919, allocations: 17.47 MB / 277.4 MB, free: 11.56 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.Examples.WaterSublimation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Examples.WaterSublimation") translateModel(Chemical.Examples.WaterSublimation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Examples.WaterSublimation") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 353.5 MB, free: 9.859 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.444e-05, allocations: 6.25 kB / 353.6 MB, free: 9.852 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. Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterSublimation): time 0.03247/0.0325, allocations: 37.57 MB / 391.1 MB, free: 4.379 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.3104/0.3429, allocations: 141.5 MB / 0.5202 GB, free: 6.199 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00296/0.3458, allocations: 87.31 kB / 0.5202 GB, free: 6.113 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003559/0.3494, allocations: 1.258 MB / 0.5215 GB, free: 4.867 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004797/0.3542, allocations: 1.679 MB / 0.5231 GB, free: 3.176 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00422/0.3584, allocations: 1.96 MB / 0.525 GB, free: 1.207 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.00565/0.364, allocations: 4.169 MB / 0.5291 GB, free: 13.02 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001066/0.3651, allocations: 0.7236 MB / 0.5298 GB, free: 12.25 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002908/0.368, allocations: 2.116 MB / 0.5319 GB, free: 10.12 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002397/0.3704, allocations: 1.519 MB / 0.5334 GB, free: 8.602 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005802/0.371, allocations: 332 kB / 0.5337 GB, free: 8.277 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003222/0.3742, allocations: 1.505 MB / 0.5351 GB, free: 6.77 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006551/0.3749, allocations: 1.051 MB / 0.5362 GB, free: 5.715 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001259/0.3761, allocations: 1.219 MB / 0.5374 GB, free: 4.492 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006778/0.3829, allocations: 4.281 MB / 0.5415 GB, free: 200 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3829, allocations: 0 / 0.5415 GB, free: 200 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3829, allocations: 0 / 0.5415 GB, free: 200 kB / 410.7 MB Notification: Performance of Transformations before backend: time 9.024e-05/0.383, allocations: 0 / 0.5415 GB, free: 200 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1015 * Number of variables: 1015 Notification: Performance of Generate backend data structure: time 0.004823/0.3878, allocations: 4.406 MB / 0.5458 GB, free: 11.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.3879, allocations: 16.03 kB / 0.5459 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002018/0.3899, allocations: 1.547 MB / 0.5474 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00205/0.3919, allocations: 1.98 MB / 0.5493 GB, free: 8.137 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/0.3922, allocations: 433.4 kB / 0.5497 GB, free: 7.676 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002953/0.3925, allocations: 340.3 kB / 0.55 GB, free: 7.344 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004534/0.397, allocations: 3.818 MB / 0.5538 GB, free: 3.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.765e-05/0.3971, allocations: 192 / 0.5538 GB, free: 3.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000152/0.3972, allocations: 136.3 kB / 0.5539 GB, free: 3.367 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003019/0.3975, allocations: 479.7 kB / 0.5544 GB, free: 2.898 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2461/0.6437, allocations: 5.538 MB / 0.5598 GB, free: 27.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02079/0.6645, allocations: 13.46 MB / 0.5729 GB, free: 26.46 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.6659, allocations: 1.055 MB / 0.5739 GB, free: 26.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000835/0.6668, allocations: 0.6194 MB / 0.5745 GB, free: 26.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008388/0.6752, allocations: 6.452 MB / 0.5808 GB, free: 25.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.6752, allocations: 49.67 kB / 0.5809 GB, free: 25.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=136): time 3.487e-06/0.6752, allocations: 0.6875 kB / 0.5809 GB, free: 25.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=192): time 0.04198/0.7172, allocations: 14.29 MB / 0.5949 GB, free: 24.09 MB / 426.7 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.007041/0.7242, allocations: 6.025 MB / 0.6007 GB, free: 19.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002152/0.7264, allocations: 1.758 MB / 0.6025 GB, free: 18.77 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006991/0.7271, allocations: 57.27 kB / 0.6025 GB, free: 18.71 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001127/0.7282, allocations: 2.014 MB / 0.6045 GB, free: 17.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007945/0.729, allocations: 0.674 MB / 0.6051 GB, free: 16.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001084/0.7301, allocations: 0.7023 MB / 0.6058 GB, free: 16.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 4.662e-05/0.7301, allocations: 476.8 kB / 0.6063 GB, free: 16.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001671/0.7318, allocations: 1.038 MB / 0.6073 GB, free: 15.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002204/0.734, allocations: 2.124 MB / 0.6094 GB, free: 14.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005738/0.7397, allocations: 4.65 MB / 0.6139 GB, free: 12.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-05/0.7398, allocations: 10.06 kB / 0.6139 GB, free: 12.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=312) (initialization): time 0.01314/0.7529, allocations: 5.269 MB / 0.6191 GB, free: 8.121 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.957e-05/0.7529, allocations: 19.94 kB / 0.6191 GB, free: 8.102 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.441e-05/0.753, allocations: 24 kB / 0.6191 GB, free: 8.078 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0103/0.7633, allocations: 3.452 MB / 0.6225 GB, free: 4.848 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003057/0.7663, allocations: 0.9083 MB / 0.6234 GB, free: 3.984 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009912/0.7763, allocations: 11.44 MB / 0.6345 GB, free: 8.062 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002378/0.7786, allocations: 143.6 kB / 0.6347 GB, free: 7.926 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005643/0.7792, allocations: 431.4 kB / 0.6351 GB, free: 7.508 MB / 442.7 MB Warning: Assuming fixed start value for the following 1 variables: gasVolatility.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: 110 * Number of states: 0 () * Number of discrete variables: 4 (H2O_solid.substanceDefinitionVar.SelfClustering,H2O_solid.substanceDefinitionVar.data.phase,otherSubstances.substanceDefinitionVar.SelfClustering,otherSubstances.substanceDefinitionVar.data.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (255): * Single equations (assignments): 248 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(5,13), (4,14), (4,3), (2,3), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.001538/0.7807, allocations: 314.9 kB / 0.6354 GB, free: 7.223 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007825/0.7815, allocations: 306.5 kB / 0.6357 GB, free: 6.922 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01406/0.7956, allocations: 5.868 MB / 0.6414 GB, free: 1.098 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.142e-05/0.7956, allocations: 20 kB / 0.6414 GB, free: 1.078 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.028e-05/0.7956, allocations: 7.938 kB / 0.6414 GB, free: 1.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.26e-05/0.7957, allocations: 11.95 kB / 0.6414 GB, free: 1.059 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01974/0.8154, allocations: 10.35 MB / 0.6515 GB, free: 6.508 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.8154, allocations: 5.203 kB / 0.6515 GB, free: 6.504 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002604/0.818, allocations: 0.6191 MB / 0.6521 GB, free: 5.898 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01179/0.8298, allocations: 3.666 MB / 0.6557 GB, free: 2.215 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005059/0.8303, allocations: 115.9 kB / 0.6558 GB, free: 2.102 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02057/0.8509, allocations: 14.7 MB / 0.6702 GB, free: 2.797 MB / 474.7 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.007858/0.8587, allocations: 5.641 MB / 0.6757 GB, free: 12.87 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01953/0.8783, allocations: 5.695 MB / 0.6813 GB, free: 7.125 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006693/0.8789, allocations: 194.4 kB / 0.6815 GB, free: 6.934 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006853/0.8796, allocations: 47.88 kB / 0.6815 GB, free: 6.887 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/0.8814, allocations: 103.9 kB / 0.6816 GB, free: 6.785 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008943/0.8823, allocations: 228.8 kB / 0.6818 GB, free: 6.566 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004179/0.8827, allocations: 207.9 kB / 0.682 GB, free: 6.363 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001657/0.8844, allocations: 1.079 MB / 0.6831 GB, free: 5.262 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8844, allocations: 0 / 0.6831 GB, free: 5.262 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003843/0.8882, allocations: 1.058 MB / 0.6841 GB, free: 4.203 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 ($STATESET2.x,$STATESET1.x,H2O_gaseuous.logn,otherSubstances.logn,H2O_solid.logm,gasVolatility.rear.n_flow) * 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 (141): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,13,80.0%), (1,4,100.0%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(4,15), (5,7), (2,3), (3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009853/0.8892, allocations: 452.2 kB / 0.6845 GB, free: 3.824 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008496/0.8977, allocations: 3.828 MB / 0.6883 GB, free: 8 kB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.8977, allocations: 0 / 0.6883 GB, free: 8 kB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005709/0.9034, allocations: 2.663 MB / 0.6909 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/0.9055, allocations: 0.6223 MB / 0.6915 GB, free: 12.69 MB / 0.4948 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: 2.8078021011315286]