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.001704/0.001704, allocations: 107.3 kB / 16.46 MB, free: 6.508 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.001973/0.001973, allocations: 213.7 kB / 19.43 MB, free: 3.648 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 / 252.8 MB, free: 9.117 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.1689/0.1689, allocations: 23.84 MB / 332.7 MB, free: 12.38 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.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_Chemical_Examples_WaterElectrolysis",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.002057/0.002057, allocations: 63.91 kB / 466 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4851/0.4872, allocations: 59.82 MB / 0.5135 GB, free: 8.816 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.06547/0.5526, allocations: 38.07 MB / 0.5506 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03305/0.5857, allocations: 16.6 MB / 0.5669 GB, free: 4.082 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006981/0.5927, allocations: 55.75 kB / 0.5669 GB, free: 4.027 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006728/0.5994, allocations: 1.501 MB / 0.5684 GB, free: 2.859 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008561/0.608, allocations: 1.575 MB / 0.5699 GB, free: 1.488 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01185/0.6198, allocations: 4.661 MB / 0.5745 GB, free: 12.81 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01045/0.6303, allocations: 4.946 MB / 0.5793 GB, free: 7.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002937/0.6332, allocations: 1.588 MB / 0.5808 GB, free: 6.191 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003539/0.6367, allocations: 1.978 MB / 0.5828 GB, free: 4.207 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003872/0.6406, allocations: 2.502 MB / 0.5852 GB, free: 1.695 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001083/0.6417, allocations: 0.5352 MB / 0.5857 GB, free: 1.16 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006921/0.6486, allocations: 2.36 MB / 0.588 GB, free: 14.8 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001913/0.6505, allocations: 1.569 MB / 0.5896 GB, free: 13.22 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00386/0.6544, allocations: 2.903 MB / 0.5924 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01788/0.6723, allocations: 8.469 MB / 0.6007 GB, free: 1.805 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/0.6723, allocations: 3.938 kB / 0.6007 GB, free: 1.801 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6723, allocations: 0 / 0.6007 GB, free: 1.801 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002794/0.6726, allocations: 0 / 0.6007 GB, free: 1.801 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.01532/0.6879, allocations: 6.081 MB / 0.6066 GB, free: 11.63 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.6879, allocations: 8.031 kB / 0.6066 GB, free: 11.62 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001314/0.6892, allocations: 0.7388 MB / 0.6074 GB, free: 10.87 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0028/0.692, allocations: 0.9574 MB / 0.6083 GB, free: 9.906 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005284/0.6973, allocations: 2.524 MB / 0.6108 GB, free: 7.309 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009341/0.6983, allocations: 0.659 MB / 0.6114 GB, free: 6.617 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001003/0.6993, allocations: 493.4 kB / 0.6119 GB, free: 6.137 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02393/0.7232, allocations: 15.49 MB / 0.627 GB, free: 6.598 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-05/0.7233, allocations: 4 kB / 0.627 GB, free: 6.594 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004478/0.7237, allocations: 200 kB / 0.6272 GB, free: 6.398 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000775/0.7245, allocations: 0.6395 MB / 0.6278 GB, free: 5.758 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03503/0.7595, allocations: 23.83 MB / 0.6511 GB, free: 13.91 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.07286/0.8324, allocations: 41.17 MB / 0.6913 GB, free: 4.379 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01161/0.844, allocations: 7.805 MB / 0.6989 GB, free: 12.56 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009896/0.8539, allocations: 6.33 MB / 0.7051 GB, free: 6.227 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02804/0.8819, allocations: 15.34 MB / 0.7201 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.882, allocations: 48.56 kB / 0.7201 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=222): time 3.347e-06/0.882, allocations: 4 kB / 0.7201 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of matching and sorting (n=297): time 0.4398/1.322, allocations: 54.19 MB / 0.7731 GB, free: 157.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02667/1.348, allocations: 18.75 MB / 0.7914 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007916/1.356, allocations: 6.29 MB / 0.7975 GB, free: 132.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001336/1.358, allocations: 69.7 kB / 0.7976 GB, free: 132.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001548/1.359, allocations: 2.486 MB / 0.8 GB, free: 130 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001917/1.361, allocations: 1.039 MB / 0.801 GB, free: 129.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002304/1.363, allocations: 0.9911 MB / 0.802 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.448e-05/1.363, allocations: 305.1 kB / 0.8023 GB, free: 127.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009664/1.373, allocations: 9.391 MB / 0.8114 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01073/1.384, allocations: 10.13 MB / 0.8213 GB, free: 108.1 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.2691/1.653, allocations: 69.25 MB / 0.889 GB, free: 39.07 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-05/1.653, allocations: 8 kB / 0.889 GB, free: 39.06 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03305/1.686, allocations: 21.81 MB / 0.9103 GB, free: 17.23 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.846e-05/1.686, allocations: 12 kB / 0.9103 GB, free: 17.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005275/1.687, allocations: 231.9 kB / 0.9105 GB, free: 16.99 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01905/1.706, allocations: 6.144 MB / 0.9165 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01196/1.718, allocations: 1.665 MB / 0.9181 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0327/1.75, allocations: 24.3 MB / 0.9418 GB, free: 356 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006998/1.757, allocations: 343.4 kB / 0.9422 GB, free: 12 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002443/1.76, allocations: 0.5544 MB / 0.9427 GB, free: 15.46 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.00571/1.765, allocations: 1.421 MB / 0.9441 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002641/1.768, allocations: 0.5626 MB / 0.9447 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3324/2.1, allocations: 16.6 MB / 0.9609 GB, free: 199.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03001/2.13, allocations: 12.14 MB / 0.9727 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.358e-05/2.131, allocations: 7.062 kB / 0.9727 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.238e-05/2.131, allocations: 13.27 kB / 0.9727 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04697/2.178, allocations: 23.02 MB / 0.9952 GB, free: 186.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.143e-05/2.178, allocations: 11.53 kB / 0.9952 GB, free: 186.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006355/2.184, allocations: 0.7278 MB / 0.9959 GB, free: 186.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01948/2.203, allocations: 4.346 MB / 1 GB, free: 184.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008234/2.204, allocations: 131.9 kB / 1 GB, free: 184.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02205/2.226, allocations: 17.2 MB / 1.017 GB, free: 171.2 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.004536/2.231, allocations: 2.775 MB / 1.02 GB, free: 168.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02672/2.258, allocations: 16.34 MB / 1.036 GB, free: 152.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/2.26, allocations: 0.8329 MB / 1.037 GB, free: 151.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001629/2.262, allocations: 63.47 kB / 1.037 GB, free: 151.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002965/2.264, allocations: 127.9 kB / 1.037 GB, free: 151.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009405/2.265, allocations: 318.4 kB / 1.037 GB, free: 151 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003617/2.266, allocations: 219.9 kB / 1.037 GB, free: 150.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.007403/2.273, allocations: 5.985 MB / 1.043 GB, free: 144.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/2.273, allocations: 0.5625 kB / 1.043 GB, free: 144.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006822/2.28, allocations: 1.867 MB / 1.045 GB, free: 143 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.02753/2.308, allocations: 17.12 MB / 1.062 GB, free: 125.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01972/2.327, allocations: 14.44 MB / 1.076 GB, free: 111.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-05/2.327, allocations: 4 kB / 1.076 GB, free: 111.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008807/2.336, allocations: 5.07 MB / 1.081 GB, free: 106.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006846/2.343, allocations: 1.135 MB / 1.082 GB, free: 105.3 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4705:9-4705:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:818:5-818: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.201355041994248] Failed to read output from testmodel.py, exit status != 0: 2.351812192995567 2.361395445 1.686822475 Calling exit ...