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.001529/0.001529, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001715/0.001715, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.706/1.706, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.1846/0.1846, allocations: 23.86 MB / 333.4 MB, free: 1.207 MB / 254.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="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.002049/0.002049, allocations: 67.61 kB / 466.7 MB, free: 30.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1386, allocations: 59.82 MB / 0.5142 GB, free: 12.97 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.08227/0.2209, allocations: 61.45 MB / 0.5742 GB, free: 15.43 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3319/0.5528, allocations: 16.86 MB / 0.5906 GB, free: 17.54 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01189/0.5647, allocations: 125.8 kB / 0.5908 GB, free: 17.54 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01008/0.5747, allocations: 2.641 MB / 0.5933 GB, free: 17.49 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01929/0.594, allocations: 3.525 MB / 0.5968 GB, free: 17.48 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01201/0.606, allocations: 2.888 MB / 0.5996 GB, free: 17.43 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02148/0.6275, allocations: 10.87 MB / 0.6102 GB, free: 15.56 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005203/0.6327, allocations: 2.696 MB / 0.6129 GB, free: 14.49 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009887/0.6426, allocations: 4.487 MB / 0.6172 GB, free: 12.24 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01044/0.653, allocations: 5.391 MB / 0.6225 GB, free: 8.871 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00484/0.6579, allocations: 1.223 MB / 0.6237 GB, free: 8.871 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01266/0.6705, allocations: 2.908 MB / 0.6265 GB, free: 8.074 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00597/0.6765, allocations: 3.59 MB / 0.63 GB, free: 5.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01508/0.6916, allocations: 6.617 MB / 0.6365 GB, free: 296 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0339/0.7255, allocations: 17.06 MB / 0.6532 GB, free: 15.99 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.7255, allocations: 0 / 0.6532 GB, free: 15.99 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.175e-06/0.7255, allocations: 9.25 kB / 0.6532 GB, free: 15.98 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0007439/0.7263, allocations: 2.688 kB / 0.6532 GB, free: 15.98 MB / 478.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.03472/0.761, allocations: 12.71 MB / 0.6656 GB, free: 3.305 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.918e-05/0.761, allocations: 12.03 kB / 0.6656 GB, free: 3.293 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0004191/0.7615, allocations: 315.5 kB / 0.6659 GB, free: 2.984 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004945/0.7664, allocations: 1.714 MB / 0.6676 GB, free: 1.285 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008763/0.7752, allocations: 2.386 MB / 0.6699 GB, free: 14.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01223/0.7874, allocations: 5.369 MB / 0.6751 GB, free: 9.555 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002553/0.7899, allocations: 1.685 MB / 0.6768 GB, free: 7.828 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003309/0.7933, allocations: 1.128 MB / 0.6779 GB, free: 6.723 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06669/0.8599, allocations: 45.17 MB / 0.722 GB, free: 9.695 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000234/0.8602, allocations: 3.938 kB / 0.722 GB, free: 9.691 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001728/0.8619, allocations: 465.5 kB / 0.7225 GB, free: 9.262 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002257/0.8642, allocations: 1.845 MB / 0.7243 GB, free: 7.406 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09556/0.9597, allocations: 75.81 MB / 0.7983 GB, free: 11.77 MB / 0.6075 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.6301/1.59, allocations: 111.7 MB / 0.9073 GB, free: 172.5 MB / 0.6232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0216/1.611, allocations: 19.23 MB / 0.9261 GB, free: 153.2 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01698/1.628, allocations: 15.23 MB / 0.941 GB, free: 138 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005347/1.634, allocations: 2.534 MB / 0.9435 GB, free: 135.2 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.171e-05/1.634, allocations: 95.86 kB / 0.9435 GB, free: 135.1 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=533): time 7.243e-06/1.634, allocations: 2.562 kB / 0.9435 GB, free: 135.1 MB / 0.6232 GB Notification: Performance of matching and sorting (n=755): time 0.4112/2.045, allocations: 132.1 MB / 1.073 GB, free: 3.66 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3616/2.407, allocations: 53.01 MB / 1.124 GB, free: 190.2 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02084/2.428, allocations: 13.68 MB / 1.138 GB, free: 185.2 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.003242/2.431, allocations: 147.4 kB / 1.138 GB, free: 185.1 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.004739/2.436, allocations: 5.422 MB / 1.143 GB, free: 181.8 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.004473/2.44, allocations: 2.645 MB / 1.146 GB, free: 180 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007436/2.447, allocations: 2.427 MB / 1.148 GB, free: 179.4 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 4.295e-05/2.447, allocations: 305.8 kB / 1.148 GB, free: 179.1 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02438/2.472, allocations: 22.43 MB / 1.17 GB, free: 157.6 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02672/2.499, allocations: 23.5 MB / 1.193 GB, free: 133.8 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5522/3.051, allocations: 116.4 MB / 1.307 GB, free: 17.89 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-05/3.051, allocations: 8 kB / 1.307 GB, free: 17.88 MB / 0.6232 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.4349/3.486, allocations: 51.07 MB / 1.357 GB, free: 197.6 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 4.694e-05/3.486, allocations: 14.66 kB / 1.357 GB, free: 197.6 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.457e-05/3.486, allocations: 27.09 kB / 1.357 GB, free: 197.6 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.044/3.53, allocations: 13.26 MB / 1.37 GB, free: 193.5 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0304/3.56, allocations: 4.42 MB / 1.374 GB, free: 193.3 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.068/3.628, allocations: 76.25 MB / 1.449 GB, free: 119 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01661/3.645, allocations: 0.6242 MB / 1.449 GB, free: 118.4 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00463/3.649, allocations: 1.726 MB / 1.451 GB, free: 116.7 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.01071/3.66, allocations: 2.743 MB / 1.453 GB, free: 114 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006319/3.666, allocations: 1.191 MB / 1.455 GB, free: 112.8 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07523/3.742, allocations: 30.94 MB / 1.485 GB, free: 81.82 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04368/3.785, allocations: 17.94 MB / 1.502 GB, free: 63.89 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.546e-05/3.785, allocations: 8 kB / 1.502 GB, free: 63.89 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002675/3.786, allocations: 39.84 kB / 1.502 GB, free: 63.85 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4409/4.227, allocations: 65.28 MB / 1.566 GB, free: 187 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001244/4.227, allocations: 33.38 kB / 1.566 GB, free: 187 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01598/4.243, allocations: 1.892 MB / 1.568 GB, free: 187 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04047/4.283, allocations: 7.184 MB / 1.575 GB, free: 186.7 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002032/4.285, allocations: 303.4 kB / 1.575 GB, free: 186.7 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08723/4.373, allocations: 53.71 MB / 1.628 GB, free: 150.6 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.0256/4.398, allocations: 12.16 MB / 1.64 GB, free: 140.4 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09367/4.492, allocations: 26.77 MB / 1.666 GB, free: 127.9 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007312/4.499, allocations: 1.881 MB / 1.668 GB, free: 126.8 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005811/4.505, allocations: 190.2 kB / 1.668 GB, free: 126.7 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0135/4.518, allocations: 324.6 kB / 1.668 GB, free: 126.6 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004401/4.523, allocations: 0.8431 MB / 1.669 GB, free: 126.5 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001521/4.524, allocations: 476.3 kB / 1.669 GB, free: 126.4 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.0305/4.555, allocations: 13.82 MB / 1.683 GB, free: 117 MB / 0.6232 GB Notification: Performance of sort global known variables: time 2.3e-07/4.555, allocations: 2.094 kB / 1.683 GB, free: 117 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.02391/4.579, allocations: 4.138 MB / 1.687 GB, free: 112.9 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.07428/4.653, allocations: 26.19 MB / 1.713 GB, free: 86.3 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.04349/4.697, allocations: 29.06 MB / 1.741 GB, free: 57.08 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 3.239e-05/4.697, allocations: 6.656 kB / 1.741 GB, free: 57.08 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.02026/4.717, allocations: 9.951 MB / 1.751 GB, free: 46.92 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02411/4.741, allocations: 2.786 MB / 1.753 GB, free: 44.3 MB / 0.6232 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4705:9-4705:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:818:5-818: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.731364901002962] Failed to read output from testmodel.py, exit status != 0: 4.7496093770023435 4.758868155 4.030841057 Calling exit ...