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.002089/0.002089, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002109/0.002109, allocations: 220.7 kB / 23.03 MB, free: 4.941 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.572/1.572, 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.1937/0.1937, allocations: 23.88 MB / 337.1 MB, free: 10.97 MB / 270.1 MB " [Timeout remaining time 179] 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.00202/0.00202, allocations: 67.89 kB / 471.9 MB, free: 7.512 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4369/0.439, allocations: 59.86 MB / 0.5193 GB, free: 9.539 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.1141/0.553, allocations: 54.43 MB / 0.5724 GB, free: 3.305 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04439/0.5974, allocations: 15.55 MB / 0.5876 GB, free: 3.844 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01511/0.6126, allocations: 119.5 kB / 0.5877 GB, free: 3.727 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01046/0.623, allocations: 2.552 MB / 0.5902 GB, free: 1.156 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01577/0.6388, allocations: 3.533 MB / 0.5937 GB, free: 13.6 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01141/0.6502, allocations: 2.898 MB / 0.5965 GB, free: 10.69 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02183/0.672, allocations: 10.88 MB / 0.6071 GB, free: 15.77 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004652/0.6767, allocations: 2.399 MB / 0.6095 GB, free: 13.27 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007431/0.6841, allocations: 4.488 MB / 0.6139 GB, free: 8.766 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01028/0.6944, allocations: 5.388 MB / 0.6191 GB, free: 3.355 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004393/0.6988, allocations: 1.223 MB / 0.6203 GB, free: 2.133 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009626/0.7084, allocations: 2.334 MB / 0.6226 GB, free: 15.8 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005471/0.7139, allocations: 3.594 MB / 0.6261 GB, free: 12.19 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01261/0.7265, allocations: 5.056 MB / 0.6311 GB, free: 7.109 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03151/0.758, allocations: 17.02 MB / 0.6477 GB, free: 6.027 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.758, allocations: 4 kB / 0.6477 GB, free: 6.023 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.758, allocations: 0 / 0.6477 GB, free: 6.023 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0006594/0.7586, allocations: 0 / 0.6477 GB, free: 6.023 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.03367/0.7923, allocations: 12.64 MB / 0.66 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.729e-05/0.7924, allocations: 12.02 kB / 0.66 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0004424/0.7928, allocations: 319 kB / 0.6603 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004271/0.7971, allocations: 1.709 MB / 0.662 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01234/0.8094, allocations: 2.865 MB / 0.6648 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01216/0.8216, allocations: 5.3 MB / 0.67 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002684/0.8243, allocations: 2.012 MB / 0.6719 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003322/0.8276, allocations: 1.133 MB / 0.6731 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08335/0.911, allocations: 47.28 MB / 0.7192 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005125/0.9115, allocations: 0 / 0.7192 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003836/0.9153, allocations: 467.9 kB / 0.7197 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003206/0.9185, allocations: 1.85 MB / 0.7215 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6836/1.602, allocations: 79.33 MB / 0.7989 GB, free: 124.3 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.1438/1.746, allocations: 108.4 MB / 0.9048 GB, free: 16.86 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02384/1.77, allocations: 19.42 MB / 0.9238 GB, free: 13.41 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0237/1.793, allocations: 15.6 MB / 0.939 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002876/1.796, allocations: 0.7451 MB / 0.9397 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001007/1.796, allocations: 91.88 kB / 0.9398 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=533): time 9.648e-06/1.796, allocations: 0 / 0.9398 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of matching and sorting (n=755): time 0.6612/2.458, allocations: 132.1 MB / 1.069 GB, free: 137.6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.077/2.535, allocations: 51.83 MB / 1.119 GB, free: 84.53 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01827/2.553, allocations: 13.68 MB / 1.133 GB, free: 70.91 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.002852/2.556, allocations: 149.3 kB / 1.133 GB, free: 70.76 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.004079/2.56, allocations: 5.424 MB / 1.138 GB, free: 65.62 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.004357/2.564, allocations: 2.649 MB / 1.141 GB, free: 63.21 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006368/2.571, allocations: 2.428 MB / 1.143 GB, free: 60.78 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 3.976e-05/2.571, allocations: 309 kB / 1.143 GB, free: 60.48 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02478/2.595, allocations: 23 MB / 1.166 GB, free: 37.5 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02588/2.621, allocations: 24.07 MB / 1.189 GB, free: 13.13 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.8523/3.474, allocations: 110.5 MB / 1.297 GB, free: 134.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.632e-05/3.474, allocations: 8 kB / 1.297 GB, free: 134.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.0903/3.564, allocations: 52.17 MB / 1.348 GB, free: 83.04 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.066e-05/3.564, allocations: 16 kB / 1.348 GB, free: 83.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.445e-05/3.564, allocations: 24 kB / 1.348 GB, free: 83 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04436/3.608, allocations: 13.52 MB / 1.362 GB, free: 69.53 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02983/3.638, allocations: 4.491 MB / 1.366 GB, free: 65.04 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07481/3.713, allocations: 74.52 MB / 1.439 GB, free: 5.008 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01727/3.73, allocations: 0.6944 MB / 1.439 GB, free: 4.312 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005847/3.736, allocations: 1.722 MB / 1.441 GB, free: 2.59 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.3226/4.059, allocations: 2.748 MB / 1.444 GB, free: 191.7 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005262/4.064, allocations: 1.196 MB / 1.445 GB, free: 191.7 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08746/4.152, allocations: 31.34 MB / 1.476 GB, free: 187.1 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04926/4.201, allocations: 18.17 MB / 1.493 GB, free: 180.1 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001238/4.201, allocations: 12.5 kB / 1.493 GB, free: 180.1 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000267/4.201, allocations: 35.97 kB / 1.493 GB, free: 180.1 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1067/4.308, allocations: 62.16 MB / 1.554 GB, free: 130.7 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001006/4.308, allocations: 32 kB / 1.554 GB, free: 130.7 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0144/4.322, allocations: 1.971 MB / 1.556 GB, free: 128.7 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03644/4.359, allocations: 7.167 MB / 1.563 GB, free: 121.6 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002262/4.361, allocations: 310.4 kB / 1.563 GB, free: 121.3 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06159/4.423, allocations: 50.49 MB / 1.613 GB, free: 68.87 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.018/4.441, allocations: 11.46 MB / 1.624 GB, free: 56.77 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06369/4.504, allocations: 27.42 MB / 1.651 GB, free: 28.48 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005156/4.51, allocations: 1.805 MB / 1.652 GB, free: 26.67 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004794/4.514, allocations: 196.6 kB / 1.653 GB, free: 26.48 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01021/4.525, allocations: 394.3 kB / 1.653 GB, free: 26.1 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003329/4.528, allocations: 0.8755 MB / 1.654 GB, free: 25.22 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001192/4.529, allocations: 479.8 kB / 1.654 GB, free: 24.75 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.0237/4.553, allocations: 13.82 MB / 1.668 GB, free: 10.98 MB / 0.6232 GB Notification: Performance of sort global known variables: time 6.41e-07/4.553, allocations: 0 / 1.668 GB, free: 10.98 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01882/4.572, allocations: 4.105 MB / 1.672 GB, free: 6.895 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.4622/5.034, allocations: 26.8 MB / 1.698 GB, free: 176 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.04909/5.083, allocations: 29.84 MB / 1.727 GB, free: 164.6 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 5.459e-05/5.083, allocations: 7.656 kB / 1.727 GB, free: 164.6 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.02149/5.104, allocations: 10.13 MB / 1.737 GB, free: 159.5 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02088/5.125, allocations: 2.794 MB / 1.74 GB, free: 158.6 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.960574937053025] Failed to read output from testmodel.py, exit status != 0: 5.134902026038617 5.146662924 4.385918361 Calling exit ...