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: 110.4 kB / 18.94 MB, free: 2.957 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.001465/0.001465, allocations: 215.2 kB / 22.26 MB, free: 5.133 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.401/1.401, allocations: 230.6 MB / 256 MB, free: 8 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.1411/0.1411, allocations: 23.85 MB / 336.3 MB, free: 11.23 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="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.002005/0.002005, allocations: 71.89 kB / 471.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3298, allocations: 59.84 MB / 0.5186 GB, free: 9.645 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.04943/0.3792, allocations: 38.28 MB / 0.5559 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02538/0.4046, allocations: 16.62 MB / 0.5722 GB, free: 3.008 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004098/0.4087, allocations: 59.69 kB / 0.5722 GB, free: 2.949 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004845/0.4135, allocations: 1.472 MB / 0.5737 GB, free: 1.727 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006184/0.4197, allocations: 1.563 MB / 0.5752 GB, free: 156 kB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009395/0.4291, allocations: 4.626 MB / 0.5797 GB, free: 11.51 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01007/0.4392, allocations: 4.954 MB / 0.5846 GB, free: 6.527 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002277/0.4414, allocations: 1.252 MB / 0.5858 GB, free: 5.215 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003334/0.4448, allocations: 1.974 MB / 0.5877 GB, free: 3.234 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004112/0.4489, allocations: 2.51 MB / 0.5902 GB, free: 0.7148 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001361/0.4502, allocations: 0.5352 MB / 0.5907 GB, free: 184 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006118/0.4564, allocations: 2.38 MB / 0.593 GB, free: 13.8 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001971/0.4583, allocations: 1.569 MB / 0.5945 GB, free: 12.22 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004247/0.4626, allocations: 2.895 MB / 0.5974 GB, free: 9.312 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01427/0.4768, allocations: 8.492 MB / 0.6057 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.4769, allocations: 3.938 kB / 0.6057 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.4769, allocations: 0 / 0.6057 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002471/0.4771, allocations: 0 / 0.6057 GB, free: 0.7852 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.01388/0.491, allocations: 6.007 MB / 0.6115 GB, free: 10.7 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.491, allocations: 8.031 kB / 0.6115 GB, free: 10.7 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00132/0.4923, allocations: 0.7427 MB / 0.6123 GB, free: 9.941 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00262/0.495, allocations: 0.9418 MB / 0.6132 GB, free: 8.996 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004716/0.4997, allocations: 2.47 MB / 0.6156 GB, free: 6.469 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009374/0.5006, allocations: 0.8041 MB / 0.6164 GB, free: 5.602 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001032/0.5017, allocations: 492.2 kB / 0.6168 GB, free: 5.121 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0217/0.5234, allocations: 16.08 MB / 0.6325 GB, free: 4.996 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.957e-05/0.5234, allocations: 0 / 0.6325 GB, free: 4.996 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004336/0.5239, allocations: 203.9 kB / 0.6327 GB, free: 4.797 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006933/0.5246, allocations: 0.6357 MB / 0.6334 GB, free: 4.16 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03026/0.5548, allocations: 24.8 MB / 0.6576 GB, free: 11.35 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.07178/0.6266, allocations: 41.84 MB / 0.6984 GB, free: 1.121 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01133/0.6379, allocations: 7.852 MB / 0.7061 GB, free: 9.262 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008783/0.6467, allocations: 6.408 MB / 0.7124 GB, free: 2.848 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02688/0.6736, allocations: 14.22 MB / 0.7262 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.68e-05/0.6736, allocations: 52.56 kB / 0.7263 GB, free: 4.523 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=222): time 5.059e-06/0.6736, allocations: 0 / 0.7263 GB, free: 4.523 MB / 0.5606 GB Notification: Performance of matching and sorting (n=297): time 0.3644/1.038, allocations: 54.13 MB / 0.7792 GB, free: 155 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02456/1.063, allocations: 18.69 MB / 0.7974 GB, free: 136 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006969/1.07, allocations: 6.301 MB / 0.8036 GB, free: 129.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.00114/1.071, allocations: 69.7 kB / 0.8036 GB, free: 129.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001555/1.072, allocations: 2.48 MB / 0.806 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001534/1.074, allocations: 1.039 MB / 0.8071 GB, free: 126.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001951/1.076, allocations: 0.9898 MB / 0.808 GB, free: 125.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.71e-05/1.076, allocations: 313 kB / 0.8083 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009111/1.085, allocations: 9.503 MB / 0.8176 GB, free: 115.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009821/1.095, allocations: 10.24 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.2456/1.34, allocations: 69.4 MB / 0.8954 GB, free: 35.98 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.97e-05/1.34, allocations: 8 kB / 0.8954 GB, free: 35.97 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02971/1.37, allocations: 22.03 MB / 0.9169 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.782e-05/1.37, allocations: 19.38 kB / 0.9169 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005077/1.371, allocations: 235.9 kB / 0.9171 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01731/1.388, allocations: 6.221 MB / 0.9232 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01052/1.398, allocations: 1.659 MB / 0.9248 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0314/1.43, allocations: 24.24 MB / 0.9485 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006124/1.436, allocations: 335.4 kB / 0.9488 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001676/1.438, allocations: 0.5621 MB / 0.9494 GB, free: 12.23 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.004302/1.442, allocations: 1.424 MB / 0.9508 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002012/1.444, allocations: 0.559 MB / 0.9513 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2594/1.703, allocations: 16.66 MB / 0.9676 GB, free: 201 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0258/1.729, allocations: 12.2 MB / 0.9795 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.103e-05/1.729, allocations: 8.062 kB / 0.9795 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-05/1.729, allocations: 13.59 kB / 0.9795 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03733/1.767, allocations: 23.24 MB / 1.002 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.044e-05/1.767, allocations: 15.23 kB / 1.002 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005325/1.772, allocations: 0.727 MB / 1.003 GB, free: 185.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01793/1.79, allocations: 4.346 MB / 1.007 GB, free: 183.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006457/1.791, allocations: 126 kB / 1.007 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01977/1.81, allocations: 16.7 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.004076/1.814, allocations: 2.667 MB / 1.026 GB, free: 164.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02543/1.84, allocations: 16.46 MB / 1.042 GB, free: 148.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002903/1.843, allocations: 0.7682 MB / 1.043 GB, free: 147.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001779/1.845, allocations: 64.03 kB / 1.043 GB, free: 147.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002649/1.847, allocations: 123.9 kB / 1.043 GB, free: 147.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000799/1.848, allocations: 329.8 kB / 1.044 GB, free: 147.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003334/1.848, allocations: 215.9 kB / 1.044 GB, free: 147 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006891/1.855, allocations: 5.998 MB / 1.05 GB, free: 141 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.71e-07/1.855, allocations: 2.094 kB / 1.05 GB, free: 141 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005923/1.861, allocations: 1.866 MB / 1.051 GB, free: 139.2 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.02577/1.887, allocations: 17.24 MB / 1.068 GB, free: 121.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01796/1.905, allocations: 14.59 MB / 1.083 GB, free: 107.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/1.905, allocations: 4 kB / 1.083 GB, free: 107.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007793/1.913, allocations: 5.11 MB / 1.087 GB, free: 102.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005378/1.918, allocations: 1.126 MB / 1.089 GB, free: 101.1 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.3192858819966204] Failed to read output from testmodel.py, exit status != 0: 1.9269837649990222 1.935809306 1.456699821 Calling exit ...