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.001346/0.001346, allocations: 104.3 kB / 19.7 MB, free: 2.008 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.001513/0.001513, allocations: 210.4 kB / 22.99 MB, free: 4.41 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.46/1.46, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.1667/0.1667, allocations: 23.87 MB / 337.1 MB, free: 10.94 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.002062/0.002062, allocations: 67.89 kB / 472.4 MB, free: 6.992 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.3927, allocations: 59.86 MB / 0.5197 GB, free: 9.738 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.1079/0.5006, allocations: 54.72 MB / 0.5732 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04156/0.5421, allocations: 15.56 MB / 0.5884 GB, free: 3.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01691/0.559, allocations: 127.4 kB / 0.5885 GB, free: 3.375 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01351/0.5726, allocations: 2.501 MB / 0.5909 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02442/0.597, allocations: 3.521 MB / 0.5944 GB, free: 13.31 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01307/0.61, allocations: 2.879 MB / 0.5972 GB, free: 10.42 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02122/0.6313, allocations: 10.88 MB / 0.6078 GB, free: 15.5 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004805/0.6361, allocations: 2.396 MB / 0.6102 GB, free: 13.01 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008126/0.6442, allocations: 4.492 MB / 0.6145 GB, free: 8.5 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01047/0.6547, allocations: 5.392 MB / 0.6198 GB, free: 3.086 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003784/0.6585, allocations: 1.223 MB / 0.621 GB, free: 1.863 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007728/0.6662, allocations: 2.334 MB / 0.6233 GB, free: 15.53 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005274/0.6715, allocations: 3.594 MB / 0.6268 GB, free: 11.92 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01002/0.6815, allocations: 5.06 MB / 0.6317 GB, free: 6.836 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02937/0.7108, allocations: 17.01 MB / 0.6483 GB, free: 5.758 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.7108, allocations: 0 / 0.6483 GB, free: 5.758 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7109, allocations: 0 / 0.6483 GB, free: 5.758 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0006136/0.7115, allocations: 4 kB / 0.6483 GB, free: 5.754 MB / 494.1 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.03683/0.7483, allocations: 12.64 MB / 0.6607 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.7484, allocations: 12.03 kB / 0.6607 GB, free: 9 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01223/0.7606, allocations: 2.857 MB / 0.6635 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01321/0.7738, allocations: 5.292 MB / 0.6687 GB, free: 0.7695 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003029/0.7768, allocations: 2.02 MB / 0.6706 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00395/0.7808, allocations: 1.129 MB / 0.6717 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0675/0.8483, allocations: 47.29 MB / 0.7179 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000236/0.8485, allocations: 0 / 0.7179 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001707/0.8502, allocations: 467.9 kB / 0.7184 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002056/0.8523, allocations: 1.847 MB / 0.7202 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.556/1.408, allocations: 79.21 MB / 0.7975 GB, free: 126.3 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.1365/1.545, allocations: 103.6 MB / 0.8987 GB, free: 23.46 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02249/1.567, allocations: 19.42 MB / 0.9176 GB, free: 4.008 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02191/1.589, allocations: 15.59 MB / 0.9329 GB, free: 4.406 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002818/1.592, allocations: 0.7491 MB / 0.9336 GB, free: 3.66 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.091e-05/1.592, allocations: 98.58 kB / 0.9337 GB, free: 3.555 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=533): time 8.626e-06/1.592, allocations: 0 / 0.9337 GB, free: 3.555 MB / 0.5763 GB Notification: Performance of matching and sorting (n=755): time 0.6897/2.282, allocations: 131.5 MB / 1.062 GB, free: 145.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.08051/2.362, allocations: 51.58 MB / 1.112 GB, free: 92.42 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006074/2.368, allocations: 4.749 MB / 1.117 GB, free: 87.69 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.00314/2.371, allocations: 155.9 kB / 1.117 GB, free: 87.54 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.002471/2.374, allocations: 5.42 MB / 1.123 GB, free: 82.85 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.004669/2.379, allocations: 2.639 MB / 1.125 GB, free: 80.25 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008086/2.387, allocations: 2.476 MB / 1.128 GB, free: 77.77 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 4.848e-05/2.387, allocations: 307.8 kB / 1.128 GB, free: 77.47 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02501/2.412, allocations: 23 MB / 1.15 GB, free: 54.5 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02609/2.438, allocations: 24.07 MB / 1.174 GB, free: 30.12 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.8577/3.296, allocations: 110.5 MB / 1.282 GB, free: 151.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.387e-05/3.296, allocations: 10.62 kB / 1.282 GB, free: 151.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.08484/3.38, allocations: 51.57 MB / 1.332 GB, free: 100.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.429e-05/3.381, allocations: 14.8 kB / 1.332 GB, free: 100.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.624e-05/3.381, allocations: 37.05 kB / 1.332 GB, free: 100.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04546/3.426, allocations: 13.52 MB / 1.345 GB, free: 87.19 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03158/3.458, allocations: 4.485 MB / 1.35 GB, free: 82.73 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07165/3.529, allocations: 74.09 MB / 1.422 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01563/3.545, allocations: 0.6964 MB / 1.423 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004641/3.55, allocations: 1.724 MB / 1.424 GB, free: 5.254 MB / 0.6075 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.0119/3.561, allocations: 2.754 MB / 1.427 GB, free: 2.52 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004942/3.566, allocations: 0.6126 MB / 1.428 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4081/3.974, allocations: 30.79 MB / 1.458 GB, free: 191.9 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05434/4.029, allocations: 18.18 MB / 1.476 GB, free: 186 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001437/4.029, allocations: 10.66 kB / 1.476 GB, free: 186 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002799/4.029, allocations: 37.73 kB / 1.476 GB, free: 186 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1194/4.149, allocations: 64.63 MB / 1.539 GB, free: 148.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001732/4.149, allocations: 32 kB / 1.539 GB, free: 148.3 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01479/4.164, allocations: 1.968 MB / 1.541 GB, free: 146.3 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03899/4.203, allocations: 7.171 MB / 1.548 GB, free: 139.2 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002058/4.205, allocations: 299.8 kB / 1.548 GB, free: 138.9 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06282/4.268, allocations: 50.02 MB / 1.597 GB, free: 87.29 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.0189/4.286, allocations: 11.34 MB / 1.608 GB, free: 75.46 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06451/4.351, allocations: 26.81 MB / 1.634 GB, free: 48.16 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00314/4.354, allocations: 0.799 MB / 1.635 GB, free: 47.52 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003616/4.358, allocations: 191.2 kB / 1.635 GB, free: 47.34 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008449/4.366, allocations: 402.2 kB / 1.635 GB, free: 46.96 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00304/4.369, allocations: 0.8746 MB / 1.636 GB, free: 46.08 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00127/4.37, allocations: 475.8 kB / 1.637 GB, free: 45.62 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.00947/4.38, allocations: 7.452 MB / 1.644 GB, free: 38.17 MB / 0.6232 GB Notification: Performance of sort global known variables: time 1.042e-06/4.38, allocations: 0 / 1.644 GB, free: 38.17 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.0167/4.397, allocations: 3.978 MB / 1.648 GB, free: 34.22 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.002583/4.399, allocations: 0.5983 MB / 1.648 GB, free: 33.73 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.04235/4.442, allocations: 29.84 MB / 1.678 GB, free: 3.699 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 5.462e-05/4.442, allocations: 4 kB / 1.678 GB, free: 3.695 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.3068/4.748, allocations: 10.13 MB / 1.688 GB, free: 190.3 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01326/4.762, allocations: 1.528 MB / 1.689 GB, free: 190.2 MB / 0.6232 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4734:9-4734:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 655] [Calling sys.exit(0), Time elapsed: 7.360914463992231] Failed to read output from testmodel.py, exit status != 0: 4.7727817250124644 4.787241703 4.072847904 Calling exit ...