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.001411/0.001411, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001485/0.001485, allocations: 212.4 kB / 22.99 MB, free: 4.984 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.493/1.493, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1461/0.1461, allocations: 23.89 MB / 337.1 MB, free: 10.98 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: translateModel(Chemical.Examples.Diffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Diffusion") translateModel(Chemical.Examples.Diffusion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.Diffusion") [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.002067/0.002067, allocations: 74.86 kB / 472.4 MB, free: 7.023 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.378, allocations: 59.86 MB / 0.5197 GB, free: 9.797 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.111/0.489, allocations: 54.67 MB / 0.5731 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03912/0.5281, allocations: 15.56 MB / 0.5883 GB, free: 3.535 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01492/0.5431, allocations: 119.5 kB / 0.5884 GB, free: 3.418 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0102/0.5533, allocations: 2.501 MB / 0.5909 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.017/0.5703, allocations: 3.529 MB / 0.5943 GB, free: 13.34 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01029/0.5806, allocations: 2.879 MB / 0.5971 GB, free: 10.46 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02247/0.603, allocations: 10.88 MB / 0.6078 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005133/0.6082, allocations: 2.396 MB / 0.6101 GB, free: 13.04 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008657/0.6168, allocations: 4.496 MB / 0.6145 GB, free: 8.527 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01027/0.6271, allocations: 5.38 MB / 0.6198 GB, free: 3.125 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003773/0.6309, allocations: 1.223 MB / 0.621 GB, free: 1.902 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00745/0.6383, allocations: 2.334 MB / 0.6232 GB, free: 15.57 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007023/0.6453, allocations: 3.598 MB / 0.6267 GB, free: 11.96 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01152/0.6569, allocations: 5.052 MB / 0.6317 GB, free: 6.879 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0308/0.6876, allocations: 17.02 MB / 0.6483 GB, free: 5.793 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.6877, allocations: 0 / 0.6483 GB, free: 5.793 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.6877, allocations: 4 kB / 0.6483 GB, free: 5.789 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0007412/0.6884, allocations: 0 / 0.6483 GB, free: 5.789 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.03758/0.726, allocations: 12.64 MB / 0.6606 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.726, allocations: 8.031 kB / 0.6607 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01258/0.7386, allocations: 2.869 MB / 0.6635 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01289/0.7515, allocations: 5.289 MB / 0.6686 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002596/0.7541, allocations: 2.012 MB / 0.6706 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0031/0.7572, allocations: 1.129 MB / 0.6717 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07034/0.8275, allocations: 47.3 MB / 0.7179 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003037/0.8278, allocations: 0 / 0.7179 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001932/0.8298, allocations: 467.9 kB / 0.7183 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002278/0.8321, allocations: 1.843 MB / 0.7201 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6031/1.435, allocations: 79.2 MB / 0.7975 GB, free: 126.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.1338/1.569, allocations: 103.6 MB / 0.8986 GB, free: 23.5 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02139/1.59, allocations: 19.42 MB / 0.9176 GB, free: 4.051 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02149/1.612, allocations: 15.6 MB / 0.9328 GB, free: 4.441 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002796/1.615, allocations: 0.7452 MB / 0.9336 GB, free: 3.699 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001019/1.615, allocations: 87.88 kB / 0.9336 GB, free: 3.602 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=533): time 1.008e-05/1.615, allocations: 2.859 kB / 0.9336 GB, free: 3.602 MB / 0.5763 GB Notification: Performance of matching and sorting (n=755): time 0.6918/2.306, allocations: 131.5 MB / 1.062 GB, free: 145.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07891/2.385, allocations: 51.58 MB / 1.112 GB, free: 92.48 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006125/2.392, allocations: 4.75 MB / 1.117 GB, free: 87.74 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.002894/2.394, allocations: 145.7 kB / 1.117 GB, free: 87.59 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.002336/2.397, allocations: 5.425 MB / 1.122 GB, free: 82.92 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.004175/2.401, allocations: 2.64 MB / 1.125 GB, free: 80.32 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008016/2.409, allocations: 2.472 MB / 1.127 GB, free: 77.84 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 4.571e-05/2.409, allocations: 301.1 kB / 1.128 GB, free: 77.54 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0258/2.435, allocations: 23 MB / 1.15 GB, free: 54.57 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02569/2.46, allocations: 24.08 MB / 1.174 GB, free: 30.19 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.8123/3.273, allocations: 110.5 MB / 1.282 GB, free: 151.8 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.443e-05/3.273, allocations: 8 kB / 1.282 GB, free: 151.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.08107/3.354, allocations: 51.58 MB / 1.332 GB, free: 100.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.459e-05/3.354, allocations: 18.72 kB / 1.332 GB, free: 100.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-05/3.354, allocations: 24 kB / 1.332 GB, free: 100.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04458/3.399, allocations: 13.5 MB / 1.345 GB, free: 87.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0308/3.429, allocations: 4.498 MB / 1.35 GB, free: 82.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06888/3.498, allocations: 74.09 MB / 1.422 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0152/3.513, allocations: 0.6954 MB / 1.423 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004858/3.518, allocations: 1.726 MB / 1.424 GB, free: 5.328 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.01201/3.53, allocations: 2.751 MB / 1.427 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004887/3.535, allocations: 0.6167 MB / 1.428 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4401/3.975, allocations: 30.79 MB / 1.458 GB, free: 191.8 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05278/4.028, allocations: 18.17 MB / 1.476 GB, free: 185.9 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001354/4.028, allocations: 11.06 kB / 1.476 GB, free: 185.9 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002686/4.029, allocations: 36.47 kB / 1.476 GB, free: 185.9 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1102/4.139, allocations: 64.63 MB / 1.539 GB, free: 148.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001086/4.139, allocations: 32 kB / 1.539 GB, free: 148.3 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01449/4.153, allocations: 1.98 MB / 1.541 GB, free: 146.4 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0373/4.191, allocations: 7.164 MB / 1.548 GB, free: 139.3 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001928/4.193, allocations: 303.8 kB / 1.548 GB, free: 139 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06126/4.254, allocations: 50 MB / 1.597 GB, free: 87.35 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.01852/4.272, allocations: 11.36 MB / 1.608 GB, free: 75.51 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0613/4.334, allocations: 26.81 MB / 1.634 GB, free: 48.23 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002873/4.337, allocations: 0.7983 MB / 1.635 GB, free: 47.58 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002676/4.339, allocations: 195.5 kB / 1.635 GB, free: 47.39 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007091/4.346, allocations: 400.8 kB / 1.635 GB, free: 47.01 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002357/4.349, allocations: 0.8746 MB / 1.636 GB, free: 46.14 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007776/4.349, allocations: 482.5 kB / 1.637 GB, free: 45.67 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.00843/4.358, allocations: 7.444 MB / 1.644 GB, free: 38.23 MB / 0.6232 GB Notification: Performance of sort global known variables: time 9e-08/4.358, allocations: 0 / 1.644 GB, free: 38.23 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01506/4.373, allocations: 3.986 MB / 1.648 GB, free: 34.27 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.002147/4.375, allocations: 0.5958 MB / 1.648 GB, free: 33.78 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.04126/4.416, allocations: 29.85 MB / 1.678 GB, free: 3.746 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 5.96e-05/4.416, allocations: 4 kB / 1.678 GB, free: 3.742 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.3172/4.734, allocations: 10.12 MB / 1.687 GB, free: 190.6 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01285/4.746, allocations: 1.525 MB / 1.689 GB, free: 190.5 MB / 0.6232 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4734:9-4734:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823: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.3232531510002445] Failed to read output from testmodel.py, exit status != 0: 4.758008009011974 4.771416056 4.080652319 Calling exit ...