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.001506/0.001506, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002093/0.002093, allocations: 217 kB / 22.26 MB, free: 5.125 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.589/1.589, allocations: 230.6 MB / 256 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.1959/0.1959, allocations: 23.85 MB / 336.3 MB, free: 11.19 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.002149/0.002149, allocations: 71.91 kB / 471.2 MB, free: 7.707 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4661/0.4683, allocations: 59.85 MB / 0.5186 GB, free: 9.625 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.06274/0.531, allocations: 38.27 MB / 0.5559 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03892/0.5699, allocations: 16.63 MB / 0.5722 GB, free: 2.992 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008103/0.578, allocations: 55.75 kB / 0.5722 GB, free: 2.938 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009352/0.5874, allocations: 1.471 MB / 0.5737 GB, free: 1.715 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00899/0.5964, allocations: 1.567 MB / 0.5752 GB, free: 140 kB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01208/0.6085, allocations: 4.626 MB / 0.5797 GB, free: 11.49 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01081/0.6193, allocations: 4.954 MB / 0.5846 GB, free: 6.512 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002687/0.622, allocations: 1.244 MB / 0.5858 GB, free: 5.207 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004353/0.6263, allocations: 1.981 MB / 0.5877 GB, free: 3.219 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006503/0.6328, allocations: 2.506 MB / 0.5901 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003006/0.6358, allocations: 0.5391 MB / 0.5907 GB, free: 168 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0114/0.6472, allocations: 2.376 MB / 0.593 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003493/0.6507, allocations: 1.565 MB / 0.5945 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007359/0.6581, allocations: 2.899 MB / 0.5974 GB, free: 9.301 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02291/0.681, allocations: 8.488 MB / 0.6056 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.681, allocations: 0 / 0.6056 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.681, allocations: 0 / 0.6056 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003378/0.6813, allocations: 0 / 0.6056 GB, free: 0.7812 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.02315/0.7045, allocations: 6.007 MB / 0.6115 GB, free: 10.7 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.75e-05/0.7045, allocations: 11.97 kB / 0.6115 GB, free: 10.69 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002834/0.7074, allocations: 0.7427 MB / 0.6122 GB, free: 9.934 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00395/0.7113, allocations: 0.9496 MB / 0.6132 GB, free: 8.98 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006832/0.7182, allocations: 2.467 MB / 0.6156 GB, free: 6.457 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001267/0.7194, allocations: 0.7924 MB / 0.6164 GB, free: 5.602 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001924/0.7214, allocations: 0.4885 MB / 0.6168 GB, free: 5.113 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03105/0.7524, allocations: 16.09 MB / 0.6325 GB, free: 4.977 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001726/0.7526, allocations: 0 / 0.6325 GB, free: 4.977 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001312/0.7539, allocations: 204 kB / 0.6327 GB, free: 4.777 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008698/0.7548, allocations: 0.6396 MB / 0.6334 GB, free: 4.137 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03731/0.7921, allocations: 24.78 MB / 0.6576 GB, free: 11.34 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.08287/0.8749, allocations: 41.85 MB / 0.6984 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01239/0.8873, allocations: 7.856 MB / 0.7061 GB, free: 9.242 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009867/0.8972, allocations: 6.408 MB / 0.7124 GB, free: 2.828 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0319/0.9291, allocations: 14.22 MB / 0.7262 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001011/0.9292, allocations: 52.56 kB / 0.7263 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=222): time 7.204e-06/0.9292, allocations: 0 / 0.7263 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of matching and sorting (n=297): time 0.368/1.297, allocations: 54.12 MB / 0.7791 GB, free: 155 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02547/1.323, allocations: 18.69 MB / 0.7974 GB, free: 136 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006551/1.329, allocations: 6.301 MB / 0.8036 GB, free: 129.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001024/1.33, allocations: 76.39 kB / 0.8036 GB, free: 129.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001357/1.332, allocations: 2.472 MB / 0.806 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001262/1.333, allocations: 1.045 MB / 0.8071 GB, free: 126.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002003/1.335, allocations: 0.9911 MB / 0.808 GB, free: 125.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.394e-05/1.335, allocations: 305.1 kB / 0.8083 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009073/1.344, allocations: 9.505 MB / 0.8176 GB, free: 115.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009567/1.354, allocations: 10.25 MB / 0.8276 GB, free: 105.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.2536/1.607, allocations: 69.4 MB / 0.8954 GB, free: 35.93 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-05/1.607, allocations: 8 kB / 0.8954 GB, free: 35.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03315/1.64, allocations: 22.02 MB / 0.9169 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.422e-05/1.64, allocations: 16 kB / 0.9169 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005543/1.641, allocations: 230.8 kB / 0.9171 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01823/1.659, allocations: 6.231 MB / 0.9232 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01159/1.671, allocations: 1.656 MB / 0.9248 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03483/1.706, allocations: 24.24 MB / 0.9485 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007124/1.713, allocations: 343.4 kB / 0.9488 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002259/1.715, allocations: 0.5505 MB / 0.9494 GB, free: 12.2 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.007109/1.722, allocations: 1.43 MB / 0.9508 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00374/1.726, allocations: 0.5626 MB / 0.9513 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3551/2.081, allocations: 16.67 MB / 0.9676 GB, free: 200.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02924/2.11, allocations: 12.21 MB / 0.9795 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-05/2.11, allocations: 4.031 kB / 0.9795 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.799e-05/2.11, allocations: 13.45 kB / 0.9795 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04551/2.156, allocations: 23.23 MB / 1.002 GB, free: 185.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.075e-05/2.156, allocations: 11.25 kB / 1.002 GB, free: 185.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005769/2.162, allocations: 0.7276 MB / 1.003 GB, free: 185.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0185/2.18, allocations: 4.348 MB / 1.007 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000833/2.181, allocations: 130.3 kB / 1.007 GB, free: 183.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02154/2.202, allocations: 16.69 MB / 1.024 GB, free: 167.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.004508/2.207, allocations: 2.666 MB / 1.026 GB, free: 164.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02893/2.236, allocations: 16.45 MB / 1.042 GB, free: 148.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002185/2.238, allocations: 0.7719 MB / 1.043 GB, free: 147.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001759/2.24, allocations: 71.7 kB / 1.043 GB, free: 147.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003358/2.243, allocations: 119.9 kB / 1.043 GB, free: 147.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001013/2.244, allocations: 326.1 kB / 1.044 GB, free: 147.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003853/2.245, allocations: 222.5 kB / 1.044 GB, free: 146.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.007205/2.252, allocations: 5.991 MB / 1.05 GB, free: 141 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.21e-07/2.252, allocations: 0 / 1.05 GB, free: 141 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006116/2.258, allocations: 1.872 MB / 1.051 GB, free: 139.1 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.02909/2.287, allocations: 17.24 MB / 1.068 GB, free: 121.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02038/2.307, allocations: 14.59 MB / 1.083 GB, free: 107.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.682e-05/2.307, allocations: 0 / 1.083 GB, free: 107.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.009217/2.317, allocations: 5.105 MB / 1.087 GB, free: 102 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009143/2.326, allocations: 1.129 MB / 1.089 GB, free: 101 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.165271723177284] Failed to read output from testmodel.py, exit status != 0: 2.336060688830912 2.347818098 1.663790878 Calling exit ...