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.001422/0.001422, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.00163/0.00163, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.596/1.596, allocations: 230.6 MB / 252.8 MB, free: 8.977 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.2303/0.2303, allocations: 23.85 MB / 332.7 MB, free: 12.36 MB / 270.1 MB " [Timeout remaining time 179] 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.002028/0.002028, allocations: 67.89 kB / 466 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4847/0.4867, allocations: 59.82 MB / 0.5135 GB, free: 8.855 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.09387/0.5806, allocations: 61.45 MB / 0.5735 GB, free: 13.36 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.05056/0.6311, allocations: 16.87 MB / 0.59 GB, free: 12.89 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01878/0.6499, allocations: 127.4 kB / 0.5901 GB, free: 12.77 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01387/0.6638, allocations: 2.641 MB / 0.5927 GB, free: 10.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02599/0.6898, allocations: 3.529 MB / 0.5961 GB, free: 6.551 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01657/0.7063, allocations: 2.879 MB / 0.5989 GB, free: 3.664 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.03343/0.7398, allocations: 10.89 MB / 0.6095 GB, free: 8.727 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007501/0.7473, allocations: 2.7 MB / 0.6122 GB, free: 5.934 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01076/0.758, allocations: 4.48 MB / 0.6166 GB, free: 1.438 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0126/0.7706, allocations: 5.384 MB / 0.6218 GB, free: 12.03 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006044/0.7767, allocations: 1.223 MB / 0.623 GB, free: 10.81 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01234/0.789, allocations: 2.908 MB / 0.6259 GB, free: 7.898 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007399/0.7964, allocations: 3.598 MB / 0.6294 GB, free: 4.289 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01667/0.8131, allocations: 6.611 MB / 0.6358 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03487/0.848, allocations: 17.07 MB / 0.6525 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.848, allocations: 3.938 kB / 0.6525 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.966e-06/0.848, allocations: 0 / 0.6525 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0007968/0.8488, allocations: 0 / 0.6525 GB, free: 12.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.03745/0.8862, allocations: 12.72 MB / 0.6649 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/0.8863, allocations: 8.031 kB / 0.6649 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005176/0.8915, allocations: 1.705 MB / 0.6666 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008775/0.9002, allocations: 2.397 MB / 0.6689 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01316/0.9134, allocations: 5.361 MB / 0.6742 GB, free: 6.09 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002521/0.9159, allocations: 1.689 MB / 0.6758 GB, free: 4.332 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003461/0.9194, allocations: 1.133 MB / 0.6769 GB, free: 3.199 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07756/0.9969, allocations: 45.17 MB / 0.721 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002605/0.9972, allocations: 0 / 0.721 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002245/0.9994, allocations: 463.9 kB / 0.7215 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002501/1.002, allocations: 1.843 MB / 0.7233 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6692/1.671, allocations: 75.81 MB / 0.7973 GB, free: 123.2 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.1497/1.821, allocations: 111.6 MB / 0.9063 GB, free: 12.05 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02633/1.847, allocations: 19.23 MB / 0.9251 GB, free: 8.77 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02458/1.872, allocations: 15.23 MB / 0.94 GB, free: 9.523 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00661/1.878, allocations: 2.528 MB / 0.9425 GB, free: 6.68 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001254/1.879, allocations: 91.81 kB / 0.9425 GB, free: 6.582 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=533): time 6.943e-06/1.879, allocations: 4.625 kB / 0.9426 GB, free: 6.582 MB / 0.5919 GB Notification: Performance of matching and sorting (n=755): time 0.7049/2.583, allocations: 132.1 MB / 1.072 GB, free: 132.6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.08038/2.664, allocations: 53.02 MB / 1.123 GB, free: 78.05 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0219/2.686, allocations: 13.68 MB / 1.137 GB, free: 64.43 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.003645/2.689, allocations: 145.7 kB / 1.137 GB, free: 64.28 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.006347/2.696, allocations: 5.432 MB / 1.142 GB, free: 59.13 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.005945/2.702, allocations: 2.638 MB / 1.145 GB, free: 56.74 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01201/2.714, allocations: 2.435 MB / 1.147 GB, free: 54.3 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.116e-05/2.714, allocations: 305.1 kB / 1.147 GB, free: 54 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02708/2.741, allocations: 22.43 MB / 1.169 GB, free: 31.59 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02902/2.77, allocations: 23.49 MB / 1.192 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.9574/3.727, allocations: 116.3 MB / 1.306 GB, free: 124.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.071e-05/3.727, allocations: 4 kB / 1.306 GB, free: 124.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.08575/3.813, allocations: 51.08 MB / 1.356 GB, free: 74.45 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.583e-05/3.813, allocations: 16.94 kB / 1.356 GB, free: 74.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-05/3.813, allocations: 26.59 kB / 1.356 GB, free: 74.41 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04493/3.858, allocations: 13.26 MB / 1.369 GB, free: 61.14 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03084/3.889, allocations: 4.413 MB / 1.373 GB, free: 56.72 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4619/4.351, allocations: 76.26 MB / 1.448 GB, free: 187.6 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01776/4.369, allocations: 0.625 MB / 1.448 GB, free: 187.6 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00565/4.374, allocations: 1.717 MB / 1.45 GB, free: 187.6 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.01567/4.39, allocations: 2.75 MB / 1.453 GB, free: 187.4 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009191/4.399, allocations: 1.194 MB / 1.454 GB, free: 187.4 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09354/4.493, allocations: 30.93 MB / 1.484 GB, free: 179.8 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04916/4.542, allocations: 17.94 MB / 1.501 GB, free: 172.7 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000174/4.542, allocations: 7.531 kB / 1.501 GB, free: 172.7 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003617/4.542, allocations: 41.84 kB / 1.501 GB, free: 172.7 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1112/4.654, allocations: 65.29 MB / 1.565 GB, free: 119.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001114/4.654, allocations: 32 kB / 1.565 GB, free: 119.3 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01514/4.669, allocations: 1.895 MB / 1.567 GB, free: 117.4 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03657/4.705, allocations: 7.172 MB / 1.574 GB, free: 110.3 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002691/4.708, allocations: 303.8 kB / 1.574 GB, free: 110 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06525/4.773, allocations: 53.72 MB / 1.627 GB, free: 53.75 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.01771/4.791, allocations: 12.15 MB / 1.639 GB, free: 40.85 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06286/4.854, allocations: 26.77 MB / 1.665 GB, free: 13.26 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005525/4.859, allocations: 1.885 MB / 1.667 GB, free: 11.36 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00543/4.865, allocations: 186.6 kB / 1.667 GB, free: 11.18 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01053/4.875, allocations: 319.7 kB / 1.667 GB, free: 10.86 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003453/4.879, allocations: 0.8397 MB / 1.668 GB, free: 10.04 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001602/4.88, allocations: 478.5 kB / 1.668 GB, free: 9.574 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.4439/5.324, allocations: 13.82 MB / 1.682 GB, free: 175 MB / 0.6232 GB Notification: Performance of sort global known variables: time 2.41e-07/5.324, allocations: 1.406 kB / 1.682 GB, free: 175 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.02566/5.35, allocations: 4.132 MB / 1.686 GB, free: 175 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.07317/5.423, allocations: 26.18 MB / 1.712 GB, free: 168.6 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.04551/5.469, allocations: 29.06 MB / 1.74 GB, free: 156.6 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-05/5.469, allocations: 3.938 kB / 1.74 GB, free: 156.6 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.02162/5.49, allocations: 9.943 MB / 1.75 GB, free: 151.5 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02208/5.512, allocations: 2.803 MB / 1.752 GB, free: 150.6 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 654] [Calling sys.exit(0), Time elapsed: 8.389159007987473] Failed to read output from testmodel.py, exit status != 0: 5.522644309006864 5.532357195 4.681707035 Calling exit ...