Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.WaterElectrolysis.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.001395/0.001395, allocations: 110.4 kB / 19.73 MB, free: 2.242 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.001421/0.001421, allocations: 218.9 kB / 23.04 MB, free: 5.074 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.574/1.574, allocations: 230.6 MB / 256.8 MB, free: 7.973 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.1509/0.1509, allocations: 23.86 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.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",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.002045/0.002045, allocations: 67.88 kB / 471.9 MB, free: 7.684 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4219/0.424, allocations: 59.85 MB / 0.5193 GB, free: 9.621 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1328:7-1328:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Boundaries.mo:1328:7-1328:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. [/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.WaterElectrolysis): time 0.0605/0.4845, allocations: 38.1 MB / 0.5565 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02971/0.5142, allocations: 16.62 MB / 0.5728 GB, free: 3.129 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004626/0.5188, allocations: 59.69 kB / 0.5728 GB, free: 3.07 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005701/0.5245, allocations: 1.501 MB / 0.5743 GB, free: 1.809 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006444/0.531, allocations: 1.578 MB / 0.5758 GB, free: 224 kB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01105/0.542, allocations: 4.664 MB / 0.5804 GB, free: 11.54 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01069/0.5527, allocations: 4.965 MB / 0.5852 GB, free: 6.543 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00288/0.5556, allocations: 1.252 MB / 0.5865 GB, free: 5.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004068/0.5597, allocations: 1.97 MB / 0.5884 GB, free: 3.254 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004538/0.5642, allocations: 2.506 MB / 0.5908 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001683/0.5659, allocations: 0.5352 MB / 0.5914 GB, free: 208 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008148/0.574, allocations: 2.384 MB / 0.5937 GB, free: 13.82 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002558/0.5766, allocations: 1.565 MB / 0.5952 GB, free: 12.25 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005734/0.5823, allocations: 2.899 MB / 0.598 GB, free: 9.332 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01675/0.5991, allocations: 8.481 MB / 0.6063 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.5991, allocations: 0 / 0.6063 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5991, allocations: 0 / 0.6063 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003288/0.5994, allocations: 0 / 0.6063 GB, free: 0.8203 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1492 * Number of variables: 1492 Notification: Performance of Generate backend data structure: time 0.01699/0.6164, allocations: 5.999 MB / 0.6122 GB, free: 10.75 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/0.6164, allocations: 16.02 kB / 0.6122 GB, free: 10.73 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001573/0.6166, allocations: 142 kB / 0.6123 GB, free: 10.59 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00113/0.6177, allocations: 0.7426 MB / 0.6131 GB, free: 9.836 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002774/0.6205, allocations: 0.9496 MB / 0.614 GB, free: 8.883 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00476/0.6253, allocations: 2.486 MB / 0.6164 GB, free: 6.34 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009607/0.6262, allocations: 0.7885 MB / 0.6172 GB, free: 5.488 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007511/0.627, allocations: 500 kB / 0.6177 GB, free: 5 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02295/0.6499, allocations: 16.08 MB / 0.6334 GB, free: 4.875 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-05/0.65, allocations: 4 kB / 0.6334 GB, free: 4.871 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004004/0.6504, allocations: 200 kB / 0.6336 GB, free: 4.676 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007486/0.6512, allocations: 0.6395 MB / 0.6342 GB, free: 4.035 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03197/0.6831, allocations: 24.79 MB / 0.6584 GB, free: 11.23 MB / 0.4981 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.07505/0.7582, allocations: 41.84 MB / 0.6992 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01178/0.77, allocations: 7.856 MB / 0.7069 GB, free: 9.148 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009513/0.7795, allocations: 6.396 MB / 0.7132 GB, free: 2.746 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02667/0.8062, allocations: 14.22 MB / 0.7271 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.427e-05/0.8062, allocations: 60.55 kB / 0.7271 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=222): time 6.863e-06/0.8062, allocations: 3.984 kB / 0.7271 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of matching and sorting (n=297): time 0.4478/1.254, allocations: 54.12 MB / 0.78 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02521/1.279, allocations: 18.68 MB / 0.7982 GB, free: 135.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006582/1.286, allocations: 6.305 MB / 0.8044 GB, free: 129.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001145/1.287, allocations: 72.36 kB / 0.8044 GB, free: 129.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001462/1.288, allocations: 2.48 MB / 0.8069 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001548/1.29, allocations: 1.036 MB / 0.8079 GB, free: 126.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0023/1.292, allocations: 0.9947 MB / 0.8088 GB, free: 125.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.618e-05/1.292, allocations: 309 kB / 0.8091 GB, free: 125 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00906/1.301, allocations: 9.505 MB / 0.8184 GB, free: 115.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009876/1.311, allocations: 10.24 MB / 0.8284 GB, free: 104.9 MB / 0.5606 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: electrone.state_out.u = 96485.33212331001 * electrone.definition.data.z * electrone.v_start (0.0 = 96485.33212331001 * electrone.definition.data.z * electrone.v_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.2645/1.576, allocations: 69.42 MB / 0.8962 GB, free: 35.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.239e-05/1.576, allocations: 8 kB / 0.8962 GB, free: 35.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03053/1.606, allocations: 22.02 MB / 0.9177 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.648e-05/1.606, allocations: 19.39 kB / 0.9177 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00052/1.607, allocations: 231.9 kB / 0.918 GB, free: 13.51 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01807/1.625, allocations: 6.217 MB / 0.924 GB, free: 7.305 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01167/1.637, allocations: 1.657 MB / 0.9256 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03356/1.67, allocations: 24.24 MB / 0.9493 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006996/1.677, allocations: 339.4 kB / 0.9496 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001785/1.679, allocations: 0.5583 MB / 0.9502 GB, free: 12.07 MB / 0.5919 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: electrone.state_out.u = 96485.33212331001 * electrone.definition.data.z * electrone.v_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * Number of states: 0 () * Number of discrete variables: 2 (reaction.processDefinition.data.phase,reaction.processDefinition.SelfClustering) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (322): * Single equations (assignments): 313 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,3,62.5%), (1,20,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(6,20), (4,3)} Notification: Performance of prepare postOptimizeDAE: time 0.004336/1.683, allocations: 1.425 MB / 0.9516 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002266/1.686, allocations: 0.5588 MB / 0.9521 GB, free: 10.09 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3466/2.032, allocations: 16.67 MB / 0.9684 GB, free: 201 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02741/2.06, allocations: 12.2 MB / 0.9803 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-05/2.06, allocations: 4.375 kB / 0.9803 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-05/2.06, allocations: 12 kB / 0.9803 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04328/2.103, allocations: 23.23 MB / 1.003 GB, free: 185.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-05/2.103, allocations: 15.36 kB / 1.003 GB, free: 185.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006152/2.109, allocations: 0.7302 MB / 1.004 GB, free: 185.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01921/2.128, allocations: 4.338 MB / 1.008 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001031/2.129, allocations: 130.3 kB / 1.008 GB, free: 183.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02205/2.151, allocations: 16.71 MB / 1.024 GB, free: 167 MB / 0.5919 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! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004436/2.156, allocations: 2.662 MB / 1.027 GB, free: 164.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03069/2.187, allocations: 16.45 MB / 1.043 GB, free: 148 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002523/2.189, allocations: 0.775 MB / 1.044 GB, free: 147.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002527/2.192, allocations: 60.94 kB / 1.044 GB, free: 147.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00395/2.196, allocations: 123.9 kB / 1.044 GB, free: 147.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001273/2.197, allocations: 325.7 kB / 1.044 GB, free: 147 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005112/2.197, allocations: 227.9 kB / 1.045 GB, free: 146.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.008294/2.206, allocations: 5.991 MB / 1.05 GB, free: 140.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.11e-07/2.206, allocations: 2.406 kB / 1.05 GB, free: 140.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007025/2.213, allocations: 1.867 MB / 1.052 GB, free: 139 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 7 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,reaction.rr,anode.temperature,cathode.temperature) * Number of discrete variables: 8 ($cse39.data.phase,$cse39.SelfClustering,$cse40.data.phase,$cse40.SelfClustering,reaction.processDefinition.data.phase,$cse48,$cse34,$cse27) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,20,100.0%), (1,1,100.0%), (4,3,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(6,22), (9,11), (3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02746/2.24, allocations: 17.24 MB / 1.069 GB, free: 121.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02044/2.261, allocations: 14.59 MB / 1.083 GB, free: 107.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/2.261, allocations: 0 / 1.083 GB, free: 107.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.009864/2.27, allocations: 5.1 MB / 1.088 GB, free: 101.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008507/2.279, allocations: 1.132 MB / 1.089 GB, free: 100.9 MB / 0.5919 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 658] [Calling sys.exit(0), Time elapsed: 5.00228777108714] Failed to read output from testmodel.py, exit status != 0: 2.2881228770129383 2.298896096 1.697489446 Calling exit ...