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.001415/0.001415, allocations: 107.9 kB / 16.45 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.001451/0.001451, 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.496/1.496, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.1483/0.1483, allocations: 23.84 MB / 332.7 MB, free: 12.37 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.002029/0.002029, allocations: 67.89 kB / 466.5 MB, free: 9.602 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3335, allocations: 59.82 MB / 0.514 GB, free: 9.105 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.07334/0.4068, allocations: 61.4 MB / 0.5739 GB, free: 13.42 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03436/0.4412, allocations: 16.87 MB / 0.5904 GB, free: 12.89 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01003/0.4512, allocations: 127.4 kB / 0.5905 GB, free: 12.77 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009179/0.4604, allocations: 2.634 MB / 0.5931 GB, free: 10.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01469/0.4751, allocations: 3.525 MB / 0.5965 GB, free: 6.562 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009333/0.4844, allocations: 2.887 MB / 0.5994 GB, free: 3.668 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01931/0.5037, allocations: 10.87 MB / 0.61 GB, free: 8.75 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004743/0.5085, allocations: 2.704 MB / 0.6126 GB, free: 5.953 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007513/0.516, allocations: 4.492 MB / 0.617 GB, free: 1.445 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008418/0.5244, allocations: 5.384 MB / 0.6223 GB, free: 12.04 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002872/0.5273, allocations: 1.227 MB / 0.6234 GB, free: 10.81 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008257/0.5355, allocations: 2.911 MB / 0.6263 GB, free: 7.898 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004095/0.5396, allocations: 3.59 MB / 0.6298 GB, free: 4.297 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01071/0.5503, allocations: 6.614 MB / 0.6363 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02768/0.578, allocations: 17.06 MB / 0.6529 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.501e-05/0.578, allocations: 3.984 kB / 0.6529 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.335e-06/0.578, allocations: 3.938 kB / 0.6529 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0007161/0.5787, allocations: 8 kB / 0.6529 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.03353/0.6123, allocations: 12.7 MB / 0.6653 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.6123, allocations: 8.031 kB / 0.6653 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007867/0.6202, allocations: 2.393 MB / 0.6677 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01195/0.6321, allocations: 5.368 MB / 0.6729 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002282/0.6344, allocations: 1.689 MB / 0.6746 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002963/0.6374, allocations: 1.133 MB / 0.6757 GB, free: 4.926 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06254/0.6999, allocations: 45.17 MB / 0.7198 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001561/0.7001, allocations: 0 / 0.7198 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009748/0.7011, allocations: 471.9 kB / 0.7202 GB, free: 7.219 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002088/0.7031, allocations: 1.843 MB / 0.722 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5917/1.295, allocations: 75.8 MB / 0.7961 GB, free: 124.6 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.1423/1.437, allocations: 111.7 MB / 0.9051 GB, free: 13.57 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02531/1.462, allocations: 19.23 MB / 0.9239 GB, free: 10.29 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02267/1.485, allocations: 15.24 MB / 0.9388 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005792/1.491, allocations: 2.526 MB / 0.9412 GB, free: 8.199 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.459e-05/1.491, allocations: 94.47 kB / 0.9413 GB, free: 8.102 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=533): time 6.763e-06/1.491, allocations: 0 / 0.9413 GB, free: 8.102 MB / 0.5919 GB Notification: Performance of matching and sorting (n=755): time 0.7099/2.201, allocations: 132.1 MB / 1.07 GB, free: 134.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07507/2.276, allocations: 53.02 MB / 1.122 GB, free: 79.55 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0182/2.294, allocations: 13.68 MB / 1.135 GB, free: 65.93 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.003774/2.298, allocations: 145.7 kB / 1.136 GB, free: 65.78 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.003849/2.302, allocations: 5.426 MB / 1.141 GB, free: 60.64 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.006975/2.309, allocations: 2.647 MB / 1.144 GB, free: 58.25 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007161/2.316, allocations: 2.429 MB / 1.146 GB, free: 55.82 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.931e-05/2.316, allocations: 305.1 kB / 1.146 GB, free: 55.52 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02645/2.343, allocations: 22.43 MB / 1.168 GB, free: 33.11 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02699/2.37, allocations: 23.5 MB / 1.191 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.9375/3.307, allocations: 116.3 MB / 1.305 GB, free: 126.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.361e-05/3.307, allocations: 8 kB / 1.305 GB, free: 126.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.07979/3.387, allocations: 51.08 MB / 1.355 GB, free: 75.88 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.025e-05/3.387, allocations: 16 kB / 1.355 GB, free: 75.87 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.92e-05/3.387, allocations: 24 kB / 1.355 GB, free: 75.84 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0435/3.43, allocations: 13.26 MB / 1.368 GB, free: 62.57 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03011/3.461, allocations: 4.409 MB / 1.372 GB, free: 58.16 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4161/3.877, allocations: 76.27 MB / 1.446 GB, free: 187.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01727/3.894, allocations: 0.6255 MB / 1.447 GB, free: 187.4 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004936/3.899, allocations: 1.717 MB / 1.449 GB, free: 187.4 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.01087/3.91, allocations: 2.749 MB / 1.451 GB, free: 187.3 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005583/3.915, allocations: 1.195 MB / 1.452 GB, free: 187.3 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08082/3.996, allocations: 30.94 MB / 1.483 GB, free: 180.1 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04386/4.04, allocations: 17.94 MB / 1.5 GB, free: 173 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001493/4.04, allocations: 9.625 kB / 1.5 GB, free: 173 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003224/4.041, allocations: 38.72 kB / 1.5 GB, free: 173 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1025/4.143, allocations: 65.28 MB / 1.564 GB, free: 120.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001054/4.143, allocations: 32 kB / 1.564 GB, free: 120.4 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01456/4.158, allocations: 1.891 MB / 1.566 GB, free: 118.5 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0362/4.194, allocations: 7.183 MB / 1.573 GB, free: 111.4 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001795/4.196, allocations: 307.8 kB / 1.573 GB, free: 111.1 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06062/4.256, allocations: 53.72 MB / 1.626 GB, free: 54.88 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.01697/4.273, allocations: 12.15 MB / 1.637 GB, free: 41.98 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05924/4.333, allocations: 26.77 MB / 1.664 GB, free: 14.38 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005198/4.338, allocations: 1.881 MB / 1.665 GB, free: 12.48 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004796/4.343, allocations: 188.4 kB / 1.666 GB, free: 12.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009682/4.352, allocations: 319.7 kB / 1.666 GB, free: 11.99 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003549/4.356, allocations: 0.8435 MB / 1.667 GB, free: 11.16 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001441/4.357, allocations: 479.8 kB / 1.667 GB, free: 10.69 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.38/4.737, allocations: 13.82 MB / 1.681 GB, free: 174.2 MB / 0.6232 GB Notification: Performance of sort global known variables: time 6.51e-07/4.737, allocations: 0 / 1.681 GB, free: 174.2 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.02169/4.759, allocations: 4.132 MB / 1.685 GB, free: 174.2 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.002878/4.762, allocations: 0.6519 MB / 1.685 GB, free: 174.1 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.05354/4.815, allocations: 29.07 MB / 1.714 GB, free: 167.8 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-05/4.815, allocations: 3.844 kB / 1.714 GB, free: 167.8 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.02079/4.836, allocations: 9.944 MB / 1.723 GB, free: 162.7 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0248/4.861, allocations: 2.8 MB / 1.726 GB, free: 161.8 MB / 0.6232 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4705:9-4705:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/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 655] [Calling sys.exit(0), Time elapsed: 7.451048359274864] Failed to read output from testmodel.py, exit status != 0: 4.873539622873068 4.885875745 4.30525909 Calling exit ...