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.0007921/0.0007921, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0007938/0.0007938, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9484/0.9484, allocations: 177.1 MB / 202.8 MB, free: 5.75 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.09277/0.09277, allocations: 17.37 MB / 276.6 MB, free: 11.86 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: "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 411.4 MB, free: 428 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.641e-05/2.852e-05, allocations: 6.281 kB / 411.5 MB, free: 420 kB / 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.272/0.272, allocations: 55.09 MB / 466.5 MB, free: 38.21 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.02371/0.2958, allocations: 15.57 MB / 482.1 MB, free: 34.24 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009128/0.3049, allocations: 128.5 kB / 482.2 MB, free: 34.2 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008613/0.3135, allocations: 2.521 MB / 484.8 MB, free: 33.15 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01185/0.3253, allocations: 3.669 MB / 488.4 MB, free: 31.3 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008478/0.3338, allocations: 2.905 MB / 491.3 MB, free: 29.85 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01551/0.3493, allocations: 11.29 MB / 0.4908 GB, free: 23.95 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003694/0.353, allocations: 2.385 MB / 0.4932 GB, free: 22.97 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01691/0.3699, allocations: 6.821 MB / 0.4998 GB, free: 19.86 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008886/0.3788, allocations: 3.921 MB / 0.5037 GB, free: 18.27 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003782/0.3826, allocations: 1.223 MB / 0.5049 GB, free: 17.04 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008438/0.391, allocations: 2.325 MB / 0.5071 GB, free: 14.91 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004901/0.3959, allocations: 3.646 MB / 0.5107 GB, free: 11.95 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01203/0.408, allocations: 4.117 MB / 0.5147 GB, free: 8.367 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02406/0.432, allocations: 16.93 MB / 0.5312 GB, free: 9.328 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.447e-05/0.4321, allocations: 4 kB / 0.5312 GB, free: 9.324 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.937e-06/0.4321, allocations: 0 / 0.5312 GB, free: 9.324 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007282/0.4328, allocations: 0 / 0.5312 GB, free: 9.324 MB / 426.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.02727/0.4601, allocations: 12.5 MB / 0.5434 GB, free: 12.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.306e-05/0.4601, allocations: 8.031 kB / 0.5434 GB, free: 12.71 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004419/0.4645, allocations: 1.701 MB / 0.5451 GB, free: 11 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00839/0.4729, allocations: 2.869 MB / 0.5479 GB, free: 8.121 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01261/0.4855, allocations: 5.292 MB / 0.5531 GB, free: 2.754 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002389/0.4879, allocations: 2.005 MB / 0.555 GB, free: 0.6133 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004001/0.4919, allocations: 1.133 MB / 0.5561 GB, free: 15.48 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05992/0.5519, allocations: 47.3 MB / 0.6023 GB, free: 112 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002933/0.5521, allocations: 0 / 0.6023 GB, free: 112 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0022/0.5543, allocations: 471.9 kB / 0.6028 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001394/0.5557, allocations: 1.835 MB / 0.6046 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4259/0.9816, allocations: 79.21 MB / 0.6819 GB, free: 136.1 MB / 0.5105 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.1046/1.086, allocations: 108.4 MB / 0.7878 GB, free: 37.23 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01662/1.103, allocations: 19.42 MB / 0.8068 GB, free: 17.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01381/1.117, allocations: 15.61 MB / 0.822 GB, free: 2.207 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001494/1.118, allocations: 0.7447 MB / 0.8227 GB, free: 1.461 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/1.118, allocations: 91.81 kB / 0.8228 GB, free: 1.363 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=533): time 6.873e-06/1.118, allocations: 0 / 0.8228 GB, free: 1.363 MB / 0.5105 GB Notification: Performance of matching and sorting (n=755): time 0.4518/1.57, allocations: 132.2 MB / 0.9519 GB, free: 94.4 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.04682/1.617, allocations: 51.81 MB / 1.002 GB, free: 41.31 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01526/1.632, allocations: 13.71 MB / 1.016 GB, free: 27.68 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.00317/1.635, allocations: 151.5 kB / 1.016 GB, free: 27.53 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.003421/1.639, allocations: 5.425 MB / 1.021 GB, free: 22.39 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.00439/1.643, allocations: 2.615 MB / 1.024 GB, free: 20.01 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005176/1.648, allocations: 2.427 MB / 1.026 GB, free: 17.57 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 2.576e-05/1.648, allocations: 301.1 kB / 1.027 GB, free: 17.28 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2387/1.887, allocations: 23.01 MB / 1.049 GB, free: 145.4 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02273/1.91, allocations: 24.07 MB / 1.072 GB, free: 137.7 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2663/2.176, allocations: 111.2 MB / 1.181 GB, free: 60.18 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001088/2.176, allocations: 11.81 kB / 1.181 GB, free: 60.17 MB / 0.5262 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.05939/2.236, allocations: 52.16 MB / 1.232 GB, free: 8.895 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 4.6e-05/2.236, allocations: 16 kB / 1.232 GB, free: 8.879 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.986e-05/2.236, allocations: 24 kB / 1.232 GB, free: 8.855 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2569/2.493, allocations: 13.58 MB / 1.245 GB, free: 143.5 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01639/2.509, allocations: 4.492 MB / 1.25 GB, free: 143.5 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05037/2.559, allocations: 74.47 MB / 1.322 GB, free: 99.49 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01128/2.571, allocations: 0.6933 MB / 1.323 GB, free: 99.38 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004028/2.575, allocations: 1.725 MB / 1.325 GB, free: 99.07 MB / 0.5262 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.009611/2.584, allocations: 2.75 MB / 1.327 GB, free: 97.52 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004318/2.589, allocations: 1.196 MB / 1.329 GB, free: 97.52 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04835/2.637, allocations: 31.37 MB / 1.359 GB, free: 75.21 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02689/2.664, allocations: 18.17 MB / 1.377 GB, free: 57.77 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001006/2.664, allocations: 12 kB / 1.377 GB, free: 57.76 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002568/2.664, allocations: 39.27 kB / 1.377 GB, free: 57.73 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07501/2.739, allocations: 62.16 MB / 1.438 GB, free: 11.41 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001086/2.739, allocations: 32 kB / 1.438 GB, free: 11.38 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008175/2.747, allocations: 1.97 MB / 1.44 GB, free: 9.43 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02057/2.768, allocations: 7.219 MB / 1.447 GB, free: 2.273 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002833/2.771, allocations: 299.8 kB / 1.447 GB, free: 1.98 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2745/3.045, allocations: 50.45 MB / 1.496 GB, free: 121.4 MB / 0.5418 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.009629/3.055, allocations: 11.45 MB / 1.508 GB, free: 111.9 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04531/3.1, allocations: 27.36 MB / 1.534 GB, free: 99.45 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004261/3.104, allocations: 1.813 MB / 1.536 GB, free: 98.88 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003629/3.108, allocations: 192.3 kB / 1.536 GB, free: 98.78 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006051/3.114, allocations: 395.9 kB / 1.537 GB, free: 98.69 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002302/3.116, allocations: 0.8733 MB / 1.537 GB, free: 98.5 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006367/3.117, allocations: 480.7 kB / 1.538 GB, free: 98.42 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01514/3.132, allocations: 13.82 MB / 1.551 GB, free: 92.51 MB / 0.5418 GB Notification: Performance of sort global known variables: time 2e-07/3.132, allocations: 0 / 1.551 GB, free: 92.51 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01355/3.146, allocations: 4.11 MB / 1.555 GB, free: 92.25 MB / 0.5418 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.0365/3.182, allocations: 26.74 MB / 1.581 GB, free: 68.01 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0311/3.213, allocations: 29.83 MB / 1.611 GB, free: 40.66 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 3.734e-05/3.213, allocations: 4 kB / 1.611 GB, free: 40.65 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01434/3.228, allocations: 10.12 MB / 1.621 GB, free: 30.34 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01543/3.243, allocations: 2.799 MB / 1.623 GB, free: 27.8 MB / 0.5418 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4676:9-4676:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:836:5-836: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.0794613640755415] Failed to read output from testmodel.py, exit status != 0: 3.250795153900981 3.2575500920000002 2.823788653 Calling exit ...