Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.Diffusion.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.001247/0.001247, allocations: 109.2 kB / 18.94 MB, free: 2.949 MB / 14.72 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.001343/0.001343, allocations: 217.3 kB / 22.25 MB, free: 5.125 MB / 14.72 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.342/1.342, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 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.1271/0.1271, allocations: 23.87 MB / 336.3 MB, free: 11.19 MB / 270.1 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.Examples.Diffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Diffusion") translateModel(Chemical.Examples.Diffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Diffusion") [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 67.91 kB / 471.6 MB, free: 7.199 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2648, allocations: 59.86 MB / 0.519 GB, free: 9.895 MB / 382.1 MB [/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.Examples.Diffusion): time 0.07049/0.3353, allocations: 61.64 MB / 0.5792 GB, free: 12.3 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03058/0.3658, allocations: 16.9 MB / 0.5957 GB, free: 11.45 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006958/0.3728, allocations: 123.4 kB / 0.5959 GB, free: 11.33 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006603/0.3794, allocations: 2.599 MB / 0.5984 GB, free: 8.711 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009796/0.3892, allocations: 3.509 MB / 0.6018 GB, free: 5.176 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006855/0.3961, allocations: 2.894 MB / 0.6046 GB, free: 2.273 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01521/0.4113, allocations: 10.88 MB / 0.6153 GB, free: 7.352 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003949/0.4152, allocations: 2.403 MB / 0.6176 GB, free: 4.852 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006053/0.4213, allocations: 4.484 MB / 0.622 GB, free: 360 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007739/0.429, allocations: 5.388 MB / 0.6273 GB, free: 10.94 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00259/0.4316, allocations: 1.223 MB / 0.6285 GB, free: 9.719 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006938/0.4385, allocations: 2.911 MB / 0.6313 GB, free: 6.805 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003456/0.442, allocations: 3.602 MB / 0.6348 GB, free: 3.191 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006895/0.4489, allocations: 6.611 MB / 0.6413 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01991/0.4688, allocations: 17.06 MB / 0.6579 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.4688, allocations: 0 / 0.6579 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.196e-06/0.4688, allocations: 7.984 kB / 0.6579 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0002811/0.4691, allocations: 0 / 0.6579 GB, free: 11.41 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3564 * Number of variables: 3564 Notification: Performance of Generate backend data structure: time 0.02058/0.4897, allocations: 12.64 MB / 0.6703 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.4897, allocations: 11.97 kB / 0.6703 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005454/0.4952, allocations: 2.393 MB / 0.6726 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008373/0.5035, allocations: 5.269 MB / 0.6778 GB, free: 6.91 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001744/0.5053, allocations: 2.016 MB / 0.6797 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001448/0.5067, allocations: 1.129 MB / 0.6808 GB, free: 3.629 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05465/0.5614, allocations: 47.14 MB / 0.7269 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000164/0.5615, allocations: 7.938 kB / 0.7269 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008032/0.5623, allocations: 471.9 kB / 0.7273 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001923/0.5643, allocations: 1.843 MB / 0.7291 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4309/0.9952, allocations: 79.11 MB / 0.8064 GB, free: 117 MB / 0.5607 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.1185/1.114, allocations: 113.8 MB / 0.9175 GB, free: 3.719 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02558/1.139, allocations: 19.28 MB / 0.9364 GB, free: 424 kB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02066/1.16, allocations: 15.44 MB / 0.9515 GB, free: 0.9609 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004878/1.165, allocations: 1.194 MB / 0.9526 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001014/1.165, allocations: 98.38 kB / 0.9527 GB, free: 15.67 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=533): time 6.652e-06/1.165, allocations: 0 / 0.9527 GB, free: 15.67 MB / 0.6075 GB Notification: Performance of matching and sorting (n=755): time 0.523/1.688, allocations: 131.3 MB / 1.081 GB, free: 125.9 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07068/1.759, allocations: 52.71 MB / 1.132 GB, free: 71.98 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01375/1.772, allocations: 13.68 MB / 1.146 GB, free: 58.36 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.002374/1.775, allocations: 141.7 kB / 1.146 GB, free: 58.22 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.002944/1.778, allocations: 5.435 MB / 1.151 GB, free: 53.07 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.003286/1.781, allocations: 2.641 MB / 1.154 GB, free: 50.68 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004934/1.786, allocations: 2.424 MB / 1.156 GB, free: 48.25 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 3.062e-05/1.786, allocations: 309.1 kB / 1.156 GB, free: 47.95 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02142/1.807, allocations: 22.83 MB / 1.179 GB, free: 25.14 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02283/1.83, allocations: 23.9 MB / 1.202 GB, free: 0.9492 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.712/2.542, allocations: 116.8 MB / 1.316 GB, free: 116.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.655e-05/2.542, allocations: 8 kB / 1.316 GB, free: 116.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.07166/2.614, allocations: 51.84 MB / 1.367 GB, free: 65.27 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.936e-05/2.614, allocations: 16 kB / 1.367 GB, free: 65.25 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.166e-05/2.614, allocations: 24 kB / 1.367 GB, free: 65.23 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03937/2.653, allocations: 13.51 MB / 1.38 GB, free: 51.71 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02642/2.68, allocations: 4.416 MB / 1.384 GB, free: 47.29 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2823/2.962, allocations: 75.41 MB / 1.458 GB, free: 187.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01323/2.975, allocations: 0.6259 MB / 1.459 GB, free: 187.4 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003709/2.979, allocations: 1.719 MB / 1.46 GB, free: 187.4 MB / 0.6232 GB Warning: Assuming fixed start value for the following 5 variables: d5.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d4.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d3.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d1.rear.n_flow:VARIABLE(flow=true unit = \"mol/s\" fixed = true ) \"Molar change of the substance\" type: Real d2.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: 111 * 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 (778): * Single equations (assignments): 746 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 26 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 20 systems {(4,3,62.5%), (1,4,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (2,1,100.0%), (4,3,62.5%), (1,4,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(6,20), (4,3), (3,8), (2,1), (6,20), (4,3)} Notification: Performance of prepare postOptimizeDAE: time 0.007981/2.987, allocations: 2.759 MB / 1.463 GB, free: 187.3 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003619/2.99, allocations: 1.193 MB / 1.464 GB, free: 187.3 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07093/3.061, allocations: 31.02 MB / 1.494 GB, free: 177.1 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04156/3.103, allocations: 17.99 MB / 1.512 GB, free: 170 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-05/3.103, allocations: 7.844 kB / 1.512 GB, free: 170 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001908/3.103, allocations: 39.42 kB / 1.512 GB, free: 170 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08992/3.193, allocations: 67.09 MB / 1.577 GB, free: 108.8 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.609e-05/3.193, allocations: 35.94 kB / 1.578 GB, free: 108.8 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01259/3.206, allocations: 1.895 MB / 1.579 GB, free: 106.9 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03279/3.239, allocations: 7.189 MB / 1.586 GB, free: 99.84 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00123/3.24, allocations: 299.8 kB / 1.587 GB, free: 99.55 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05572/3.296, allocations: 51.45 MB / 1.637 GB, free: 46.09 MB / 0.6232 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! 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! 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.01615/3.312, allocations: 11.66 MB / 1.648 GB, free: 33.8 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04992/3.362, allocations: 26.9 MB / 1.675 GB, free: 6.066 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003863/3.365, allocations: 1.809 MB / 1.676 GB, free: 4.254 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001844/3.367, allocations: 188.2 kB / 1.677 GB, free: 4.074 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005396/3.373, allocations: 326.3 kB / 1.677 GB, free: 3.758 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001668/3.374, allocations: 0.8746 MB / 1.678 GB, free: 2.898 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006183/3.375, allocations: 475.8 kB / 1.678 GB, free: 2.434 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.233/3.608, allocations: 13.82 MB / 1.692 GB, free: 178.8 MB / 0.6232 GB Notification: Performance of sort global known variables: time 1.8e-07/3.608, allocations: 0 / 1.692 GB, free: 178.8 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01282/3.621, allocations: 4.134 MB / 1.696 GB, free: 178.8 MB / 0.6232 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 146 * Number of states: 19 ($STATESET8.x[3],$STATESET8.x[2],$STATESET8.x[1],d5.rear.n_flow,$STATESET7.x,$STATESET6.x[3],$STATESET6.x[2],$STATESET6.x[1],d4.rear.n_flow,$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],d3.rear.n_flow,$STATESET4.x,$STATESET3.x,d1.rear.n_flow,$STATESET2.x,$STATESET1.x,d2.rear.n_flow) * Number of discrete variables: 11 ($cse169,$cse163,$cse148,$cse143,$cse136,$cse127,$cse121,$cse110,$cse103,$cse93,$cse87) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (581): * Single equations (assignments): 556 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 25 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 14 systems {(1,4,100.0%), (4,3,62.5%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (2,1,100.0%), (1,4,100.0%), (4,3,62.5%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%), (1,4,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 11 systems {(4,20), (9,10), (3,3), (3,9), (8,10), (4,20), (9,10), (3,3), (3,3), (3,3), (3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001469/3.622, allocations: 0.6472 MB / 1.696 GB, free: 178.7 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.03667/3.659, allocations: 29.52 MB / 1.725 GB, free: 168.8 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 2.871e-05/3.659, allocations: 3.969 kB / 1.725 GB, free: 168.8 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.01696/3.676, allocations: 9.994 MB / 1.735 GB, free: 163.7 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01111/3.687, allocations: 2.793 MB / 1.738 GB, free: 162.8 MB / 0.6232 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4733:9-4733:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:822:5-822:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 656] [Calling sys.exit(0), Time elapsed: 5.909493027022108] Failed to read output from testmodel.py, exit status != 0: 3.6960681728087366 3.704686449 3.233705797 Calling exit ...