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.001469/0.001469, 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.001889/0.001889, allocations: 217.1 kB / 22.25 MB, free: 5.105 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.563/1.563, allocations: 230.6 MB / 256 MB, free: 7.84 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.1672/0.1672, allocations: 23.88 MB / 336.3 MB, free: 10.99 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.002185/0.002185, allocations: 67.91 kB / 471.1 MB, free: 7.539 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4248/0.427, allocations: 59.87 MB / 0.5185 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.1081/0.535, allocations: 54.69 MB / 0.5719 GB, free: 3.02 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04288/0.5779, allocations: 15.57 MB / 0.5872 GB, free: 3.562 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01896/0.5969, allocations: 123.4 kB / 0.5873 GB, free: 3.441 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0118/0.6087, allocations: 2.498 MB / 0.5897 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01954/0.6282, allocations: 3.521 MB / 0.5931 GB, free: 13.38 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01157/0.6398, allocations: 2.879 MB / 0.596 GB, free: 10.49 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.02383/0.6636, allocations: 10.88 MB / 0.6066 GB, free: 15.57 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005404/0.669, allocations: 2.396 MB / 0.6089 GB, free: 13.08 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01/0.679, allocations: 4.496 MB / 0.6133 GB, free: 8.566 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01079/0.6898, allocations: 5.38 MB / 0.6186 GB, free: 3.164 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005201/0.695, allocations: 1.227 MB / 0.6198 GB, free: 1.938 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01019/0.7052, allocations: 2.334 MB / 0.622 GB, free: 15.6 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006843/0.712, allocations: 3.598 MB / 0.6256 GB, free: 11.99 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01282/0.7248, allocations: 5.056 MB / 0.6305 GB, free: 6.91 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03298/0.7578, allocations: 17.02 MB / 0.6471 GB, free: 5.824 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.248e-06/0.7578, allocations: 0 / 0.6471 GB, free: 5.824 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.7578, allocations: 0 / 0.6471 GB, free: 5.824 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0009377/0.7588, allocations: 0 / 0.6471 GB, free: 5.824 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.0365/0.7953, allocations: 12.64 MB / 0.6595 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.7953, allocations: 8.031 kB / 0.6595 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005368/0.8007, allocations: 1.709 MB / 0.6611 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01301/0.8137, allocations: 2.857 MB / 0.6639 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01493/0.8286, allocations: 5.3 MB / 0.6691 GB, free: 15.11 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003202/0.8318, allocations: 2.012 MB / 0.6711 GB, free: 12.96 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004489/0.8363, allocations: 1.129 MB / 0.6722 GB, free: 11.84 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08332/0.9196, allocations: 47.3 MB / 0.7184 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003023/0.9199, allocations: 3.938 kB / 0.7184 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002364/0.9223, allocations: 463.9 kB / 0.7188 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002335/0.9246, allocations: 1.843 MB / 0.7206 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6569/1.582, allocations: 79.2 MB / 0.798 GB, free: 124.5 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.1557/1.737, allocations: 108.4 MB / 0.9038 GB, free: 17.06 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02359/1.761, allocations: 19.41 MB / 0.9228 GB, free: 13.62 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02495/1.786, allocations: 15.61 MB / 0.938 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003219/1.789, allocations: 0.7491 MB / 0.9388 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001254/1.789, allocations: 94.62 kB / 0.9388 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=533): time 9.097e-06/1.789, allocations: 2.656 kB / 0.9388 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of matching and sorting (n=755): time 0.7415/2.531, allocations: 132 MB / 1.068 GB, free: 137.8 MB / 0.6076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.09702/2.628, allocations: 51.82 MB / 1.118 GB, free: 84.68 MB / 0.6076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02156/2.649, allocations: 13.71 MB / 1.132 GB, free: 71.05 MB / 0.6076 GB Notification: Performance of collectPreVariables (initialization): time 0.00336/2.653, allocations: 149.6 kB / 1.132 GB, free: 70.89 MB / 0.6076 GB Notification: Performance of collectInitialEqns (initialization): time 0.005809/2.658, allocations: 5.434 MB / 1.137 GB, free: 65.75 MB / 0.6076 GB Notification: Performance of collectInitialBindings (initialization): time 0.006204/2.665, allocations: 2.635 MB / 1.14 GB, free: 63.34 MB / 0.6076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01145/2.676, allocations: 2.439 MB / 1.142 GB, free: 60.9 MB / 0.6076 GB Notification: Performance of setup shared object (initialization): time 5.54e-05/2.676, allocations: 305.1 kB / 1.142 GB, free: 60.6 MB / 0.6076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02762/2.704, allocations: 23 MB / 1.165 GB, free: 37.62 MB / 0.6076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02745/2.731, allocations: 24.07 MB / 1.188 GB, free: 13.25 MB / 0.6076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.8432/3.574, allocations: 110.6 MB / 1.296 GB, free: 134.4 MB / 0.6076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.534e-05/3.574, allocations: 4 kB / 1.296 GB, free: 134.4 MB / 0.6076 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.08618/3.661, allocations: 52.17 MB / 1.347 GB, free: 83.1 MB / 0.6076 GB Notification: Performance of prepare postOptimizeDAE: time 6.148e-05/3.661, allocations: 16 kB / 1.347 GB, free: 83.08 MB / 0.6076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-05/3.661, allocations: 27.98 kB / 1.347 GB, free: 83.05 MB / 0.6076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04526/3.706, allocations: 13.5 MB / 1.361 GB, free: 69.62 MB / 0.6076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02951/3.736, allocations: 4.491 MB / 1.365 GB, free: 65.12 MB / 0.6076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07385/3.809, allocations: 74.52 MB / 1.438 GB, free: 5.105 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01701/3.826, allocations: 0.7008 MB / 1.438 GB, free: 4.406 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005743/3.832, allocations: 1.718 MB / 1.44 GB, free: 2.688 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.2959/4.128, allocations: 2.759 MB / 1.443 GB, free: 195.7 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007292/4.135, allocations: 1.198 MB / 1.444 GB, free: 195.7 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0946/4.23, allocations: 31.34 MB / 1.475 GB, free: 189.6 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05144/4.281, allocations: 18.16 MB / 1.492 GB, free: 182.6 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00014/4.282, allocations: 12.28 kB / 1.492 GB, free: 182.6 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003198/4.282, allocations: 39.3 kB / 1.492 GB, free: 182.6 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1117/4.394, allocations: 62.17 MB / 1.553 GB, free: 132.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001326/4.394, allocations: 32 kB / 1.553 GB, free: 132.2 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01451/4.408, allocations: 1.969 MB / 1.555 GB, free: 130.3 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03829/4.446, allocations: 7.168 MB / 1.562 GB, free: 123.2 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002235/4.449, allocations: 303.8 kB / 1.562 GB, free: 122.9 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06317/4.512, allocations: 50.51 MB / 1.612 GB, free: 70.43 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.01928/4.531, allocations: 11.45 MB / 1.623 GB, free: 58.34 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06586/4.597, allocations: 27.43 MB / 1.65 GB, free: 30.05 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005628/4.603, allocations: 1.802 MB / 1.651 GB, free: 28.24 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005173/4.608, allocations: 190 kB / 1.652 GB, free: 28.06 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01019/4.618, allocations: 398.2 kB / 1.652 GB, free: 27.68 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002998/4.621, allocations: 0.8754 MB / 1.653 GB, free: 26.8 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001199/4.622, allocations: 478.4 kB / 1.653 GB, free: 26.34 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.02075/4.643, allocations: 13.82 MB / 1.667 GB, free: 12.56 MB / 0.6232 GB Notification: Performance of sort global known variables: time 1.8e-07/4.643, allocations: 0 / 1.667 GB, free: 12.56 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01754/4.661, allocations: 4.103 MB / 1.671 GB, free: 8.477 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.3643/5.025, allocations: 26.8 MB / 1.697 GB, free: 175.1 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.04756/5.072, allocations: 29.85 MB / 1.726 GB, free: 164.4 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 4.932e-05/5.072, allocations: 7.844 kB / 1.726 GB, free: 164.4 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.02322/5.096, allocations: 10.12 MB / 1.736 GB, free: 159.3 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02637/5.122, allocations: 2.791 MB / 1.739 GB, free: 158.4 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 655] [Calling sys.exit(0), Time elapsed: 7.902006238989998] Failed to read output from testmodel.py, exit status != 0: 5.133081236999715 5.142926016 4.382384508 Calling exit ...