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.001276/0.001276, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.00142/0.00142, allocations: 217.4 kB / 22.26 MB, free: 5.082 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.36/1.36, allocations: 230.6 MB / 256 MB, free: 8.012 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.1314/0.1314, allocations: 23.86 MB / 336.3 MB, free: 11.21 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.001962/0.001962, allocations: 67.89 kB / 471.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2949, allocations: 59.84 MB / 0.5186 GB, free: 9.633 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.06808/0.363, allocations: 61.64 MB / 0.5788 GB, free: 12.3 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03193/0.3949, allocations: 16.9 MB / 0.5953 GB, free: 11.53 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00818/0.4031, allocations: 123.4 kB / 0.5954 GB, free: 11.41 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007979/0.4111, allocations: 2.583 MB / 0.5979 GB, free: 8.805 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0123/0.4234, allocations: 3.521 MB / 0.6013 GB, free: 5.258 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008929/0.4323, allocations: 2.898 MB / 0.6042 GB, free: 2.352 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0177/0.45, allocations: 10.87 MB / 0.6148 GB, free: 7.434 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004416/0.4545, allocations: 2.403 MB / 0.6171 GB, free: 4.934 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007223/0.4617, allocations: 4.484 MB / 0.6215 GB, free: 444 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008214/0.4699, allocations: 5.388 MB / 0.6268 GB, free: 11.02 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002819/0.4727, allocations: 1.223 MB / 0.628 GB, free: 9.797 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007127/0.4798, allocations: 2.907 MB / 0.6308 GB, free: 6.891 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003963/0.4838, allocations: 3.602 MB / 0.6343 GB, free: 3.277 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009098/0.4929, allocations: 6.614 MB / 0.6408 GB, free: 12.63 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02398/0.5169, allocations: 17.06 MB / 0.6575 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.5169, allocations: 0 / 0.6575 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.723e-06/0.5169, allocations: 0 / 0.6575 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0004895/0.5174, allocations: 0 / 0.6575 GB, free: 11.5 MB / 0.4981 GB 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.02675/0.5441, allocations: 12.65 MB / 0.6698 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.5442, allocations: 8.031 kB / 0.6698 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003353/0.5475, allocations: 1.705 MB / 0.6715 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006945/0.5545, allocations: 2.385 MB / 0.6738 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01096/0.5654, allocations: 5.273 MB / 0.679 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002293/0.5677, allocations: 2.016 MB / 0.6809 GB, free: 3.133 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002511/0.5702, allocations: 1.129 MB / 0.682 GB, free: 2.004 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06038/0.6306, allocations: 47.14 MB / 0.7281 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002335/0.6308, allocations: 11.88 kB / 0.7281 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001515/0.6324, allocations: 467.9 kB / 0.7285 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00202/0.6344, allocations: 1.839 MB / 0.7303 GB, free: 460 kB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4337/1.068, allocations: 79.12 MB / 0.8076 GB, free: 115.7 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.1218/1.19, allocations: 113.8 MB / 0.9187 GB, free: 2.387 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02731/1.217, allocations: 19.29 MB / 0.9376 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02173/1.239, allocations: 15.45 MB / 0.9526 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00504/1.244, allocations: 1.186 MB / 0.9538 GB, free: 14.44 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001075/1.244, allocations: 98.47 kB / 0.9539 GB, free: 14.33 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=533): time 7.284e-06/1.244, allocations: 0 / 0.9539 GB, free: 14.33 MB / 0.6075 GB Notification: Performance of matching and sorting (n=755): time 0.532/1.776, allocations: 131.3 MB / 1.082 GB, free: 124.7 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07233/1.848, allocations: 52.7 MB / 1.134 GB, free: 70.7 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01607/1.864, allocations: 13.68 MB / 1.147 GB, free: 57.08 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.002351/1.867, allocations: 146.4 kB / 1.147 GB, free: 56.93 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.003776/1.871, allocations: 5.432 MB / 1.152 GB, free: 51.79 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.003664/1.874, allocations: 2.641 MB / 1.155 GB, free: 49.37 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006628/1.881, allocations: 2.429 MB / 1.157 GB, free: 46.94 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 3.06e-05/1.881, allocations: 301.1 kB / 1.158 GB, free: 46.64 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02232/1.903, allocations: 22.84 MB / 1.18 GB, free: 23.82 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2331/2.136, allocations: 23.9 MB / 1.203 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5226/2.659, allocations: 116.8 MB / 1.317 GB, free: 115.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.2e-05/2.659, allocations: 8 kB / 1.317 GB, free: 115.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.07311/2.732, allocations: 51.84 MB / 1.368 GB, free: 64.29 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/2.732, allocations: 16 kB / 1.368 GB, free: 64.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-05/2.732, allocations: 24 kB / 1.368 GB, free: 64.25 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04026/2.772, allocations: 13.51 MB / 1.381 GB, free: 50.72 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02621/2.799, allocations: 4.413 MB / 1.385 GB, free: 46.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.283/3.082, allocations: 75.42 MB / 1.459 GB, free: 186.7 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0133/3.095, allocations: 0.6228 MB / 1.46 GB, free: 186.7 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003991/3.099, allocations: 1.718 MB / 1.461 GB, free: 186.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.008804/3.108, allocations: 2.763 MB / 1.464 GB, free: 186.6 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004468/3.112, allocations: 1.197 MB / 1.465 GB, free: 186.6 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07273/3.185, allocations: 31.01 MB / 1.496 GB, free: 176 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04235/3.227, allocations: 17.98 MB / 1.513 GB, free: 168.9 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.979e-05/3.227, allocations: 11.62 kB / 1.513 GB, free: 168.9 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002341/3.228, allocations: 36.58 kB / 1.513 GB, free: 168.9 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09173/3.319, allocations: 67.09 MB / 1.579 GB, free: 107.5 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.809e-05/3.319, allocations: 32 kB / 1.579 GB, free: 107.5 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01285/3.332, allocations: 1.894 MB / 1.581 GB, free: 105.6 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03327/3.365, allocations: 7.183 MB / 1.588 GB, free: 98.51 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001371/3.367, allocations: 303.8 kB / 1.588 GB, free: 98.21 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.057/3.424, allocations: 51.47 MB / 1.638 GB, free: 44.71 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.0162/3.44, allocations: 11.64 MB / 1.649 GB, free: 32.43 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05223/3.492, allocations: 26.91 MB / 1.676 GB, free: 4.695 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003846/3.496, allocations: 1.805 MB / 1.678 GB, free: 2.887 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003261/3.499, allocations: 192 kB / 1.678 GB, free: 2.703 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007303/3.507, allocations: 319.7 kB / 1.678 GB, free: 2.391 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002304/3.509, allocations: 0.8722 MB / 1.679 GB, free: 1.535 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009561/3.51, allocations: 475.8 kB / 1.679 GB, free: 1.07 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.236/3.746, allocations: 13.82 MB / 1.693 GB, free: 179.2 MB / 0.6232 GB Notification: Performance of sort global known variables: time 2.21e-07/3.746, allocations: 0 / 1.693 GB, free: 179.2 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01434/3.76, allocations: 4.132 MB / 1.697 GB, free: 179.2 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.05594/3.816, allocations: 26.33 MB / 1.723 GB, free: 168.7 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.03857/3.855, allocations: 29.51 MB / 1.751 GB, free: 153.9 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 2.366e-05/3.855, allocations: 4 kB / 1.751 GB, free: 153.9 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.01776/3.873, allocations: 9.994 MB / 1.761 GB, free: 144.7 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01446/3.887, allocations: 2.798 MB / 1.764 GB, free: 142.7 MB / 0.6232 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4733:9-4733:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:822:5-822:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 656] [Calling sys.exit(0), Time elapsed: 6.173755281997728] Failed to read output from testmodel.py, exit status != 0: 3.895996577004553 3.905200505 3.385950236 Calling exit ...