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.0009643/0.0009643, allocations: 105.5 kB / 18.95 MB, free: 1.184 MB / 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.0009138/0.0009138, allocations: 216.9 kB / 22.25 MB, free: 3.566 MB / 13.93 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.012/1.012, allocations: 230.6 MB / 256 MB, free: 9.602 MB / 202.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.09567/0.09567, allocations: 23.89 MB / 336.3 MB, free: 9.969 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: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(Chemical.Processes.Tests.Diffusion,fileNamePrefix="Chemical_Chemical_Processes_Tests_Diffusion",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Processes.Tests.Diffusion,fileNamePrefix="Chemical_Chemical_Processes_Tests_Diffusion",fmuType="me_cs",version="2.0",platforms={"static"}) [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.001392/0.001392, allocations: 74.08 kB / 472.7 MB, free: 16.36 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09535/0.09674, allocations: 59.87 MB / 0.5201 GB, free: 4.371 MB / 378.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.2566/0.3533, allocations: 64.01 MB / 0.5826 GB, free: 13.79 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.02523/0.3785, allocations: 15.57 MB / 0.5978 GB, free: 6.656 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006346/0.3849, allocations: 123.4 kB / 0.5979 GB, free: 6.535 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005014/0.3899, allocations: 2.502 MB / 0.6003 GB, free: 4.77 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00877/0.3987, allocations: 3.526 MB / 0.6038 GB, free: 2.477 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006592/0.4053, allocations: 2.876 MB / 0.6066 GB, free: 384 kB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.01224/0.4175, allocations: 10.87 MB / 0.6172 GB, free: 5.691 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002738/0.4202, allocations: 2.358 MB / 0.6195 GB, free: 3.324 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005163/0.4254, allocations: 4.484 MB / 0.6239 GB, free: 14.87 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005543/0.4309, allocations: 4.593 MB / 0.6284 GB, free: 10.33 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002176/0.4331, allocations: 1.23 MB / 0.6296 GB, free: 9.102 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004635/0.4378, allocations: 2.294 MB / 0.6318 GB, free: 6.824 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001682/0.4394, allocations: 3.591 MB / 0.6353 GB, free: 3.262 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0033/0.4427, allocations: 5.051 MB / 0.6403 GB, free: 14.23 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01291/0.4556, allocations: 17.02 MB / 0.6569 GB, free: 13.96 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.4557, allocations: 0 / 0.6569 GB, free: 13.96 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4557, allocations: 4 kB / 0.6569 GB, free: 13.96 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003757/0.456, allocations: 0 / 0.6569 GB, free: 13.96 MB / 490.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.01484/0.4709, allocations: 12.63 MB / 0.6692 GB, free: 1.336 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.4709, allocations: 11.98 kB / 0.6692 GB, free: 1.324 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001654/0.4726, allocations: 1.706 MB / 0.6709 GB, free: 15.63 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006885/0.4795, allocations: 2.873 MB / 0.6737 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01363/0.4931, allocations: 5.289 MB / 0.6789 GB, free: 7.492 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00442/0.4975, allocations: 2.011 MB / 0.6808 GB, free: 5.371 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001222/0.4987, allocations: 1.136 MB / 0.6819 GB, free: 4.258 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07017/0.5689, allocations: 47.28 MB / 0.7281 GB, free: 5.117 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000165/0.5691, allocations: 0 / 0.7281 GB, free: 5.117 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000745/0.5698, allocations: 476 kB / 0.7286 GB, free: 4.676 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00158/0.5714, allocations: 1.839 MB / 0.7304 GB, free: 2.824 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.455/1.026, allocations: 79.21 MB / 0.8077 GB, free: 185.5 MB / 0.5887 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.0951/1.121, allocations: 108.4 MB / 0.9136 GB, free: 83.17 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01582/1.137, allocations: 19.41 MB / 0.9326 GB, free: 63.75 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01171/1.149, allocations: 15.6 MB / 0.9478 GB, free: 48.15 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001108/1.15, allocations: 0.7489 MB / 0.9485 GB, free: 47.41 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/1.15, allocations: 94.53 kB / 0.9486 GB, free: 47.31 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=533): time 6.021e-06/1.15, allocations: 0 / 0.9486 GB, free: 47.31 MB / 0.5887 GB Notification: Performance of matching and sorting (n=755): time 0.4208/1.571, allocations: 132 MB / 1.078 GB, free: 165.4 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.04313/1.614, allocations: 51.84 MB / 1.128 GB, free: 112.4 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01287/1.627, allocations: 13.71 MB / 1.142 GB, free: 98.76 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 0.002789/1.63, allocations: 141.7 kB / 1.142 GB, free: 98.61 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 0.002323/1.632, allocations: 5.429 MB / 1.147 GB, free: 93.47 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.003222/1.635, allocations: 2.642 MB / 1.15 GB, free: 91.08 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00392/1.639, allocations: 2.434 MB / 1.152 GB, free: 88.64 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 3.929e-05/1.639, allocations: 301.1 kB / 1.152 GB, free: 88.35 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01803/1.657, allocations: 23.01 MB / 1.175 GB, free: 65.36 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02023/1.678, allocations: 24.07 MB / 1.198 GB, free: 41 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5302/2.208, allocations: 110.6 MB / 1.306 GB, free: 156 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.246e-05/2.208, allocations: 4 kB / 1.306 GB, free: 156 MB / 0.6043 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.06069/2.268, allocations: 52.16 MB / 1.357 GB, free: 104.7 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 4.316e-05/2.269, allocations: 16 kB / 1.357 GB, free: 104.7 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.813e-05/2.269, allocations: 25.09 kB / 1.357 GB, free: 104.7 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02392/2.292, allocations: 13.51 MB / 1.37 GB, free: 91.27 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01641/2.309, allocations: 4.495 MB / 1.375 GB, free: 86.8 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04619/2.355, allocations: 74.51 MB / 1.448 GB, free: 10.83 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0115/2.367, allocations: 0.6904 MB / 1.448 GB, free: 10.15 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004236/2.371, allocations: 1.722 MB / 1.45 GB, free: 8.426 MB / 0.6043 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.01095/2.382, allocations: 2.76 MB / 1.453 GB, free: 5.68 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005736/2.388, allocations: 1.194 MB / 1.454 GB, free: 4.48 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3184/2.706, allocations: 31.35 MB / 1.484 GB, free: 188.5 MB / 0.6199 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0317/2.738, allocations: 18.18 MB / 1.502 GB, free: 183.3 MB / 0.6199 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001003/2.738, allocations: 7.938 kB / 1.502 GB, free: 183.3 MB / 0.6199 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002144/2.738, allocations: 39.08 kB / 1.502 GB, free: 183.3 MB / 0.6199 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07426/2.812, allocations: 62.16 MB / 1.563 GB, free: 146 MB / 0.6199 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.503e-05/2.812, allocations: 34.62 kB / 1.563 GB, free: 146 MB / 0.6199 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007637/2.82, allocations: 1.974 MB / 1.565 GB, free: 144 MB / 0.6199 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01717/2.837, allocations: 7.167 MB / 1.572 GB, free: 137 MB / 0.6199 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001571/2.839, allocations: 306.4 kB / 1.572 GB, free: 136.7 MB / 0.6199 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03655/2.875, allocations: 50.49 MB / 1.621 GB, free: 84.24 MB / 0.6199 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.009306/2.884, allocations: 11.46 MB / 1.633 GB, free: 72.25 MB / 0.6199 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03827/2.923, allocations: 27.43 MB / 1.659 GB, free: 44.64 MB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004693/2.927, allocations: 1.809 MB / 1.661 GB, free: 42.82 MB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004123/2.932, allocations: 193 kB / 1.661 GB, free: 42.64 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007192/2.939, allocations: 396.9 kB / 1.662 GB, free: 42.26 MB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002918/2.942, allocations: 0.8755 MB / 1.663 GB, free: 41.38 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001242/2.943, allocations: 483.7 kB / 1.663 GB, free: 40.91 MB / 0.6199 GB Notification: Performance of sorting global known variables: time 0.01698/2.96, allocations: 13.82 MB / 1.677 GB, free: 27.14 MB / 0.6199 GB Notification: Performance of sort global known variables: time 1.9e-07/2.96, allocations: 0 / 1.677 GB, free: 27.14 MB / 0.6199 GB Notification: Performance of remove unused functions: time 0.01501/2.975, allocations: 4.111 MB / 1.681 GB, free: 23.05 MB / 0.6199 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.04179/3.017, allocations: 26.79 MB / 1.707 GB, free: 11.51 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.3005/3.317, allocations: 29.84 MB / 1.736 GB, free: 206.4 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.24e-05/3.317, allocations: 5.25 kB / 1.736 GB, free: 206.4 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0138/3.331, allocations: 10.13 MB / 1.746 GB, free: 201.3 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01558/3.347, allocations: 2.799 MB / 1.748 GB, free: 200.5 MB / 0.6355 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 657] [Calling sys.exit(0), Time elapsed: 5.3412967743352056]