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.001581/0.001581, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.001748/0.001748, allocations: 216.9 kB / 23.01 MB, free: 4.602 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.411/1.411, allocations: 230.6 MB / 256.8 MB, free: 8.051 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.1373/0.1373, allocations: 23.85 MB / 337 MB, free: 11.33 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: translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") [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.002023/0.002023, allocations: 71.03 kB / 472.4 MB, free: 7.258 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3064, allocations: 59.86 MB / 0.5198 GB, free: 9.84 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.04804/0.3545, allocations: 38.27 MB / 0.5572 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02616/0.3806, allocations: 16.63 MB / 0.5734 GB, free: 3.031 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003896/0.3845, allocations: 51.75 kB / 0.5735 GB, free: 2.98 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00524/0.3898, allocations: 1.475 MB / 0.5749 GB, free: 1.676 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006076/0.3958, allocations: 1.563 MB / 0.5764 GB, free: 104 kB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009734/0.4056, allocations: 4.618 MB / 0.5809 GB, free: 11.46 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008484/0.4141, allocations: 4.958 MB / 0.5858 GB, free: 6.484 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002508/0.4166, allocations: 1.244 MB / 0.587 GB, free: 5.18 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003156/0.4197, allocations: 1.985 MB / 0.5889 GB, free: 3.188 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00439/0.4241, allocations: 2.506 MB / 0.5914 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001492/0.4256, allocations: 0.5352 MB / 0.5919 GB, free: 140 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006327/0.4319, allocations: 2.38 MB / 0.5942 GB, free: 13.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002028/0.434, allocations: 1.569 MB / 0.5958 GB, free: 12.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003596/0.4376, allocations: 2.899 MB / 0.5986 GB, free: 9.266 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01215/0.4497, allocations: 8.485 MB / 0.6069 GB, free: 0.75 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.4497, allocations: 0 / 0.6069 GB, free: 0.75 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4497, allocations: 4 kB / 0.6069 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001329/0.4499, allocations: 3.938 kB / 0.6069 GB, free: 0.7422 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.0115/0.4613, allocations: 5.999 MB / 0.6127 GB, free: 10.67 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.4614, allocations: 12.03 kB / 0.6127 GB, free: 10.66 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002323/0.4637, allocations: 0.9534 MB / 0.6137 GB, free: 9.703 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004372/0.4681, allocations: 2.47 MB / 0.6161 GB, free: 7.176 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008367/0.4689, allocations: 0.7963 MB / 0.6169 GB, free: 6.316 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006793/0.4696, allocations: 492.2 kB / 0.6173 GB, free: 5.836 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02132/0.4909, allocations: 16.08 MB / 0.633 GB, free: 5.707 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.106e-05/0.491, allocations: 7.922 kB / 0.633 GB, free: 5.699 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003814/0.4914, allocations: 200 kB / 0.6332 GB, free: 5.504 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007149/0.4921, allocations: 0.6357 MB / 0.6339 GB, free: 4.867 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02952/0.5216, allocations: 24.8 MB / 0.6581 GB, free: 12.06 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.06544/0.5871, allocations: 41.83 MB / 0.6989 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0111/0.5982, allocations: 7.86 MB / 0.7066 GB, free: 9.965 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008651/0.6068, allocations: 6.4 MB / 0.7129 GB, free: 3.559 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02353/0.6303, allocations: 14.22 MB / 0.7267 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.248e-05/0.6304, allocations: 52.56 kB / 0.7268 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=222): time 4.749e-06/0.6304, allocations: 0 / 0.7268 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of matching and sorting (n=297): time 0.3311/0.9615, allocations: 54.13 MB / 0.7796 GB, free: 155.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02491/0.9864, allocations: 18.7 MB / 0.7979 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006622/0.993, allocations: 6.306 MB / 0.8041 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001128/0.9942, allocations: 69.7 kB / 0.8041 GB, free: 130.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001396/0.9955, allocations: 2.477 MB / 0.8065 GB, free: 128 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001446/0.997, allocations: 1.041 MB / 0.8076 GB, free: 127.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002166/0.9992, allocations: 0.9911 MB / 0.8085 GB, free: 126.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.726e-05/0.9992, allocations: 305.1 kB / 0.8088 GB, free: 125.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009386/1.009, allocations: 9.507 MB / 0.8181 GB, free: 116.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009883/1.019, allocations: 10.24 MB / 0.8281 GB, free: 105.8 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.2626/1.281, allocations: 69.41 MB / 0.8959 GB, free: 36.62 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.038e-05/1.281, allocations: 8 kB / 0.8959 GB, free: 36.61 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03039/1.311, allocations: 22.02 MB / 0.9174 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.659e-05/1.312, allocations: 14.53 kB / 0.9174 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005308/1.312, allocations: 233.9 kB / 0.9176 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01821/1.33, allocations: 6.219 MB / 0.9237 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01099/1.341, allocations: 1.66 MB / 0.9253 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03145/1.373, allocations: 24.25 MB / 0.949 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006075/1.379, allocations: 331.5 kB / 0.9493 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001537/1.38, allocations: 0.5583 MB / 0.9499 GB, free: 12.88 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.003835/1.384, allocations: 1.421 MB / 0.9513 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001907/1.386, allocations: 0.5625 MB / 0.9518 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.255/1.641, allocations: 16.67 MB / 0.9681 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02536/1.666, allocations: 12.21 MB / 0.98 GB, free: 197 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/1.666, allocations: 2.719 kB / 0.98 GB, free: 197 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.291e-05/1.666, allocations: 10.97 kB / 0.98 GB, free: 197 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0362/1.703, allocations: 23.23 MB / 1.003 GB, free: 186.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.508e-05/1.703, allocations: 11.25 kB / 1.003 GB, free: 186.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005381/1.708, allocations: 0.7289 MB / 1.003 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01873/1.727, allocations: 4.349 MB / 1.008 GB, free: 183.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006961/1.727, allocations: 124.5 kB / 1.008 GB, free: 183.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02088/1.748, allocations: 16.71 MB / 1.024 GB, free: 167.8 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.004369/1.753, allocations: 2.667 MB / 1.027 GB, free: 165 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02559/1.778, allocations: 16.45 MB / 1.043 GB, free: 148.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001955/1.78, allocations: 0.7726 MB / 1.044 GB, free: 148.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001102/1.781, allocations: 63.88 kB / 1.044 GB, free: 148.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002372/1.784, allocations: 123.9 kB / 1.044 GB, free: 148.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007045/1.784, allocations: 325.5 kB / 1.044 GB, free: 147.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003299/1.785, allocations: 219.9 kB / 1.044 GB, free: 147.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006104/1.791, allocations: 5.996 MB / 1.05 GB, free: 141.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.91e-07/1.791, allocations: 2.219 kB / 1.05 GB, free: 141.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004513/1.795, allocations: 1.868 MB / 1.052 GB, free: 139.8 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.0009672/1.796, allocations: 0.5224 MB / 1.052 GB, free: 139.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0178/1.814, allocations: 14.59 MB / 1.067 GB, free: 124.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/1.814, allocations: 3.938 kB / 1.067 GB, free: 124.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007771/1.822, allocations: 5.102 MB / 1.072 GB, free: 119.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005067/1.827, allocations: 1.136 MB / 1.073 GB, free: 118.6 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: 4.199914968805388] Failed to read output from testmodel.py, exit status != 0: 1.8357703029178083 1.844463625 1.392416386 Calling exit ...