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.001017/0.001017, allocations: 101.5 kB / 18.95 MB, free: 1.188 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.0009693/0.0009693, allocations: 211.6 kB / 22.25 MB, free: 3.57 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.09/1.09, allocations: 230.6 MB / 256 MB, free: 9.617 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.1179/0.1179, allocations: 23.89 MB / 336.3 MB, free: 9.98 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.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_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.002414/0.002414, allocations: 71.88 kB / 472.7 MB, free: 16.36 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09875/0.1012, allocations: 59.86 MB / 0.5201 GB, free: 4.387 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.Examples.Diffusion): time 0.2566/0.3578, allocations: 64.04 MB / 0.5826 GB, free: 13.78 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.02221/0.38, allocations: 15.57 MB / 0.5978 GB, free: 6.66 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007176/0.3872, allocations: 127.4 kB / 0.5979 GB, free: 6.535 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005213/0.3924, allocations: 2.497 MB / 0.6004 GB, free: 4.773 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007528/0.3999, allocations: 3.529 MB / 0.6038 GB, free: 2.477 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006208/0.4061, allocations: 2.871 MB / 0.6066 GB, free: 380 kB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.01023/0.4164, allocations: 10.87 MB / 0.6172 GB, free: 5.688 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002472/0.4188, allocations: 2.357 MB / 0.6195 GB, free: 3.32 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004779/0.4236, allocations: 4.491 MB / 0.6239 GB, free: 14.86 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005539/0.4291, allocations: 4.587 MB / 0.6284 GB, free: 10.33 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001969/0.4311, allocations: 1.223 MB / 0.6296 GB, free: 9.105 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004256/0.4354, allocations: 2.301 MB / 0.6318 GB, free: 6.82 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001837/0.4372, allocations: 3.592 MB / 0.6354 GB, free: 3.258 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007117/0.4443, allocations: 5.059 MB / 0.6403 GB, free: 14.22 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01969/0.464, allocations: 17.02 MB / 0.6569 GB, free: 13.96 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.464, allocations: 0 / 0.6569 GB, free: 13.96 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.464, allocations: 0 / 0.6569 GB, free: 13.96 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000628/0.4646, 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.01881/0.4835, allocations: 12.64 MB / 0.6693 GB, free: 1.336 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.4835, allocations: 11.98 kB / 0.6693 GB, free: 1.324 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001528/0.485, allocations: 1.709 MB / 0.6709 GB, free: 15.63 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005127/0.4902, allocations: 2.868 MB / 0.6737 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006982/0.4971, allocations: 5.289 MB / 0.6789 GB, free: 7.496 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001604/0.4987, allocations: 2.011 MB / 0.6809 GB, free: 5.375 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009944/0.4997, allocations: 1.13 MB / 0.682 GB, free: 4.27 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0396/0.5393, allocations: 47.29 MB / 0.7282 GB, free: 5.129 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001406/0.5395, allocations: 3.984 kB / 0.7282 GB, free: 5.125 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006004/0.5401, allocations: 471.3 kB / 0.7286 GB, free: 4.688 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001205/0.5413, allocations: 1.835 MB / 0.7304 GB, free: 2.84 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4568/0.9981, allocations: 79.21 MB / 0.8078 GB, free: 185.6 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.09679/1.095, allocations: 108.4 MB / 0.9136 GB, free: 83.21 MB / 0.5887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01588/1.111, allocations: 19.42 MB / 0.9326 GB, free: 63.78 MB / 0.5887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01168/1.122, allocations: 15.61 MB / 0.9478 GB, free: 48.18 MB / 0.5887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001114/1.124, allocations: 0.7452 MB / 0.9486 GB, free: 47.44 MB / 0.5887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/1.124, allocations: 87.88 kB / 0.9486 GB, free: 47.34 MB / 0.5887 GB Notification: Performance of pre-optimization done (n=533): time 6.122e-06/1.124, allocations: 0 / 0.9486 GB, free: 47.34 MB / 0.5887 GB Notification: Performance of matching and sorting (n=755): time 0.4279/1.551, allocations: 132 MB / 1.078 GB, free: 165.5 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.04114/1.593, allocations: 51.84 MB / 1.128 GB, free: 112.4 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01222/1.605, allocations: 13.71 MB / 1.142 GB, free: 98.81 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 0.00251/1.607, allocations: 145.7 kB / 1.142 GB, free: 98.66 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 0.002331/1.61, allocations: 5.426 MB / 1.147 GB, free: 93.52 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.00277/1.612, allocations: 2.642 MB / 1.15 GB, free: 91.14 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004605/1.617, allocations: 2.437 MB / 1.152 GB, free: 88.7 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 4.833e-05/1.617, allocations: 301.1 kB / 1.152 GB, free: 88.4 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01723/1.634, allocations: 23.01 MB / 1.175 GB, free: 65.42 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02381/1.658, allocations: 24.07 MB / 1.198 GB, free: 41.05 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5035/2.162, allocations: 110.5 MB / 1.306 GB, free: 156.1 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.686e-05/2.162, allocations: 8 kB / 1.306 GB, free: 156.1 MB / 0.6043 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.05686/2.219, allocations: 52.17 MB / 1.357 GB, free: 104.8 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/2.219, allocations: 16 kB / 1.357 GB, free: 104.8 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.732e-05/2.219, allocations: 27.98 kB / 1.357 GB, free: 104.8 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02172/2.24, allocations: 13.5 MB / 1.37 GB, free: 91.34 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01574/2.256, allocations: 4.493 MB / 1.375 GB, free: 86.87 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04526/2.301, allocations: 74.51 MB / 1.448 GB, free: 10.91 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01683/2.318, allocations: 0.6996 MB / 1.448 GB, free: 10.21 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.008457/2.327, allocations: 1.718 MB / 1.45 GB, free: 8.496 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.01829/2.345, allocations: 2.766 MB / 1.453 GB, free: 5.754 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009174/2.354, allocations: 1.195 MB / 1.454 GB, free: 4.551 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2853/2.639, allocations: 31.34 MB / 1.484 GB, free: 188.5 MB / 0.6199 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02698/2.666, allocations: 18.18 MB / 1.502 GB, free: 183.3 MB / 0.6199 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.356e-05/2.666, allocations: 11.66 kB / 1.502 GB, free: 183.3 MB / 0.6199 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001045/2.667, allocations: 36.53 kB / 1.502 GB, free: 183.3 MB / 0.6199 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06133/2.728, allocations: 62.16 MB / 1.563 GB, free: 146.1 MB / 0.6199 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.079e-05/2.728, allocations: 32 kB / 1.563 GB, free: 146.1 MB / 0.6199 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007021/2.735, allocations: 1.974 MB / 1.565 GB, free: 144.1 MB / 0.6199 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01735/2.752, allocations: 7.17 MB / 1.572 GB, free: 137 MB / 0.6199 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00109/2.753, allocations: 303.8 kB / 1.572 GB, free: 136.8 MB / 0.6199 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03545/2.789, allocations: 50.5 MB / 1.621 GB, free: 84.33 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.009156/2.798, allocations: 11.46 MB / 1.633 GB, free: 72.33 MB / 0.6199 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03663/2.835, allocations: 27.43 MB / 1.659 GB, free: 44.73 MB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004424/2.839, allocations: 1.809 MB / 1.661 GB, free: 42.91 MB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002175/2.841, allocations: 192.5 kB / 1.661 GB, free: 42.73 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004005/2.845, allocations: 400.9 kB / 1.662 GB, free: 42.34 MB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002022/2.847, allocations: 0.8746 MB / 1.663 GB, free: 41.47 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005887/2.848, allocations: 479.8 kB / 1.663 GB, free: 41 MB / 0.6199 GB Notification: Performance of sorting global known variables: time 0.01398/2.862, allocations: 13.82 MB / 1.677 GB, free: 27.23 MB / 0.6199 GB Notification: Performance of sort global known variables: time 2.7e-07/2.862, allocations: 0 / 1.677 GB, free: 27.23 MB / 0.6199 GB Notification: Performance of remove unused functions: time 0.01235/2.874, allocations: 4.108 MB / 1.681 GB, free: 23.14 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.03286/2.907, allocations: 26.81 MB / 1.707 GB, free: 11.6 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.2471/3.154, allocations: 29.83 MB / 1.736 GB, free: 206.5 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.121e-05/3.154, allocations: 5.281 kB / 1.736 GB, free: 206.5 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.01541/3.17, allocations: 10.12 MB / 1.746 GB, free: 201.4 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01051/3.18, allocations: 2.793 MB / 1.749 GB, free: 200.6 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.30802433565259]