Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Processes.Tests.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.001368/0.001368, 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.00161/0.00161, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.491/1.491, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.147/0.147, allocations: 23.85 MB / 337.1 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.Processes.Tests.Diffusion,fileNamePrefix="Chemical_Chemical_Processes_Tests_Diffusion",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Processes.Tests.Diffusion,fileNamePrefix="Chemical_Chemical_Processes_Tests_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.002042/0.002042, allocations: 59.91 kB / 472 MB, free: 7.711 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4092/0.4112, allocations: 59.85 MB / 0.5193 GB, free: 9.246 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.Processes.Tests.Diffusion): time 0.08548/0.4967, allocations: 61.43 MB / 0.5793 GB, free: 12.36 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03748/0.5342, allocations: 16.9 MB / 0.5958 GB, free: 11.6 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01257/0.5468, allocations: 123.4 kB / 0.596 GB, free: 11.48 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01132/0.5581, allocations: 2.634 MB / 0.5985 GB, free: 8.824 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01953/0.5776, allocations: 3.529 MB / 0.602 GB, free: 5.27 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01116/0.5888, allocations: 2.91 MB / 0.6048 GB, free: 2.352 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02334/0.6121, allocations: 10.89 MB / 0.6155 GB, free: 7.422 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007436/0.6196, allocations: 2.396 MB / 0.6178 GB, free: 4.93 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01044/0.63, allocations: 4.484 MB / 0.6222 GB, free: 440 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01158/0.6416, allocations: 5.388 MB / 0.6274 GB, free: 11.02 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006361/0.6479, allocations: 1.227 MB / 0.6286 GB, free: 9.789 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01357/0.6615, allocations: 2.907 MB / 0.6315 GB, free: 6.883 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008168/0.6697, allocations: 3.598 MB / 0.635 GB, free: 3.273 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01679/0.6865, allocations: 6.614 MB / 0.6414 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03533/0.7218, allocations: 17.07 MB / 0.6581 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.7218, allocations: 3.938 kB / 0.6581 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7218, allocations: 4 kB / 0.6581 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0007625/0.7226, allocations: 0 / 0.6581 GB, free: 11.48 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.03995/0.7625, allocations: 12.64 MB / 0.6705 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.072e-05/0.7626, allocations: 8.031 kB / 0.6705 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0004752/0.7631, allocations: 326.9 kB / 0.6708 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005594/0.7686, allocations: 1.717 MB / 0.6725 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009833/0.7785, allocations: 2.381 MB / 0.6748 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.016/0.7945, allocations: 5.269 MB / 0.6799 GB, free: 4.957 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003298/0.7978, allocations: 2.012 MB / 0.6819 GB, free: 2.809 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003725/0.8015, allocations: 1.133 MB / 0.683 GB, free: 1.676 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08146/0.883, allocations: 47.15 MB / 0.729 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005091/0.8835, allocations: 3.938 kB / 0.729 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00277/0.8863, allocations: 467.9 kB / 0.7295 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002511/0.8888, allocations: 1.843 MB / 0.7313 GB, free: 136 kB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5856/1.474, allocations: 79.11 MB / 0.8085 GB, free: 115.3 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.1845/1.659, allocations: 113.8 MB / 0.9197 GB, free: 1.992 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02966/1.689, allocations: 19.29 MB / 0.9385 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02376/1.712, allocations: 15.44 MB / 0.9536 GB, free: 15.22 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005385/1.718, allocations: 1.192 MB / 0.9548 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001537/1.718, allocations: 99.8 kB / 0.9549 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=533): time 8.035e-06/1.718, allocations: 2.688 kB / 0.9549 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of matching and sorting (n=755): time 0.6734/2.391, allocations: 131.3 MB / 1.083 GB, free: 124.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.08248/2.474, allocations: 52.7 MB / 1.135 GB, free: 70.16 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02779/2.502, allocations: 13.68 MB / 1.148 GB, free: 56.55 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.003388/2.505, allocations: 146.6 kB / 1.148 GB, free: 56.4 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.006488/2.511, allocations: 5.434 MB / 1.153 GB, free: 51.25 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.005923/2.517, allocations: 2.635 MB / 1.156 GB, free: 48.86 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01295/2.53, allocations: 2.432 MB / 1.158 GB, free: 46.42 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.148e-05/2.53, allocations: 303.8 kB / 1.159 GB, free: 46.12 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02691/2.557, allocations: 22.84 MB / 1.181 GB, free: 23.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3053/2.863, allocations: 23.9 MB / 1.204 GB, free: 185.7 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5725/3.435, allocations: 116.8 MB / 1.318 GB, free: 115.1 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001033/3.435, allocations: 8 kB / 1.318 GB, free: 115.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.08795/3.523, allocations: 51.83 MB / 1.369 GB, free: 64.09 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.407e-05/3.523, allocations: 20.09 kB / 1.369 GB, free: 64.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.716e-05/3.523, allocations: 24 kB / 1.369 GB, free: 64.05 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04424/3.567, allocations: 13.51 MB / 1.382 GB, free: 50.52 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03073/3.598, allocations: 4.409 MB / 1.386 GB, free: 46.11 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4055/4.004, allocations: 75.42 MB / 1.46 GB, free: 186.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01575/4.019, allocations: 0.6218 MB / 1.461 GB, free: 186.9 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005219/4.025, allocations: 1.72 MB / 1.462 GB, free: 186.9 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.01253/4.037, allocations: 2.753 MB / 1.465 GB, free: 186.8 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006761/4.044, allocations: 1.197 MB / 1.466 GB, free: 186.8 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08647/4.13, allocations: 31.01 MB / 1.496 GB, free: 176.1 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05039/4.181, allocations: 17.99 MB / 1.514 GB, free: 169 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001102/4.181, allocations: 8.719 kB / 1.514 GB, free: 169 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002837/4.181, allocations: 40.48 kB / 1.514 GB, free: 169 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1235/4.305, allocations: 67.09 MB / 1.58 GB, free: 107.2 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001758/4.305, allocations: 32 kB / 1.58 GB, free: 107.1 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0151/4.32, allocations: 1.895 MB / 1.582 GB, free: 105.3 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03724/4.357, allocations: 7.185 MB / 1.589 GB, free: 98.17 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002218/4.359, allocations: 296.4 kB / 1.589 GB, free: 97.88 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06572/4.425, allocations: 51.46 MB / 1.639 GB, free: 44.41 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.01829/4.443, allocations: 11.66 MB / 1.65 GB, free: 32.12 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06667/4.51, allocations: 26.91 MB / 1.677 GB, free: 4.383 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006501/4.517, allocations: 1.805 MB / 1.678 GB, free: 2.574 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005291/4.522, allocations: 187.8 kB / 1.679 GB, free: 2.395 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009959/4.532, allocations: 319.7 kB / 1.679 GB, free: 2.082 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003335/4.535, allocations: 0.8744 MB / 1.68 GB, free: 1.223 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001661/4.537, allocations: 478.4 kB / 1.68 GB, free: 0.7578 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.3763/4.913, allocations: 13.82 MB / 1.694 GB, free: 179 MB / 0.6232 GB Notification: Performance of sort global known variables: time 2.1e-07/4.913, allocations: 1.312 kB / 1.694 GB, free: 179 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.02132/4.935, allocations: 4.134 MB / 1.698 GB, free: 179 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.06772/5.002, allocations: 26.33 MB / 1.724 GB, free: 168.6 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.04751/5.05, allocations: 29.5 MB / 1.752 GB, free: 153.8 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-05/5.05, allocations: 4 kB / 1.752 GB, free: 153.8 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.02526/5.075, allocations: 9.994 MB / 1.762 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.02454/5.1, allocations: 2.79 MB / 1.765 GB, free: 142.6 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 655] [Calling sys.exit(0), Time elapsed: 7.676656948984601] Failed to read output from testmodel.py, exit status != 0: 5.110270402976312 5.121378134 4.396513597 Calling exit ...