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.001517/0.001517, allocations: 77.55 kB / 19.76 MB, free: 2.027 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.001649/0.001649, allocations: 156.4 kB / 23.01 MB, free: 4.949 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.341/1.341, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.1 MB " [Timeout remaining time 179] 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.1216/0.1216, allocations: 17.36 MB / 277.1 MB, free: 15.27 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.002167/0.002167, allocations: 63.91 kB / 412.4 MB, free: 5.734 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1058, allocations: 59.85 MB / 472.3 MB, free: 9.766 MB / 446.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.2671/0.3729, allocations: 35.66 MB / 0.496 GB, free: 36.3 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.016/0.3889, allocations: 14.47 MB / 0.5102 GB, free: 27.41 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002346/0.3912, allocations: 55.62 kB / 0.5102 GB, free: 27.39 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00372/0.395, allocations: 1.376 MB / 0.5116 GB, free: 26.76 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003944/0.3989, allocations: 1.574 MB / 0.5131 GB, free: 25.7 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006472/0.4054, allocations: 4.185 MB / 0.5172 GB, free: 23.15 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005932/0.4113, allocations: 4.952 MB / 0.522 GB, free: 20.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001521/0.4128, allocations: 1.221 MB / 0.5232 GB, free: 20.12 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002606/0.4154, allocations: 1.972 MB / 0.5251 GB, free: 19.14 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002809/0.4182, allocations: 2.218 MB / 0.5273 GB, free: 18.13 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006686/0.4189, allocations: 0.5355 MB / 0.5278 GB, free: 18.13 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004288/0.4232, allocations: 1.764 MB / 0.5296 GB, free: 17.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008573/0.424, allocations: 1.581 MB / 0.5311 GB, free: 16.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001979/0.426, allocations: 2.218 MB / 0.5333 GB, free: 15.6 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008492/0.4345, allocations: 8.347 MB / 0.5414 GB, free: 9.941 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4345, allocations: 4 kB / 0.5414 GB, free: 9.938 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4345, allocations: 0.6562 kB / 0.5414 GB, free: 9.938 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001831/0.4347, allocations: 4 kB / 0.5414 GB, free: 9.934 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.009573/0.4443, allocations: 5.999 MB / 0.5473 GB, free: 4.641 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.4443, allocations: 8.031 kB / 0.5473 GB, free: 4.633 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002662/0.447, allocations: 1.053 MB / 0.5483 GB, free: 3.691 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00322/0.4502, allocations: 2.479 MB / 0.5507 GB, free: 1.434 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000492/0.4507, allocations: 0.7965 MB / 0.5515 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004643/0.4512, allocations: 497.7 kB / 0.552 GB, free: 116 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02164/0.4728, allocations: 16.14 MB / 0.5677 GB, free: 1.602 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.474e-05/0.4729, allocations: 1.875 kB / 0.5677 GB, free: 1.602 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004145/0.4733, allocations: 200 kB / 0.5679 GB, free: 1.406 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006884/0.474, allocations: 0.6352 MB / 0.5686 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03055/0.5045, allocations: 24.8 MB / 0.5928 GB, free: 8.281 MB / 494.1 MB 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.06666/0.5712, allocations: 37.45 MB / 0.6294 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/0.5829, allocations: 7.884 MB / 0.6371 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009175/0.592, allocations: 6.428 MB / 0.6433 GB, free: 4.324 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02233/0.6144, allocations: 11.75 MB / 0.6548 GB, free: 8.547 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.126e-05/0.6144, allocations: 52.5 kB / 0.6549 GB, free: 8.488 MB / 0.545 GB Notification: Performance of pre-optimization done (n=222): time 4.709e-06/0.6144, allocations: 4 kB / 0.6549 GB, free: 8.484 MB / 0.545 GB Notification: Performance of matching and sorting (n=297): time 0.3807/0.9952, allocations: 54.13 MB / 0.7077 GB, free: 173.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02557/1.021, allocations: 18.38 MB / 0.7257 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003122/1.024, allocations: 2.555 MB / 0.7282 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.00107/1.025, allocations: 71.02 kB / 0.7282 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001418/1.026, allocations: 2.506 MB / 0.7307 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001358/1.028, allocations: 1.039 MB / 0.7317 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002341/1.03, allocations: 1.01 MB / 0.7327 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.942e-05/1.03, allocations: 302.5 kB / 0.733 GB, free: 161 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01137/1.041, allocations: 9.539 MB / 0.7423 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01132/1.053, allocations: 10.28 MB / 0.7523 GB, free: 153.4 MB / 0.5762 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.2568/1.31, allocations: 69 MB / 0.8197 GB, free: 90.24 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.537e-05/1.31, allocations: 8 kB / 0.8197 GB, free: 90.23 MB / 0.5762 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02835/1.338, allocations: 21.87 MB / 0.8411 GB, free: 68.34 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.484e-05/1.338, allocations: 16 kB / 0.8411 GB, free: 68.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004549/1.338, allocations: 230.5 kB / 0.8413 GB, free: 68.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01746/1.356, allocations: 6.256 MB / 0.8474 GB, free: 61.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01099/1.367, allocations: 1.675 MB / 0.8491 GB, free: 60.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02243/1.389, allocations: 23.92 MB / 0.8724 GB, free: 35.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005388/1.395, allocations: 359.2 kB / 0.8728 GB, free: 35.51 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001151/1.396, allocations: 0.554 MB / 0.8733 GB, free: 34.96 MB / 0.5762 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.002998/1.399, allocations: 1.433 MB / 0.8747 GB, free: 33.53 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001315/1.4, allocations: 352.4 kB / 0.875 GB, free: 33.19 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02812/1.428, allocations: 16.54 MB / 0.8912 GB, free: 16.64 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02025/1.449, allocations: 12.3 MB / 0.9032 GB, free: 4.312 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/1.449, allocations: 8 kB / 0.9032 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.25e-05/1.449, allocations: 11.95 kB / 0.9032 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2331/1.682, allocations: 22.21 MB / 0.9249 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.611e-05/1.682, allocations: 11.38 kB / 0.9249 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006133/1.688, allocations: 0.7506 MB / 0.9257 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01858/1.706, allocations: 4.37 MB / 0.9299 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004987/1.707, allocations: 128.7 kB / 0.93 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01929/1.726, allocations: 16.25 MB / 0.9459 GB, free: 174.7 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.003851/1.73, allocations: 2.598 MB / 0.9484 GB, free: 172.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02513/1.755, allocations: 16.3 MB / 0.9644 GB, free: 166.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007251/1.756, allocations: 341 kB / 0.9647 GB, free: 166.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005316/1.757, allocations: 63.67 kB / 0.9647 GB, free: 166.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001962/1.758, allocations: 144.3 kB / 0.9649 GB, free: 166.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008783/1.759, allocations: 323.7 kB / 0.9652 GB, free: 166.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004332/1.76, allocations: 220.3 kB / 0.9654 GB, free: 166.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003683/1.763, allocations: 3.316 MB / 0.9686 GB, free: 164.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9.1e-08/1.763, allocations: 4.406 kB / 0.9686 GB, free: 164.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004358/1.768, allocations: 1.815 MB / 0.9704 GB, free: 164.7 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.0008903/1.769, allocations: 0.5104 MB / 0.9709 GB, free: 164.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01844/1.787, allocations: 14.66 MB / 0.9852 GB, free: 159.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/1.787, allocations: 0 / 0.9852 GB, free: 159.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007382/1.795, allocations: 5.138 MB / 0.9903 GB, free: 157.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003011/1.798, allocations: 0.6154 MB / 0.9909 GB, free: 157.1 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4747:9-4747:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:836:5-836: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.039923449978232] Failed to read output from testmodel.py, exit status != 0: 1.8059044779511169 1.814057872 1.377431874 Calling exit ...