Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Processes.Tests.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.001221/0.001221, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001429/0.001429, allocations: 177 kB / 23.36 MB, free: 1.129 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.9814/0.9814, allocations: 177.1 MB / 203.8 MB, free: 5.484 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.1163/0.1163, allocations: 17.39 MB / 277.6 MB, free: 11.53 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.Processes.Tests.Diffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Processes.Tests.Diffusion") translateModel(Chemical.Processes.Tests.Diffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Processes.Tests.Diffusion") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.674e-06/1.674e-06, allocations: 0 / 300.7 MB, free: 1.645 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.408e-05/1.575e-05, allocations: 3.156 kB / 300.7 MB, free: 1.641 MB / 266.7 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.Processes.Tests.Diffusion): time 0.06505/0.06506, allocations: 68.31 MB / 369 MB, free: 15.99 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0345/0.09956, allocations: 17.14 MB / 386.1 MB, free: 14.78 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01013/0.1097, allocations: 119.5 kB / 386.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008802/0.1185, allocations: 2.649 MB / 388.9 MB, free: 12 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01465/0.1331, allocations: 3.663 MB / 392.5 MB, free: 8.305 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007985/0.1411, allocations: 2.921 MB / 395.5 MB, free: 5.375 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01708/0.1582, allocations: 11.28 MB / 406.7 MB, free: 10.05 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003592/0.1618, allocations: 2.47 MB / 409.2 MB, free: 7.453 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01553/0.1773, allocations: 6.849 MB / 416.1 MB, free: 0.5898 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007865/0.1852, allocations: 3.962 MB / 420 MB, free: 12.62 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00393/0.1891, allocations: 1.219 MB / 421.2 MB, free: 11.4 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01109/0.2002, allocations: 2.353 MB / 423.6 MB, free: 9.043 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007542/0.2078, allocations: 3.641 MB / 427.2 MB, free: 5.391 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01689/0.2246, allocations: 4.107 MB / 431.3 MB, free: 1.273 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02701/0.2516, allocations: 11.62 MB / 443 MB, free: 5.609 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.2517, allocations: 0 / 443 MB, free: 5.609 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2517, allocations: 4 kB / 443 MB, free: 5.605 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004574/0.2521, allocations: 0 / 443 MB, free: 5.605 MB / 410.7 MB 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.2868/0.5389, allocations: 12.37 MB / 455.3 MB, free: 79.27 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.539, allocations: 10.38 kB / 455.3 MB, free: 79.27 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01791/0.5569, allocations: 5.15 MB / 460.5 MB, free: 79.21 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01618/0.5731, allocations: 3.274 MB / 463.8 MB, free: 78.61 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001788/0.5749, allocations: 1.992 MB / 465.7 MB, free: 77.89 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002968/0.5778, allocations: 1.142 MB / 466.9 MB, free: 77.88 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02197/0.5998, allocations: 14.2 MB / 481.1 MB, free: 75.79 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002737/0.6001, allocations: 3.375 kB / 481.1 MB, free: 75.79 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009722/0.601, allocations: 472.4 kB / 481.6 MB, free: 75.45 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001084/0.6021, allocations: 1.838 MB / 483.4 MB, free: 73.85 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01541/0.6175, allocations: 16.4 MB / 499.8 MB, free: 57.61 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06866/0.6862, allocations: 48.62 MB / 0.5356 GB, free: 11.33 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007311/0.6935, allocations: 3.131 MB / 0.5386 GB, free: 8.277 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005138/0.6987, allocations: 1.399 MB / 0.54 GB, free: 6.898 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001545/0.7002, allocations: 0.7627 MB / 0.5407 GB, free: 6.145 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.919e-05/0.7003, allocations: 87.88 kB / 0.5408 GB, free: 6.051 MB / 410.8 MB Notification: Performance of pre-optimization done (n=533): time 9.057e-06/0.7003, allocations: 2.297 kB / 0.5408 GB, free: 6.051 MB / 410.8 MB Notification: Performance of matching and sorting (n=755): time 0.1628/0.8631, allocations: 41 MB / 0.5809 GB, free: 14.15 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03338/0.8965, allocations: 24.06 MB / 0.6044 GB, free: 5.398 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003845/0.9003, allocations: 2.972 MB / 0.6073 GB, free: 3.004 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002599/0.9029, allocations: 148.6 kB / 0.6074 GB, free: 2.859 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.1936/1.096, allocations: 4.589 MB / 0.6119 GB, free: 118.6 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004341/1.101, allocations: 2.637 MB / 0.6145 GB, free: 117.1 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007534/1.108, allocations: 1.8 MB / 0.6162 GB, free: 117.1 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 4.349e-05/1.108, allocations: 302.3 kB / 0.6165 GB, free: 116.8 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007843/1.116, allocations: 2.673 MB / 0.6191 GB, free: 116.8 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008487/1.125, allocations: 3.74 MB / 0.6228 GB, free: 115.8 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01914/1.144, allocations: 10.24 MB / 0.6328 GB, free: 114.6 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.315e-05/1.144, allocations: 8 kB / 0.6328 GB, free: 114.6 MB / 474.8 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.03366/1.178, allocations: 9.791 MB / 0.6423 GB, free: 114.1 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.815e-05/1.178, allocations: 15.16 kB / 0.6424 GB, free: 114.1 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.265e-05/1.178, allocations: 25.03 kB / 0.6424 GB, free: 114.1 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02455/1.202, allocations: 10.28 MB / 0.6524 GB, free: 113.6 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01863/1.221, allocations: 4.328 MB / 0.6566 GB, free: 111.3 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02538/1.246, allocations: 35.62 MB / 0.6914 GB, free: 78.82 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008092/1.254, allocations: 308.5 kB / 0.6917 GB, free: 78.57 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003471/1.258, allocations: 1.606 MB / 0.6933 GB, free: 76.99 MB / 474.8 MB Warning: Assuming fixed start value for the following 5 variables: d2.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 d3.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 d5.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 {(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%), (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%)} * 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.005614/1.263, allocations: 0.518 MB / 0.6938 GB, free: 76.58 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002977/1.266, allocations: 0.5932 MB / 0.6944 GB, free: 75.98 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03264/1.299, allocations: 15.6 MB / 0.7096 GB, free: 61.34 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01868/1.318, allocations: 5.715 MB / 0.7152 GB, free: 55.72 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.282e-05/1.318, allocations: 12 kB / 0.7152 GB, free: 55.71 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001706/1.318, allocations: 35.86 kB / 0.7152 GB, free: 55.68 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04788/1.366, allocations: 23.48 MB / 0.7382 GB, free: 33.5 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.283e-05/1.366, allocations: 40 kB / 0.7382 GB, free: 33.46 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007887/1.374, allocations: 2.355 MB / 0.7405 GB, free: 31.21 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02233/1.396, allocations: 6.998 MB / 0.7473 GB, free: 24.36 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001382/1.398, allocations: 255.8 kB / 0.7476 GB, free: 24.11 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0271/1.425, allocations: 36.27 MB / 0.783 GB, free: 2.441 MB / 490.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! 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.188/1.613, allocations: 10.03 MB / 0.7928 GB, free: 98.58 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0267/1.639, allocations: 10.7 MB / 0.8033 GB, free: 94.67 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002742/1.642, allocations: 0.6606 MB / 0.8039 GB, free: 94.67 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002378/1.644, allocations: 188 kB / 0.8041 GB, free: 94.67 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003822/1.648, allocations: 225.3 kB / 0.8043 GB, free: 94.67 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001773/1.65, allocations: 0.7595 MB / 0.805 GB, free: 94.67 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006255/1.651, allocations: 410.3 kB / 0.8054 GB, free: 94.67 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002585/1.653, allocations: 2.519 MB / 0.8079 GB, free: 94.54 MB / 490.8 MB Notification: Performance of sort global known variables: time 2.01e-07/1.653, allocations: 0 / 0.8079 GB, free: 94.54 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01105/1.664, allocations: 3.981 MB / 0.8118 GB, free: 94.54 MB / 490.8 MB 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.001593/1.666, allocations: 0.6182 MB / 0.8124 GB, free: 94.47 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01469/1.681, allocations: 8.596 MB / 0.8208 GB, free: 92.05 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001313/1.681, allocations: 52.56 kB / 0.8208 GB, free: 92.05 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008206/1.689, allocations: 6.032 MB / 0.8267 GB, free: 89.37 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008861/1.698, allocations: 1.823 MB / 0.8285 GB, free: 89.35 MB / 490.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4069:9-4069:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:791:5-791: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.509731166996062]