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.001791/0.001791, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001799/0.001799, allocations: 220 kB / 23.03 MB, free: 4.918 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.41/1.41, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1366/0.1366, allocations: 23.9 MB / 337.1 MB, free: 10.93 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.002023/0.002023, allocations: 74.86 kB / 471.9 MB, free: 7.465 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.334, allocations: 59.86 MB / 0.5193 GB, free: 9.574 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.1017/0.4356, allocations: 54.43 MB / 0.5725 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03224/0.4679, allocations: 15.55 MB / 0.5877 GB, free: 3.773 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008883/0.4767, allocations: 123.5 kB / 0.5878 GB, free: 3.652 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008696/0.4854, allocations: 2.548 MB / 0.5903 GB, free: 1.086 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0128/0.4982, allocations: 3.548 MB / 0.5938 GB, free: 13.51 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008821/0.5071, allocations: 2.887 MB / 0.5966 GB, free: 10.62 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01893/0.526, allocations: 10.88 MB / 0.6072 GB, free: 15.7 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006058/0.5321, allocations: 2.396 MB / 0.6095 GB, free: 13.2 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007999/0.5401, allocations: 4.492 MB / 0.6139 GB, free: 8.691 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009018/0.5491, allocations: 5.384 MB / 0.6192 GB, free: 3.285 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003864/0.5529, allocations: 1.223 MB / 0.6204 GB, free: 2.062 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007461/0.5604, allocations: 2.334 MB / 0.6227 GB, free: 15.73 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004816/0.5652, allocations: 3.598 MB / 0.6262 GB, free: 12.12 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009059/0.5743, allocations: 5.056 MB / 0.6311 GB, free: 7.035 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02534/0.5996, allocations: 17.02 MB / 0.6477 GB, free: 5.953 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.5996, allocations: 0 / 0.6477 GB, free: 5.953 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5996, allocations: 0 / 0.6477 GB, free: 5.953 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0005949/0.6002, allocations: 0 / 0.6477 GB, free: 5.953 MB / 494.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.02745/0.6277, allocations: 12.65 MB / 0.6601 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.6277, allocations: 12.03 kB / 0.6601 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003459/0.6281, allocations: 315 kB / 0.6604 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003494/0.6316, allocations: 1.705 MB / 0.662 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01115/0.6427, allocations: 2.869 MB / 0.6649 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01118/0.6539, allocations: 5.289 MB / 0.67 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002287/0.6562, allocations: 2.012 MB / 0.672 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002755/0.6589, allocations: 1.133 MB / 0.6731 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06399/0.7229, allocations: 47.29 MB / 0.7193 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002212/0.7231, allocations: 0 / 0.7193 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001451/0.7246, allocations: 475.9 kB / 0.7197 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002306/0.7269, allocations: 1.839 MB / 0.7215 GB, free: 9.965 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3029/1.03, allocations: 79.33 MB / 0.799 GB, free: 126.9 MB / 0.5606 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.1397/1.17, allocations: 108.4 MB / 0.9049 GB, free: 18.9 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0224/1.192, allocations: 19.42 MB / 0.9238 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02289/1.215, allocations: 15.6 MB / 0.9391 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002675/1.218, allocations: 0.7491 MB / 0.9398 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000136/1.218, allocations: 99.8 kB / 0.9399 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=533): time 1.243e-05/1.218, allocations: 0 / 0.9399 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of matching and sorting (n=755): time 0.6162/1.834, allocations: 132 MB / 1.069 GB, free: 109.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07782/1.912, allocations: 51.85 MB / 1.119 GB, free: 56.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02175/1.933, allocations: 13.68 MB / 1.133 GB, free: 42.97 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.002837/1.936, allocations: 141.7 kB / 1.133 GB, free: 42.82 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.005017/1.941, allocations: 5.436 MB / 1.138 GB, free: 37.37 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.004451/1.946, allocations: 2.643 MB / 1.141 GB, free: 34.77 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009502/1.955, allocations: 2.432 MB / 1.143 GB, free: 32.33 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.351e-05/1.955, allocations: 305.1 kB / 1.144 GB, free: 32.03 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03314/1.988, allocations: 23 MB / 1.166 GB, free: 9.059 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0498/2.038, allocations: 24.07 MB / 1.189 GB, free: 0.6836 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.7811/2.819, allocations: 110.6 MB / 1.297 GB, free: 124.1 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.623e-05/2.819, allocations: 8 kB / 1.297 GB, free: 124.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.08451/2.904, allocations: 52.16 MB / 1.348 GB, free: 72.86 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.618e-05/2.904, allocations: 19.98 kB / 1.348 GB, free: 72.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.954e-05/2.904, allocations: 24 kB / 1.348 GB, free: 72.81 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04557/2.95, allocations: 13.5 MB / 1.362 GB, free: 59.32 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03025/2.98, allocations: 4.483 MB / 1.366 GB, free: 54.83 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.324/3.304, allocations: 74.52 MB / 1.439 GB, free: 171.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01614/3.32, allocations: 0.6919 MB / 1.439 GB, free: 171.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004913/3.325, allocations: 1.728 MB / 1.441 GB, free: 171.4 MB / 0.6075 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.01087/3.336, allocations: 2.756 MB / 1.444 GB, free: 170.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005839/3.342, allocations: 1.197 MB / 1.445 GB, free: 170.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08924/3.431, allocations: 31.33 MB / 1.476 GB, free: 158.9 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05227/3.483, allocations: 18.17 MB / 1.493 GB, free: 151.9 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000139/3.483, allocations: 7.812 kB / 1.493 GB, free: 151.9 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002442/3.483, allocations: 35.48 kB / 1.493 GB, free: 151.9 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1092/3.593, allocations: 62.16 MB / 1.554 GB, free: 92.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000173/3.593, allocations: 34.59 kB / 1.554 GB, free: 92.06 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01475/3.608, allocations: 1.973 MB / 1.556 GB, free: 90.11 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03675/3.644, allocations: 7.178 MB / 1.563 GB, free: 83.01 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00185/3.646, allocations: 302.3 kB / 1.563 GB, free: 82.72 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06225/3.708, allocations: 50.5 MB / 1.613 GB, free: 29.97 MB / 0.6075 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.01846/3.727, allocations: 11.45 MB / 1.624 GB, free: 17.87 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0706/3.798, allocations: 27.43 MB / 1.651 GB, free: 5.57 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006442/3.804, allocations: 1.812 MB / 1.652 GB, free: 3.754 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006431/3.81, allocations: 183.3 kB / 1.653 GB, free: 3.578 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01162/3.822, allocations: 402.2 kB / 1.653 GB, free: 3.188 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003672/3.826, allocations: 0.8803 MB / 1.654 GB, free: 2.312 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001856/3.828, allocations: 479.8 kB / 1.654 GB, free: 1.844 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.3129/4.14, allocations: 13.82 MB / 1.668 GB, free: 181.3 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.1e-07/4.14, allocations: 0 / 1.668 GB, free: 181.3 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.01965/4.16, allocations: 4.101 MB / 1.672 GB, free: 181.3 MB / 0.6231 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.06718/4.227, allocations: 26.79 MB / 1.698 GB, free: 171.1 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.04452/4.272, allocations: 29.85 MB / 1.727 GB, free: 156.3 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.111e-05/4.272, allocations: 4 kB / 1.727 GB, free: 156.3 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.02114/4.293, allocations: 10.13 MB / 1.737 GB, free: 147 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01877/4.312, allocations: 2.8 MB / 1.74 GB, free: 144.9 MB / 0.6231 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.695968687068671] Failed to read output from testmodel.py, exit status != 0: 4.3210922630969435 4.331365492 3.729161106 Calling exit ...