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.00167/0.00167, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002007/0.002007, allocations: 213.4 kB / 22.24 MB, free: 5.258 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.793 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.1429/0.1429, allocations: 23.9 MB / 336.3 MB, free: 10.96 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.002228/0.002228, allocations: 67.89 kB / 471.6 MB, free: 7.008 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3622, allocations: 59.86 MB / 0.519 GB, free: 9.84 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.1028/0.465, allocations: 54.82 MB / 0.5726 GB, free: 2.895 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03439/0.4994, allocations: 15.55 MB / 0.5877 GB, free: 3.379 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01191/0.5113, allocations: 127.4 kB / 0.5879 GB, free: 3.254 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009735/0.5211, allocations: 2.498 MB / 0.5903 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01615/0.5372, allocations: 3.525 MB / 0.5937 GB, free: 13.18 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01041/0.5476, allocations: 2.875 MB / 0.5965 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02061/0.5682, allocations: 10.88 MB / 0.6072 GB, free: 15.38 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004623/0.5728, allocations: 2.364 MB / 0.6095 GB, free: 12.91 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007578/0.5804, allocations: 4.48 MB / 0.6139 GB, free: 8.418 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008769/0.5892, allocations: 4.595 MB / 0.6183 GB, free: 3.801 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004419/0.5936, allocations: 1.227 MB / 0.6195 GB, free: 2.574 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009246/0.6029, allocations: 2.287 MB / 0.6218 GB, free: 296 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005332/0.6082, allocations: 3.606 MB / 0.6253 GB, free: 12.67 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009909/0.6181, allocations: 5.052 MB / 0.6302 GB, free: 7.594 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0292/0.6473, allocations: 17.02 MB / 0.6469 GB, free: 6.504 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.6473, allocations: 4 kB / 0.6469 GB, free: 6.5 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.6473, allocations: 0 / 0.6469 GB, free: 6.5 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0006465/0.648, allocations: 0 / 0.6469 GB, free: 6.5 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.03041/0.6784, allocations: 12.64 MB / 0.6592 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.6784, allocations: 12.03 kB / 0.6592 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01091/0.6893, allocations: 2.865 MB / 0.662 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01229/0.7016, allocations: 5.3 MB / 0.6672 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002279/0.7039, allocations: 2.012 MB / 0.6692 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002524/0.7064, allocations: 1.133 MB / 0.6703 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06683/0.7732, allocations: 47.28 MB / 0.7164 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002209/0.7735, allocations: 0 / 0.7164 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001499/0.7749, allocations: 467.9 kB / 0.7169 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002115/0.7771, allocations: 1.847 MB / 0.7187 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.521/1.298, allocations: 79.2 MB / 0.796 GB, free: 127 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.1216/1.42, allocations: 103.6 MB / 0.8972 GB, free: 24.15 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02104/1.441, allocations: 19.41 MB / 0.9161 GB, free: 4.703 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02025/1.461, allocations: 15.61 MB / 0.9314 GB, free: 5.09 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002497/1.463, allocations: 0.7452 MB / 0.9321 GB, free: 4.348 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.619e-05/1.464, allocations: 98.47 kB / 0.9322 GB, free: 4.242 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=533): time 8.837e-06/1.464, allocations: 0 / 0.9322 GB, free: 4.242 MB / 0.5763 GB Notification: Performance of matching and sorting (n=755): time 0.6046/2.068, allocations: 131.5 MB / 1.061 GB, free: 145.8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07028/2.138, allocations: 51.58 MB / 1.111 GB, free: 93.07 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006615/2.145, allocations: 4.75 MB / 1.116 GB, free: 88.34 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.002557/2.148, allocations: 149.5 kB / 1.116 GB, free: 88.19 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.002383/2.15, allocations: 5.43 MB / 1.121 GB, free: 83.52 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.004394/2.154, allocations: 2.637 MB / 1.124 GB, free: 80.91 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008559/2.163, allocations: 2.473 MB / 1.126 GB, free: 78.43 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 3.391e-05/2.163, allocations: 305.1 kB / 1.126 GB, free: 78.13 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02446/2.187, allocations: 23 MB / 1.149 GB, free: 55.16 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0257/2.213, allocations: 24.07 MB / 1.172 GB, free: 30.78 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.7453/2.958, allocations: 110.6 MB / 1.28 GB, free: 152.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.847e-05/2.958, allocations: 4 kB / 1.28 GB, free: 152.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.07611/3.035, allocations: 51.57 MB / 1.331 GB, free: 101.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/3.035, allocations: 18.66 kB / 1.331 GB, free: 101.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.617e-05/3.035, allocations: 24.23 kB / 1.331 GB, free: 101.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04065/3.075, allocations: 13.51 MB / 1.344 GB, free: 87.83 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02905/3.104, allocations: 4.498 MB / 1.348 GB, free: 83.36 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06318/3.168, allocations: 74.08 MB / 1.421 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01336/3.181, allocations: 0.6921 MB / 1.421 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003612/3.185, allocations: 1.726 MB / 1.423 GB, free: 5.891 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.01165/3.196, allocations: 2.765 MB / 1.426 GB, free: 3.145 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004562/3.201, allocations: 0.6138 MB / 1.426 GB, free: 2.551 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3766/3.577, allocations: 30.82 MB / 1.456 GB, free: 191.6 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04788/3.625, allocations: 18.17 MB / 1.474 GB, free: 186 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001267/3.625, allocations: 13.94 kB / 1.474 GB, free: 186 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002456/3.626, allocations: 37.55 kB / 1.474 GB, free: 186 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1049/3.73, allocations: 64.63 MB / 1.537 GB, free: 148.8 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001019/3.731, allocations: 32 kB / 1.537 GB, free: 148.8 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0149/3.745, allocations: 1.972 MB / 1.539 GB, free: 146.9 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0348/3.78, allocations: 7.162 MB / 1.546 GB, free: 139.8 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001721/3.782, allocations: 299.8 kB / 1.546 GB, free: 139.5 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05519/3.837, allocations: 50.03 MB / 1.595 GB, free: 87.83 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.01584/3.853, allocations: 11.34 MB / 1.606 GB, free: 76 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0546/3.908, allocations: 26.8 MB / 1.633 GB, free: 48.71 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002517/3.91, allocations: 0.7972 MB / 1.633 GB, free: 48.09 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002802/3.913, allocations: 191 kB / 1.634 GB, free: 47.91 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007025/3.92, allocations: 398.3 kB / 1.634 GB, free: 47.53 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002398/3.922, allocations: 0.8753 MB / 1.635 GB, free: 46.65 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007358/3.923, allocations: 475.8 kB / 1.635 GB, free: 46.19 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.008006/3.931, allocations: 7.451 MB / 1.643 GB, free: 38.75 MB / 0.6232 GB Notification: Performance of sort global known variables: time 1.91e-07/3.931, allocations: 0 / 1.643 GB, free: 38.75 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01442/3.946, allocations: 3.992 MB / 1.646 GB, free: 34.78 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.002042/3.948, allocations: 0.6014 MB / 1.647 GB, free: 34.29 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.0386/3.986, allocations: 29.84 MB / 1.676 GB, free: 4.258 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 4.674e-05/3.986, allocations: 4 kB / 1.676 GB, free: 4.254 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.2894/4.276, allocations: 10.13 MB / 1.686 GB, free: 190.4 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009801/4.285, allocations: 1.511 MB / 1.688 GB, free: 190.4 MB / 0.6232 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4734:9-4734:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/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 656] [Calling sys.exit(0), Time elapsed: 6.85879460722208] Failed to read output from testmodel.py, exit status != 0: 4.2960404846817255 4.307642669 3.657456973 Calling exit ...