Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001766/0.001766, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002165/0.002165, allocations: 214.9 kB / 23.04 MB, free: 5.07 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.437/1.437, allocations: 230.6 MB / 256.8 MB, free: 7.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1383/0.1383, allocations: 23.87 MB / 337.1 MB, free: 11.15 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Examples_Diffusion",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_master_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.00195/0.00195, allocations: 67.91 kB / 472 MB, free: 7.637 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3079, allocations: 59.86 MB / 0.5194 GB, free: 9.57 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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 master/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.07393/0.3818, allocations: 61.46 MB / 0.5794 GB, free: 12.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03718/0.419, allocations: 16.9 MB / 0.5959 GB, free: 11.63 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009703/0.4287, allocations: 131.4 kB / 0.596 GB, free: 11.5 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009207/0.4379, allocations: 2.634 MB / 0.5986 GB, free: 8.848 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01544/0.4533, allocations: 3.533 MB / 0.6021 GB, free: 5.289 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009305/0.4627, allocations: 2.898 MB / 0.6049 GB, free: 2.383 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02128/0.4839, allocations: 10.89 MB / 0.6155 GB, free: 7.445 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005939/0.4899, allocations: 2.396 MB / 0.6179 GB, free: 4.953 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008401/0.4983, allocations: 4.484 MB / 0.6222 GB, free: 464 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009068/0.5073, allocations: 5.388 MB / 0.6275 GB, free: 11.04 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003814/0.5112, allocations: 1.223 MB / 0.6287 GB, free: 9.816 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00867/0.5198, allocations: 2.911 MB / 0.6315 GB, free: 6.906 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005436/0.5253, allocations: 3.594 MB / 0.6351 GB, free: 3.301 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01186/0.5371, allocations: 6.614 MB / 0.6415 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02895/0.5661, allocations: 17.07 MB / 0.6582 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.5661, allocations: 0 / 0.6582 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.673e-06/0.5661, allocations: 0 / 0.6582 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0005339/0.5666, allocations: 3.938 kB / 0.6582 GB, free: 11.51 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.03077/0.5974, allocations: 12.65 MB / 0.6705 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.5974, allocations: 11.97 kB / 0.6706 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003627/0.5978, allocations: 315 kB / 0.6709 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005187/0.603, allocations: 1.705 MB / 0.6725 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008408/0.6114, allocations: 2.385 MB / 0.6748 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01172/0.6231, allocations: 5.277 MB / 0.68 GB, free: 4.984 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002596/0.6257, allocations: 2.004 MB / 0.682 GB, free: 2.844 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00313/0.6289, allocations: 1.133 MB / 0.6831 GB, free: 1.711 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06776/0.6966, allocations: 47.15 MB / 0.7291 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002219/0.6968, allocations: 0 / 0.7291 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001465/0.6983, allocations: 475.9 kB / 0.7296 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002176/0.7005, allocations: 1.835 MB / 0.7313 GB, free: 176 kB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5119/1.212, allocations: 79.12 MB / 0.8086 GB, free: 115.4 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.1336/1.346, allocations: 113.8 MB / 0.9198 GB, free: 2.082 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0302/1.376, allocations: 19.28 MB / 0.9386 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02317/1.399, allocations: 15.44 MB / 0.9537 GB, free: 15.32 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005382/1.405, allocations: 1.196 MB / 0.9548 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001658/1.405, allocations: 95.81 kB / 0.9549 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=533): time 1.821e-05/1.405, allocations: 0 / 0.9549 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of matching and sorting (n=755): time 0.5991/2.004, allocations: 131.3 MB / 1.083 GB, free: 124.3 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07627/2.08, allocations: 52.71 MB / 1.135 GB, free: 70.38 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02235/2.103, allocations: 13.67 MB / 1.148 GB, free: 56.76 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.003344/2.106, allocations: 148.4 kB / 1.148 GB, free: 56.61 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.005714/2.112, allocations: 5.428 MB / 1.153 GB, free: 51.47 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.004943/2.117, allocations: 2.646 MB / 1.156 GB, free: 49.06 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01065/2.127, allocations: 2.43 MB / 1.158 GB, free: 46.63 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 4.281e-05/2.127, allocations: 301.1 kB / 1.159 GB, free: 46.33 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02516/2.152, allocations: 22.83 MB / 1.181 GB, free: 23.52 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2943/2.447, allocations: 23.89 MB / 1.204 GB, free: 186.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5556/3.002, allocations: 116.8 MB / 1.318 GB, free: 115.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.889e-05/3.002, allocations: 4 kB / 1.318 GB, free: 115.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.08294/3.085, allocations: 51.84 MB / 1.369 GB, free: 64.24 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.037e-05/3.085, allocations: 16 kB / 1.369 GB, free: 64.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.85e-05/3.086, allocations: 24 kB / 1.369 GB, free: 64.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04373/3.129, allocations: 13.52 MB / 1.382 GB, free: 50.67 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02967/3.159, allocations: 4.413 MB / 1.386 GB, free: 46.26 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3339/3.493, allocations: 75.41 MB / 1.46 GB, free: 187.2 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0154/3.508, allocations: 0.6204 MB / 1.461 GB, free: 187.2 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004759/3.513, allocations: 1.717 MB / 1.462 GB, free: 187.2 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.01069/3.524, allocations: 2.771 MB / 1.465 GB, free: 187.1 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0052/3.529, allocations: 1.197 MB / 1.466 GB, free: 187.1 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07796/3.607, allocations: 31.01 MB / 1.497 GB, free: 176.2 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0457/3.653, allocations: 17.99 MB / 1.514 GB, free: 169.1 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001153/3.653, allocations: 8.688 kB / 1.514 GB, free: 169.1 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000328/3.653, allocations: 37.55 kB / 1.514 GB, free: 169.1 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09936/3.752, allocations: 67.09 MB / 1.58 GB, free: 107.5 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001012/3.752, allocations: 34.66 kB / 1.58 GB, free: 107.4 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01471/3.767, allocations: 1.888 MB / 1.582 GB, free: 105.6 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03527/3.802, allocations: 7.179 MB / 1.589 GB, free: 98.48 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001739/3.804, allocations: 299.8 kB / 1.589 GB, free: 98.18 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05936/3.864, allocations: 51.47 MB / 1.639 GB, free: 44.7 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.01646/3.88, allocations: 11.65 MB / 1.651 GB, free: 32.41 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05447/3.934, allocations: 26.92 MB / 1.677 GB, free: 4.668 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004186/3.939, allocations: 1.805 MB / 1.679 GB, free: 2.859 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003844/3.942, allocations: 185 kB / 1.679 GB, free: 2.684 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007923/3.95, allocations: 323.7 kB / 1.679 GB, free: 2.367 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002736/3.953, allocations: 0.8768 MB / 1.68 GB, free: 1.508 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001418/3.955, allocations: 475.8 kB / 1.68 GB, free: 1.043 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.2577/4.212, allocations: 13.82 MB / 1.694 GB, free: 179.4 MB / 0.6232 GB Notification: Performance of sort global known variables: time 2.21e-07/4.212, allocations: 0 / 1.694 GB, free: 179.4 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01612/4.228, allocations: 4.127 MB / 1.698 GB, free: 179.4 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.06322/4.292, allocations: 26.32 MB / 1.724 GB, free: 169 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.04154/4.333, allocations: 29.51 MB / 1.752 GB, free: 154.2 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 2.423e-05/4.333, allocations: 4 kB / 1.752 GB, free: 154.2 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.0194/4.353, allocations: 9.992 MB / 1.762 GB, free: 145 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01548/4.368, allocations: 2.791 MB / 1.765 GB, free: 142.9 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.813251896994188] Failed to read output from testmodel.py, exit status != 0: 4.377266428084113 4.387163455 3.818481876 Calling exit ...