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.00132/0.00132, allocations: 115.5 kB / 17.16 MB, free: 5.895 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.001416/0.001416, allocations: 215 kB / 20.13 MB, free: 2.949 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.469/1.469, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.139/0.139, allocations: 23.89 MB / 333.4 MB, free: 1.168 MB / 254.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.001928/0.001928, allocations: 60.16 kB / 466.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1083, allocations: 59.83 MB / 0.5142 GB, free: 12.91 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.07513/0.1835, allocations: 61.44 MB / 0.5742 GB, free: 15.37 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2887/0.4722, allocations: 16.87 MB / 0.5907 GB, free: 17.55 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008076/0.4803, allocations: 122.2 kB / 0.5908 GB, free: 17.55 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008333/0.4886, allocations: 2.639 MB / 0.5934 GB, free: 17.5 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0139/0.5025, allocations: 3.526 MB / 0.5968 GB, free: 17.48 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008894/0.5114, allocations: 2.889 MB / 0.5996 GB, free: 17.44 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01848/0.5299, allocations: 10.87 MB / 0.6103 GB, free: 15.54 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004509/0.5344, allocations: 2.698 MB / 0.6129 GB, free: 14.47 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008351/0.5427, allocations: 4.49 MB / 0.6173 GB, free: 12.22 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008613/0.5514, allocations: 5.383 MB / 0.6225 GB, free: 8.824 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003013/0.5544, allocations: 1.223 MB / 0.6237 GB, free: 8.824 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008187/0.5626, allocations: 2.915 MB / 0.6266 GB, free: 8.023 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003582/0.5661, allocations: 3.593 MB / 0.6301 GB, free: 5.359 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009567/0.5757, allocations: 6.612 MB / 0.6365 GB, free: 248 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02645/0.6021, allocations: 17.07 MB / 0.6532 GB, free: 15.94 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.6022, allocations: 0 / 0.6532 GB, free: 15.94 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.6022, allocations: 0 / 0.6532 GB, free: 15.94 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0005657/0.6027, allocations: 3.984 kB / 0.6532 GB, free: 15.93 MB / 478.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.02795/0.6307, allocations: 12.72 MB / 0.6656 GB, free: 3.254 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.6307, allocations: 8.031 kB / 0.6656 GB, free: 3.246 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003273/0.631, allocations: 319 kB / 0.666 GB, free: 2.934 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004396/0.6354, allocations: 1.71 MB / 0.6676 GB, free: 1.238 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00728/0.6427, allocations: 2.392 MB / 0.67 GB, free: 14.86 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01024/0.653, allocations: 5.366 MB / 0.6752 GB, free: 9.508 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002008/0.655, allocations: 1.686 MB / 0.6768 GB, free: 7.781 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002333/0.6573, allocations: 1.131 MB / 0.6779 GB, free: 6.672 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06096/0.7183, allocations: 45.17 MB / 0.7221 GB, free: 9.66 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000186/0.7184, allocations: 3.938 kB / 0.7221 GB, free: 9.656 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00122/0.7197, allocations: 472.8 kB / 0.7225 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00215/0.7218, allocations: 1.841 MB / 0.7243 GB, free: 7.367 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08889/0.8107, allocations: 75.81 MB / 0.7983 GB, free: 11.73 MB / 0.6075 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.6352/1.446, allocations: 111.6 MB / 0.9074 GB, free: 172.3 MB / 0.6232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02171/1.468, allocations: 19.23 MB / 0.9262 GB, free: 153 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01594/1.484, allocations: 15.23 MB / 0.941 GB, free: 137.8 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005178/1.489, allocations: 2.535 MB / 0.9435 GB, free: 135 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.145e-05/1.489, allocations: 94.52 kB / 0.9436 GB, free: 134.9 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=533): time 8.706e-06/1.489, allocations: 0 / 0.9436 GB, free: 134.9 MB / 0.6232 GB Notification: Performance of matching and sorting (n=755): time 0.3456/1.834, allocations: 132.1 MB / 1.073 GB, free: 3.426 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3092/2.144, allocations: 53.02 MB / 1.124 GB, free: 189.6 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01917/2.163, allocations: 13.68 MB / 1.138 GB, free: 184.6 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.003836/2.167, allocations: 141.2 kB / 1.138 GB, free: 184.5 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.004472/2.171, allocations: 5.429 MB / 1.143 GB, free: 181.1 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.004634/2.176, allocations: 2.644 MB / 1.146 GB, free: 179.4 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008158/2.184, allocations: 2.429 MB / 1.148 GB, free: 178.8 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 4.512e-05/2.184, allocations: 309.1 kB / 1.148 GB, free: 178.5 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02375/2.208, allocations: 22.43 MB / 1.17 GB, free: 157 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0251/2.233, allocations: 23.49 MB / 1.193 GB, free: 133.2 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5486/2.781, allocations: 116.3 MB / 1.307 GB, free: 17.27 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.666e-05/2.781, allocations: 10.3 kB / 1.307 GB, free: 17.26 MB / 0.6232 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.3843/3.166, allocations: 51.07 MB / 1.357 GB, free: 197.6 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 4.777e-05/3.166, allocations: 15.03 kB / 1.357 GB, free: 197.6 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-05/3.166, allocations: 29.45 kB / 1.357 GB, free: 197.6 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04478/3.211, allocations: 13.26 MB / 1.37 GB, free: 193.5 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03054/3.241, allocations: 4.41 MB / 1.374 GB, free: 193.2 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06756/3.309, allocations: 76.27 MB / 1.449 GB, free: 118.4 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01562/3.324, allocations: 0.6198 MB / 1.449 GB, free: 117.8 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004046/3.328, allocations: 1.722 MB / 1.451 GB, free: 116.1 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.009097/3.337, allocations: 2.748 MB / 1.454 GB, free: 113.3 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005209/3.343, allocations: 1.199 MB / 1.455 GB, free: 112.1 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07484/3.418, allocations: 30.93 MB / 1.485 GB, free: 81.2 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04475/3.462, allocations: 17.94 MB / 1.502 GB, free: 63.28 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-05/3.462, allocations: 8 kB / 1.502 GB, free: 63.27 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001956/3.463, allocations: 39.86 kB / 1.502 GB, free: 63.23 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3476/3.81, allocations: 65.28 MB / 1.566 GB, free: 186.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-05/3.81, allocations: 34.27 kB / 1.566 GB, free: 186.9 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01595/3.826, allocations: 1.893 MB / 1.568 GB, free: 186.9 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03931/3.866, allocations: 7.184 MB / 1.575 GB, free: 186.6 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001897/3.867, allocations: 299.6 kB / 1.575 GB, free: 186.6 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06224/3.93, allocations: 53.72 MB / 1.628 GB, free: 150.3 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.017/3.947, allocations: 12.17 MB / 1.64 GB, free: 140.1 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0565/4.003, allocations: 26.75 MB / 1.666 GB, free: 127.6 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00393/4.007, allocations: 1.888 MB / 1.668 GB, free: 126.6 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003893/4.011, allocations: 190.1 kB / 1.668 GB, free: 126.5 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008326/4.019, allocations: 319.7 kB / 1.668 GB, free: 126.4 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002745/4.022, allocations: 0.8504 MB / 1.669 GB, free: 126.2 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009234/4.023, allocations: 479.5 kB / 1.67 GB, free: 126.1 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.02068/4.044, allocations: 13.82 MB / 1.683 GB, free: 116.4 MB / 0.6232 GB Notification: Performance of sort global known variables: time 1.9e-07/4.044, allocations: 0 / 1.683 GB, free: 116.4 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01577/4.059, allocations: 4.137 MB / 1.687 GB, free: 112.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.05553/4.115, allocations: 26.19 MB / 1.713 GB, free: 85.68 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.03856/4.154, allocations: 29.07 MB / 1.741 GB, free: 56.45 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 2.859e-05/4.154, allocations: 4 kB / 1.741 GB, free: 56.45 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.01986/4.173, allocations: 9.95 MB / 1.751 GB, free: 46.29 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01872/4.192, allocations: 2.798 MB / 1.753 GB, free: 43.64 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 656] [Calling sys.exit(0), Time elapsed: 6.745368593023159] Failed to read output from testmodel.py, exit status != 0: 4.200235193013214 4.209487896 3.604974552 Calling exit ...