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.00121/0.00121, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001319/0.001319, allocations: 221.1 kB / 22.25 MB, free: 5.102 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.358/1.358, allocations: 230.6 MB / 256 MB, free: 7.809 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.1339/0.1339, allocations: 23.9 MB / 336.3 MB, free: 10.97 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Diffusion,fileNamePrefix="Chemical_Chemical_Examples_Diffusion",fmuType="me",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.001936/0.001936, allocations: 67.84 kB / 471.1 MB, free: 7.516 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2996, allocations: 59.86 MB / 0.5185 GB, free: 9.531 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.0988/0.3984, allocations: 54.75 MB / 0.572 GB, free: 2.965 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03247/0.4309, allocations: 15.57 MB / 0.5872 GB, free: 3.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00916/0.4401, allocations: 123.4 kB / 0.5873 GB, free: 3.379 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008347/0.4484, allocations: 2.498 MB / 0.5898 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01456/0.463, allocations: 3.529 MB / 0.5932 GB, free: 13.31 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008556/0.4715, allocations: 2.879 MB / 0.596 GB, free: 10.42 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01884/0.4904, allocations: 10.87 MB / 0.6066 GB, free: 15.51 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00479/0.4952, allocations: 2.399 MB / 0.609 GB, free: 13.01 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006642/0.5018, allocations: 4.5 MB / 0.6134 GB, free: 8.496 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008318/0.5101, allocations: 5.38 MB / 0.6186 GB, free: 3.094 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003936/0.5141, allocations: 1.223 MB / 0.6198 GB, free: 1.871 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008148/0.5222, allocations: 2.334 MB / 0.6221 GB, free: 15.54 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005362/0.5276, allocations: 3.594 MB / 0.6256 GB, free: 11.93 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009963/0.5375, allocations: 5.068 MB / 0.6306 GB, free: 6.836 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02628/0.5638, allocations: 17.01 MB / 0.6472 GB, free: 5.758 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.5638, allocations: 0 / 0.6472 GB, free: 5.758 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5638, allocations: 0 / 0.6472 GB, free: 5.758 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0006624/0.5645, allocations: 0 / 0.6472 GB, free: 5.758 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.02791/0.5924, allocations: 12.64 MB / 0.6595 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.5924, allocations: 16.02 kB / 0.6595 GB, free: 9 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003455/0.5959, allocations: 1.701 MB / 0.6612 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01097/0.6069, allocations: 2.869 MB / 0.664 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0121/0.619, allocations: 5.296 MB / 0.6692 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002547/0.6215, allocations: 2.012 MB / 0.6711 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003026/0.6245, allocations: 1.133 MB / 0.6722 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06108/0.6856, allocations: 47.29 MB / 0.7184 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001846/0.6858, allocations: 0 / 0.7184 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001015/0.6868, allocations: 463.9 kB / 0.7189 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001973/0.6888, allocations: 1.843 MB / 0.7207 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.443/1.132, allocations: 79.2 MB / 0.798 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.1228/1.255, allocations: 108.4 MB / 0.9039 GB, free: 17.13 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02154/1.276, allocations: 19.42 MB / 0.9228 GB, free: 13.68 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02304/1.299, allocations: 15.6 MB / 0.9381 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002482/1.302, allocations: 0.7491 MB / 0.9388 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.403e-05/1.302, allocations: 95.81 kB / 0.9389 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=533): time 7.954e-06/1.302, allocations: 0 / 0.9389 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of matching and sorting (n=755): time 0.5274/1.829, allocations: 132 MB / 1.068 GB, free: 137.8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.06669/1.896, allocations: 51.83 MB / 1.118 GB, free: 84.66 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01377/1.91, allocations: 13.71 MB / 1.132 GB, free: 71.03 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.002661/1.912, allocations: 149.7 kB / 1.132 GB, free: 70.88 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.003298/1.915, allocations: 5.432 MB / 1.137 GB, free: 65.73 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.003884/1.919, allocations: 2.641 MB / 1.14 GB, free: 63.33 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006181/1.926, allocations: 2.439 MB / 1.142 GB, free: 60.89 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 3.248e-05/1.926, allocations: 307.7 kB / 1.143 GB, free: 60.59 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02279/1.948, allocations: 23.01 MB / 1.165 GB, free: 37.61 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02404/1.972, allocations: 24.07 MB / 1.189 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.6809/2.653, allocations: 110.5 MB / 1.296 GB, free: 134.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-05/2.653, allocations: 8 kB / 1.296 GB, free: 134.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.07459/2.728, allocations: 52.17 MB / 1.347 GB, free: 82.96 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.252e-05/2.728, allocations: 16 kB / 1.347 GB, free: 82.94 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.237e-05/2.728, allocations: 24 kB / 1.347 GB, free: 82.92 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03952/2.768, allocations: 13.5 MB / 1.361 GB, free: 69.47 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02853/2.796, allocations: 4.49 MB / 1.365 GB, free: 64.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06771/2.864, allocations: 74.52 MB / 1.438 GB, free: 4.969 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01414/2.878, allocations: 0.6944 MB / 1.438 GB, free: 4.273 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004326/2.882, allocations: 1.726 MB / 1.44 GB, free: 2.551 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.215/3.097, allocations: 2.757 MB / 1.443 GB, free: 190.8 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004224/3.102, allocations: 1.196 MB / 1.444 GB, free: 190.8 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07474/3.176, allocations: 31.33 MB / 1.475 GB, free: 186.4 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0409/3.217, allocations: 18.17 MB / 1.492 GB, free: 179.4 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.956e-05/3.217, allocations: 14.34 kB / 1.492 GB, free: 179.4 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001388/3.217, allocations: 36.75 kB / 1.492 GB, free: 179.4 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08833/3.306, allocations: 62.17 MB / 1.553 GB, free: 130.5 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.648e-05/3.306, allocations: 34.72 kB / 1.553 GB, free: 130.4 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01416/3.32, allocations: 1.972 MB / 1.555 GB, free: 128.5 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03163/3.352, allocations: 7.164 MB / 1.562 GB, free: 121.4 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001517/3.353, allocations: 298.5 kB / 1.562 GB, free: 121.1 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05365/3.407, allocations: 50.51 MB / 1.612 GB, free: 68.63 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.01518/3.422, allocations: 11.46 MB / 1.623 GB, free: 56.53 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0524/3.474, allocations: 27.43 MB / 1.65 GB, free: 28.24 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0045/3.479, allocations: 1.801 MB / 1.651 GB, free: 26.43 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003444/3.482, allocations: 194 kB / 1.652 GB, free: 26.25 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007705/3.49, allocations: 398.2 kB / 1.652 GB, free: 25.86 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002139/3.492, allocations: 0.8707 MB / 1.653 GB, free: 24.99 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000711/3.493, allocations: 479.8 kB / 1.653 GB, free: 24.52 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.01685/3.51, allocations: 13.83 MB / 1.667 GB, free: 10.74 MB / 0.6232 GB Notification: Performance of sort global known variables: time 2.81e-07/3.51, allocations: 0 / 1.667 GB, free: 10.74 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01291/3.523, allocations: 4.102 MB / 1.671 GB, free: 6.66 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.269/3.792, allocations: 26.8 MB / 1.697 GB, free: 175.2 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.03872/3.83, allocations: 29.84 MB / 1.726 GB, free: 163.8 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 4.723e-05/3.83, allocations: 3.906 kB / 1.726 GB, free: 163.8 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.0175/3.848, allocations: 10.13 MB / 1.736 GB, free: 158.7 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01347/3.861, allocations: 2.795 MB / 1.739 GB, free: 157.8 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 656] [Calling sys.exit(0), Time elapsed: 6.127218687004643] Failed to read output from testmodel.py, exit status != 0: 3.869695118017262 3.879325803 3.313110634 Calling exit ...