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.001629/0.001629, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002031/0.002031, allocations: 213.5 kB / 22.25 MB, free: 5.242 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.58/1.58, allocations: 230.6 MB / 256 MB, free: 7.801 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.1512/0.1512, allocations: 23.88 MB / 336.3 MB, free: 10.98 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.002523/0.002523, allocations: 71.89 kB / 471.1 MB, free: 7.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.3583, allocations: 59.86 MB / 0.5185 GB, free: 9.504 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.08636/0.4447, allocations: 35.69 MB / 0.5534 GB, free: 4.617 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02674/0.4714, allocations: 14.48 MB / 0.5675 GB, free: 7.516 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005445/0.4769, allocations: 55.75 kB / 0.5676 GB, free: 7.461 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006079/0.4829, allocations: 1.383 MB / 0.5689 GB, free: 6.305 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007909/0.4908, allocations: 1.559 MB / 0.5705 GB, free: 4.734 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009917/0.5008, allocations: 4.194 MB / 0.5745 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009408/0.5102, allocations: 4.954 MB / 0.5794 GB, free: 11.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002392/0.5126, allocations: 1.221 MB / 0.5806 GB, free: 10.26 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003615/0.5162, allocations: 1.978 MB / 0.5825 GB, free: 8.277 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004424/0.5206, allocations: 2.213 MB / 0.5847 GB, free: 6.055 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001444/0.522, allocations: 0.5352 MB / 0.5852 GB, free: 5.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005104/0.5271, allocations: 1.764 MB / 0.5869 GB, free: 3.754 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001921/0.5291, allocations: 1.573 MB / 0.5884 GB, free: 2.176 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003869/0.5329, allocations: 2.215 MB / 0.5906 GB, free: 15.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01442/0.5474, allocations: 8.352 MB / 0.5988 GB, free: 7.566 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.5474, allocations: 0 / 0.5988 GB, free: 7.566 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5474, allocations: 0 / 0.5988 GB, free: 7.566 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002486/0.5476, allocations: 0 / 0.5988 GB, free: 7.566 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.01367/0.5613, allocations: 6.007 MB / 0.6046 GB, free: 1.492 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.5613, allocations: 12.03 kB / 0.6046 GB, free: 1.48 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001156/0.5625, allocations: 0.7388 MB / 0.6054 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003364/0.5659, allocations: 1.047 MB / 0.6064 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005474/0.5713, allocations: 2.474 MB / 0.6088 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001063/0.5724, allocations: 0.804 MB / 0.6096 GB, free: 12.28 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001027/0.5734, allocations: 0.4924 MB / 0.6101 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0262/0.5996, allocations: 16.13 MB / 0.6258 GB, free: 11.6 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-05/0.5997, allocations: 3.938 kB / 0.6258 GB, free: 11.6 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004608/0.6002, allocations: 200 kB / 0.626 GB, free: 11.4 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008212/0.601, allocations: 0.6396 MB / 0.6266 GB, free: 10.76 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03582/0.6368, allocations: 24.8 MB / 0.6509 GB, free: 1.953 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.07867/0.7155, allocations: 39.54 MB / 0.6895 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01324/0.7287, allocations: 7.88 MB / 0.6972 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009606/0.7383, allocations: 6.439 MB / 0.7035 GB, free: 11.87 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02667/0.765, allocations: 12.3 MB / 0.7155 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/0.765, allocations: 48.56 kB / 0.7155 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=222): time 7.414e-06/0.765, allocations: 4 kB / 0.7155 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of matching and sorting (n=297): time 0.4228/1.188, allocations: 54.33 MB / 0.7686 GB, free: 164.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02433/1.212, allocations: 18.45 MB / 0.7866 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008169/1.22, allocations: 6.337 MB / 0.7928 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001225/1.222, allocations: 73.7 kB / 0.7929 GB, free: 140 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001496/1.223, allocations: 2.473 MB / 0.7953 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001506/1.225, allocations: 1.041 MB / 0.7963 GB, free: 136.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002074/1.227, allocations: 0.9921 MB / 0.7973 GB, free: 135.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.225e-05/1.227, allocations: 305.1 kB / 0.7975 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009124/1.236, allocations: 9.539 MB / 0.8069 GB, free: 126 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01041/1.246, allocations: 10.28 MB / 0.8169 GB, free: 115.4 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.2593/1.506, allocations: 68.77 MB / 0.8841 GB, free: 46.88 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.063e-05/1.506, allocations: 6.656 kB / 0.8841 GB, free: 46.87 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03224/1.538, allocations: 22.1 MB / 0.9056 GB, free: 24.74 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/1.538, allocations: 16 kB / 0.9057 GB, free: 24.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005359/1.538, allocations: 227.9 kB / 0.9059 GB, free: 24.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01889/1.557, allocations: 6.23 MB / 0.912 GB, free: 18.29 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01166/1.569, allocations: 1.668 MB / 0.9136 GB, free: 16.63 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02975/1.599, allocations: 24.02 MB / 0.937 GB, free: 8.145 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007477/1.606, allocations: 370.6 kB / 0.9374 GB, free: 7.793 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002025/1.608, allocations: 0.5544 MB / 0.9379 GB, free: 7.238 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.00486/1.613, allocations: 1.432 MB / 0.9393 GB, free: 5.816 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0024/1.615, allocations: 0.5513 MB / 0.9399 GB, free: 5.262 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04003/1.655, allocations: 16.77 MB / 0.9562 GB, free: 4.488 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2917/1.947, allocations: 12.29 MB / 0.9682 GB, free: 199.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.984e-05/1.947, allocations: 6.797 kB / 0.9683 GB, free: 199.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.607e-05/1.947, allocations: 13.08 kB / 0.9683 GB, free: 199.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04455/1.992, allocations: 21.23 MB / 0.989 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-05/1.992, allocations: 14.09 kB / 0.989 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006617/1.998, allocations: 0.7472 MB / 0.9897 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02018/2.019, allocations: 4.347 MB / 0.994 GB, free: 191 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009023/2.02, allocations: 124.4 kB / 0.9941 GB, free: 190.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02123/2.041, allocations: 16.35 MB / 1.01 GB, free: 178.9 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.004241/2.045, allocations: 2.634 MB / 1.013 GB, free: 176.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02651/2.072, allocations: 16.54 MB / 1.029 GB, free: 160.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002378/2.074, allocations: 0.772 MB / 1.03 GB, free: 160.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00172/2.076, allocations: 64.58 kB / 1.03 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003464/2.079, allocations: 139.8 kB / 1.03 GB, free: 160.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001019/2.08, allocations: 323.9 kB / 1.03 GB, free: 159.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003871/2.08, allocations: 227.9 kB / 1.03 GB, free: 159.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.007736/2.088, allocations: 5.993 MB / 1.036 GB, free: 153.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.01e-07/2.088, allocations: 0 / 1.036 GB, free: 153.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006664/2.095, allocations: 1.86 MB / 1.038 GB, free: 151.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.02793/2.123, allocations: 17.33 MB / 1.055 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01902/2.142, allocations: 14.66 MB / 1.069 GB, free: 119.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.511e-05/2.142, allocations: 4 kB / 1.069 GB, free: 119.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008134/2.15, allocations: 5.142 MB / 1.074 GB, free: 114.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005204/2.155, allocations: 1.133 MB / 1.075 GB, free: 113.5 MB / 0.5919 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4734:9-4734:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823: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.862919061910361] Failed to read output from testmodel.py, exit status != 0: 2.163715418893844 2.172688591 1.623017556 Calling exit ...