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.001332/0.001332, 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.00205/0.00205, allocations: 214.8 kB / 23.04 MB, free: 5.07 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.518/1.518, allocations: 230.6 MB / 256.8 MB, free: 7.965 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.1623/0.1623, allocations: 23.85 MB / 337.1 MB, free: 11.16 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.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_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.002009/0.002009, allocations: 63.91 kB / 472 MB, free: 7.66 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4057/0.4077, allocations: 59.86 MB / 0.5193 GB, free: 9.219 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.0803/0.488, allocations: 61.45 MB / 0.5794 GB, free: 12.28 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03858/0.5266, allocations: 16.91 MB / 0.5959 GB, free: 11.52 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0122/0.5388, allocations: 123.4 kB / 0.596 GB, free: 11.4 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009282/0.5481, allocations: 2.634 MB / 0.5986 GB, free: 8.746 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01469/0.5628, allocations: 3.54 MB / 0.602 GB, free: 5.18 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01054/0.5733, allocations: 2.898 MB / 0.6048 GB, free: 2.273 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02159/0.5949, allocations: 10.88 MB / 0.6155 GB, free: 7.348 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005522/0.6004, allocations: 2.396 MB / 0.6178 GB, free: 4.855 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009242/0.6097, allocations: 4.496 MB / 0.6222 GB, free: 352 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01114/0.6208, allocations: 5.38 MB / 0.6275 GB, free: 10.94 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005852/0.6267, allocations: 1.227 MB / 0.6287 GB, free: 9.715 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01137/0.638, allocations: 2.908 MB / 0.6315 GB, free: 6.805 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007595/0.6456, allocations: 3.598 MB / 0.635 GB, free: 3.195 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01374/0.6594, allocations: 6.607 MB / 0.6415 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03091/0.6903, allocations: 17.07 MB / 0.6581 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.6903, allocations: 0 / 0.6581 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.714e-06/0.6903, allocations: 0 / 0.6581 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0006394/0.6909, allocations: 4 kB / 0.6581 GB, free: 11.41 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.03228/0.7232, allocations: 12.64 MB / 0.6705 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.881e-05/0.7233, allocations: 15.97 kB / 0.6705 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000447/0.7237, allocations: 319 kB / 0.6708 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006555/0.7303, allocations: 1.705 MB / 0.6725 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009793/0.7401, allocations: 2.385 MB / 0.6748 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01252/0.7526, allocations: 5.273 MB / 0.6799 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002578/0.7552, allocations: 2.012 MB / 0.6819 GB, free: 2.734 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003131/0.7583, allocations: 1.133 MB / 0.683 GB, free: 1.602 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0698/0.8281, allocations: 47.14 MB / 0.7291 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003146/0.8284, allocations: 0 / 0.7291 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002655/0.8311, allocations: 471.9 kB / 0.7295 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00235/0.8334, allocations: 1.839 MB / 0.7313 GB, free: 68 kB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5862/1.42, allocations: 79.12 MB / 0.8086 GB, free: 115.1 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.1689/1.589, allocations: 113.8 MB / 0.9197 GB, free: 1.859 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03039/1.619, allocations: 19.28 MB / 0.9385 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02348/1.642, allocations: 15.45 MB / 0.9536 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005384/1.648, allocations: 1.189 MB / 0.9548 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001293/1.648, allocations: 94.53 kB / 0.9549 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=533): time 7.444e-06/1.648, allocations: 3.938 kB / 0.9549 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of matching and sorting (n=755): time 0.665/2.313, allocations: 131.3 MB / 1.083 GB, free: 124 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.08173/2.395, allocations: 52.71 MB / 1.135 GB, free: 70.02 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01787/2.413, allocations: 13.67 MB / 1.148 GB, free: 56.42 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.003005/2.416, allocations: 151.3 kB / 1.148 GB, free: 56.27 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.004196/2.42, allocations: 5.428 MB / 1.153 GB, free: 51.12 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.005705/2.425, allocations: 2.649 MB / 1.156 GB, free: 48.71 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00921/2.435, allocations: 2.424 MB / 1.158 GB, free: 46.29 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 4.221e-05/2.435, allocations: 301.1 kB / 1.159 GB, free: 45.99 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02606/2.461, allocations: 22.84 MB / 1.181 GB, free: 23.17 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3193/2.78, allocations: 23.89 MB / 1.204 GB, free: 185.8 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.577/3.357, allocations: 116.8 MB / 1.318 GB, free: 115.1 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000129/3.357, allocations: 8 kB / 1.318 GB, free: 115.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.08832/3.445, allocations: 51.83 MB / 1.369 GB, free: 64.05 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.363e-05/3.446, allocations: 20.09 kB / 1.369 GB, free: 64.03 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.095e-05/3.446, allocations: 24 kB / 1.369 GB, free: 64.01 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04492/3.491, allocations: 13.52 MB / 1.382 GB, free: 50.48 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03105/3.522, allocations: 4.408 MB / 1.386 GB, free: 46.07 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3849/3.907, allocations: 75.42 MB / 1.46 GB, free: 186.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01694/3.923, allocations: 0.6229 MB / 1.461 GB, free: 186.9 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006388/3.93, 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.01342/3.943, allocations: 2.76 MB / 1.465 GB, free: 186.8 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00681/3.95, allocations: 1.194 MB / 1.466 GB, free: 186.8 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07896/4.029, allocations: 31.02 MB / 1.497 GB, free: 176.1 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04538/4.074, allocations: 17.99 MB / 1.514 GB, free: 169 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001048/4.075, allocations: 6.438 kB / 1.514 GB, free: 169 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002399/4.075, allocations: 37.14 kB / 1.514 GB, free: 169 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1023/4.177, allocations: 67.09 MB / 1.58 GB, free: 107.1 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.411e-05/4.177, allocations: 35.98 kB / 1.58 GB, free: 107.1 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01409/4.191, allocations: 1.898 MB / 1.582 GB, free: 105.2 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03488/4.226, allocations: 7.18 MB / 1.589 GB, free: 98.09 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001831/4.228, allocations: 299.8 kB / 1.589 GB, free: 97.8 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06228/4.29, allocations: 51.47 MB / 1.639 GB, free: 44.29 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.01806/4.308, allocations: 11.65 MB / 1.65 GB, free: 32.01 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07523/4.383, allocations: 26.9 MB / 1.677 GB, free: 4.277 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007199/4.391, allocations: 1.812 MB / 1.679 GB, free: 2.465 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006088/4.397, allocations: 192.4 kB / 1.679 GB, free: 2.281 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01336/4.41, allocations: 319.7 kB / 1.679 GB, free: 1.969 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004993/4.415, allocations: 0.8762 MB / 1.68 GB, free: 1.109 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002657/4.418, allocations: 475.8 kB / 1.68 GB, free: 0.6445 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.4262/4.844, allocations: 13.82 MB / 1.694 GB, free: 179.4 MB / 0.6232 GB Notification: Performance of sort global known variables: time 2.1e-07/4.844, allocations: 0 / 1.694 GB, free: 179.4 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01731/4.861, allocations: 4.131 MB / 1.698 GB, free: 179.4 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.06275/4.924, allocations: 26.33 MB / 1.724 GB, free: 168.7 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.04441/4.968, allocations: 29.5 MB / 1.752 GB, free: 153.6 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 3.539e-05/4.969, allocations: 6.656 kB / 1.752 GB, free: 153.6 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.02051/4.989, allocations: 9.991 MB / 1.762 GB, free: 144.4 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02265/5.012, allocations: 2.8 MB / 1.765 GB, free: 142.4 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.718556069070473] Failed to read output from testmodel.py, exit status != 0: 5.022113356972113 5.033433815 4.340474712 Calling exit ...