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.0014/0.0014, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001541/0.001541, allocations: 210.6 kB / 22.24 MB, free: 4.859 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.527/1.527, allocations: 230.6 MB / 256 MB, free: 8 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.1786/0.1786, allocations: 23.88 MB / 336.3 MB, free: 11.01 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: "" <> 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: 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.00228/0.00228, allocations: 75.89 kB / 471.1 MB, free: 7.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4501/0.4524, allocations: 59.86 MB / 0.5185 GB, free: 9.504 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.1125/0.5648, allocations: 54.83 MB / 0.5721 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03797/0.6028, allocations: 15.56 MB / 0.5873 GB, free: 3.453 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01433/0.6171, allocations: 123.4 kB / 0.5874 GB, free: 3.332 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01026/0.6274, allocations: 2.498 MB / 0.5898 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01636/0.6437, allocations: 3.529 MB / 0.5933 GB, free: 13.26 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01012/0.6539, allocations: 2.875 MB / 0.5961 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0222/0.6761, allocations: 10.86 MB / 0.6067 GB, free: 15.48 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004887/0.681, allocations: 2.364 MB / 0.609 GB, free: 13.01 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009068/0.69, allocations: 4.496 MB / 0.6134 GB, free: 8.5 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00916/0.6992, allocations: 4.595 MB / 0.6179 GB, free: 3.883 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004472/0.7037, allocations: 1.223 MB / 0.6191 GB, free: 2.66 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008242/0.7119, allocations: 2.291 MB / 0.6213 GB, free: 376 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006115/0.718, allocations: 3.598 MB / 0.6248 GB, free: 12.76 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01217/0.7302, allocations: 5.056 MB / 0.6298 GB, free: 7.676 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03182/0.762, allocations: 17.02 MB / 0.6464 GB, free: 6.586 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.077e-05/0.762, allocations: 0 / 0.6464 GB, free: 6.586 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.762, allocations: 0 / 0.6464 GB, free: 6.586 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0007824/0.7628, allocations: 3.938 kB / 0.6464 GB, free: 6.582 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.03789/0.8007, allocations: 12.64 MB / 0.6587 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.8007, allocations: 8.031 kB / 0.6587 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004896/0.8056, allocations: 1.709 MB / 0.6604 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01891/0.8246, allocations: 2.853 MB / 0.6632 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02201/0.8466, allocations: 5.304 MB / 0.6684 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003564/0.8501, allocations: 2.012 MB / 0.6703 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004034/0.8542, allocations: 1.129 MB / 0.6714 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07381/0.928, allocations: 47.29 MB / 0.7176 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001854/0.9282, allocations: 3.938 kB / 0.7176 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001049/0.9292, allocations: 475.9 kB / 0.7181 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002141/0.9313, allocations: 1.839 MB / 0.7199 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5905/1.522, allocations: 79.2 MB / 0.7972 GB, free: 125.5 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.1452/1.667, allocations: 108.4 MB / 0.9031 GB, free: 17.99 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02435/1.691, allocations: 19.41 MB / 0.922 GB, free: 14.54 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02524/1.717, allocations: 15.6 MB / 0.9373 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002677/1.719, allocations: 0.7529 MB / 0.938 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001168/1.719, allocations: 91.88 kB / 0.9381 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=533): time 1.414e-05/1.719, allocations: 2.656 kB / 0.9381 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of matching and sorting (n=755): time 0.6994/2.419, allocations: 132 MB / 1.067 GB, free: 138.7 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07689/2.496, allocations: 51.83 MB / 1.118 GB, free: 85.62 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01817/2.514, allocations: 13.71 MB / 1.131 GB, free: 71.98 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.002764/2.517, allocations: 145.4 kB / 1.131 GB, free: 71.83 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.004208/2.521, allocations: 5.426 MB / 1.136 GB, free: 66.69 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.004712/2.526, allocations: 2.647 MB / 1.139 GB, free: 64.28 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007436/2.533, allocations: 2.439 MB / 1.141 GB, free: 61.84 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 4.43e-05/2.533, allocations: 305.1 kB / 1.142 GB, free: 61.54 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02691/2.56, allocations: 23 MB / 1.164 GB, free: 38.56 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0281/2.588, allocations: 24.06 MB / 1.188 GB, free: 14.19 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.8627/3.451, allocations: 110.6 MB / 1.296 GB, free: 135.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.239e-05/3.451, allocations: 8 kB / 1.296 GB, free: 135.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.08669/3.538, allocations: 52.16 MB / 1.347 GB, free: 84.01 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.235e-05/3.538, allocations: 19.48 kB / 1.347 GB, free: 84 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.614e-05/3.538, allocations: 28.23 kB / 1.347 GB, free: 83.97 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04454/3.582, allocations: 13.5 MB / 1.36 GB, free: 70.54 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03128/3.614, allocations: 4.491 MB / 1.364 GB, free: 66.04 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07639/3.69, allocations: 74.52 MB / 1.437 GB, free: 6.023 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01732/3.707, allocations: 0.702 MB / 1.438 GB, free: 5.324 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004939/3.712, allocations: 1.714 MB / 1.439 GB, free: 3.609 MB / 0.6232 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.01215/3.724, allocations: 2.76 MB / 1.442 GB, free: 0.8555 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.3793/4.104, allocations: 1.192 MB / 1.443 GB, free: 195.7 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08982/4.193, allocations: 31.36 MB / 1.474 GB, free: 189.6 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05408/4.248, allocations: 18.18 MB / 1.492 GB, free: 182.6 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001394/4.248, allocations: 11.25 kB / 1.492 GB, free: 182.6 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003073/4.248, allocations: 33.23 kB / 1.492 GB, free: 182.6 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1181/4.366, allocations: 62.16 MB / 1.552 GB, free: 132.7 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.991e-05/4.366, allocations: 32 kB / 1.552 GB, free: 132.6 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0148/4.381, allocations: 1.975 MB / 1.554 GB, free: 130.7 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03478/4.416, allocations: 7.167 MB / 1.561 GB, free: 123.6 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00211/4.418, allocations: 303.8 kB / 1.562 GB, free: 123.3 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06004/4.478, allocations: 50.5 MB / 1.611 GB, free: 70.87 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.017/4.495, allocations: 11.46 MB / 1.622 GB, free: 58.85 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06362/4.559, allocations: 27.43 MB / 1.649 GB, free: 30.93 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005896/4.564, allocations: 1.802 MB / 1.651 GB, free: 29.13 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005025/4.569, allocations: 193.5 kB / 1.651 GB, free: 28.95 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0118/4.581, allocations: 396.9 kB / 1.651 GB, free: 28.56 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003813/4.585, allocations: 0.8785 MB / 1.652 GB, free: 27.68 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001274/4.586, allocations: 471.8 kB / 1.653 GB, free: 27.22 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.0215/4.608, allocations: 13.82 MB / 1.666 GB, free: 13.45 MB / 0.6232 GB Notification: Performance of sort global known variables: time 4.71e-07/4.608, allocations: 0 / 1.666 GB, free: 13.45 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01761/4.625, allocations: 4.101 MB / 1.67 GB, free: 9.363 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.4053/5.031, allocations: 26.79 MB / 1.696 GB, free: 175.1 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.05277/5.084, allocations: 29.85 MB / 1.725 GB, free: 164.6 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 6.523e-05/5.084, allocations: 4.875 kB / 1.725 GB, free: 164.6 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.02188/5.105, allocations: 10.13 MB / 1.735 GB, free: 159.5 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0174/5.123, allocations: 2.802 MB / 1.738 GB, free: 158.6 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.810810277238488] Failed to read output from testmodel.py, exit status != 0: 5.133309336844832 5.144101941 4.379192012 Calling exit ...