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.00141/0.00141, 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.00164/0.00164, allocations: 214.5 kB / 22.24 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.523/1.523, allocations: 230.6 MB / 256 MB, free: 7.809 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.1406/0.1406, allocations: 23.9 MB / 336.3 MB, free: 10.96 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.002119/0.002119, allocations: 67.91 kB / 471.1 MB, free: 7.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3503, allocations: 59.87 MB / 0.5185 GB, free: 9.543 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.08794/0.4382, allocations: 35.7 MB / 0.5534 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02595/0.4642, allocations: 14.48 MB / 0.5675 GB, free: 7.48 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005618/0.4698, allocations: 55.75 kB / 0.5676 GB, free: 7.426 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005675/0.4755, allocations: 1.38 MB / 0.5689 GB, free: 6.27 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007606/0.4831, allocations: 1.563 MB / 0.5705 GB, free: 4.695 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009776/0.4929, allocations: 4.19 MB / 0.5745 GB, free: 500 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008825/0.5017, allocations: 4.958 MB / 0.5794 GB, free: 11.5 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002261/0.5039, allocations: 1.221 MB / 0.5806 GB, free: 10.22 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003027/0.507, allocations: 1.974 MB / 0.5825 GB, free: 8.242 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003189/0.5102, allocations: 2.213 MB / 0.5847 GB, free: 6.02 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000803/0.511, allocations: 0.5352 MB / 0.5852 GB, free: 5.484 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004956/0.5159, allocations: 1.764 MB / 0.5869 GB, free: 3.719 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001582/0.5175, allocations: 1.573 MB / 0.5885 GB, free: 2.141 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002746/0.5203, allocations: 2.219 MB / 0.5906 GB, free: 15.91 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01396/0.5342, allocations: 8.348 MB / 0.5988 GB, free: 7.531 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.5342, allocations: 0 / 0.5988 GB, free: 7.531 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5342, allocations: 0 / 0.5988 GB, free: 7.531 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002591/0.5345, allocations: 0 / 0.5988 GB, free: 7.531 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.01982/0.5543, allocations: 6.003 MB / 0.6046 GB, free: 1.461 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.615e-05/0.5544, allocations: 12.03 kB / 0.6046 GB, free: 1.449 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002556/0.5569, allocations: 0.7427 MB / 0.6054 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004318/0.5613, allocations: 1.047 MB / 0.6064 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006268/0.5675, allocations: 2.486 MB / 0.6088 GB, free: 13.1 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001131/0.5687, allocations: 0.7924 MB / 0.6096 GB, free: 12.24 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001358/0.57, allocations: 0.4885 MB / 0.6101 GB, free: 11.75 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02536/0.5954, allocations: 16.13 MB / 0.6258 GB, free: 11.57 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001506/0.5955, allocations: 0 / 0.6258 GB, free: 11.57 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009656/0.5965, allocations: 200 kB / 0.626 GB, free: 11.37 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008546/0.5973, allocations: 0.6395 MB / 0.6266 GB, free: 10.73 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03436/0.6317, allocations: 24.8 MB / 0.6509 GB, free: 1.922 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.07845/0.7102, allocations: 39.54 MB / 0.6895 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/0.7224, allocations: 7.88 MB / 0.6972 GB, free: 2.281 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009666/0.7321, allocations: 6.439 MB / 0.7035 GB, free: 11.84 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02625/0.7584, allocations: 12.3 MB / 0.7155 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.439e-05/0.7584, allocations: 52.56 kB / 0.7155 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=222): time 4.939e-06/0.7584, allocations: 0 / 0.7155 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of matching and sorting (n=297): time 0.4159/1.174, allocations: 54.34 MB / 0.7686 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02577/1.2, allocations: 18.45 MB / 0.7866 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008019/1.208, allocations: 6.34 MB / 0.7928 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001316/1.209, allocations: 65.7 kB / 0.7928 GB, free: 140 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001789/1.211, allocations: 2.483 MB / 0.7953 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001991/1.213, allocations: 1.032 MB / 0.7963 GB, free: 136.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002327/1.215, allocations: 0.9923 MB / 0.7972 GB, free: 135.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.099e-05/1.216, allocations: 304.8 kB / 0.7975 GB, free: 135.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009676/1.225, allocations: 9.542 MB / 0.8069 GB, free: 125.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0106/1.236, allocations: 10.29 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.2599/1.496, allocations: 68.76 MB / 0.8841 GB, free: 46.84 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.703e-05/1.496, allocations: 8 kB / 0.8841 GB, free: 46.84 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.0332/1.529, allocations: 22.1 MB / 0.9056 GB, free: 24.71 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.582e-05/1.529, allocations: 12 kB / 0.9057 GB, free: 24.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005123/1.529, allocations: 227.9 kB / 0.9059 GB, free: 24.47 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01908/1.549, allocations: 6.235 MB / 0.912 GB, free: 18.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01192/1.56, allocations: 1.667 MB / 0.9136 GB, free: 16.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02901/1.59, allocations: 24.02 MB / 0.937 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006777/1.596, allocations: 368.5 kB / 0.9374 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001669/1.598, allocations: 0.5505 MB / 0.9379 GB, free: 7.199 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.004539/1.602, allocations: 1.431 MB / 0.9393 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002369/1.605, allocations: 0.5547 MB / 0.9399 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03818/1.643, allocations: 16.77 MB / 0.9562 GB, free: 4.445 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2789/1.922, allocations: 12.29 MB / 0.9682 GB, free: 199.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.624e-05/1.922, allocations: 7.484 kB / 0.9683 GB, free: 199.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.608e-05/1.922, allocations: 13.84 kB / 0.9683 GB, free: 199.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04571/1.968, allocations: 21.23 MB / 0.989 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.617e-05/1.968, allocations: 19.62 kB / 0.989 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006197/1.974, allocations: 0.7427 MB / 0.9897 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01909/1.993, allocations: 4.343 MB / 0.994 GB, free: 191.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008547/1.994, allocations: 127.5 kB / 0.9941 GB, free: 191 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02101/2.015, allocations: 16.36 MB / 1.01 GB, free: 179 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.004295/2.019, allocations: 2.617 MB / 1.013 GB, free: 176.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02599/2.045, allocations: 16.55 MB / 1.029 GB, free: 160.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002266/2.048, allocations: 0.7661 MB / 1.03 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002009/2.05, allocations: 65.42 kB / 1.03 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004288/2.054, allocations: 142.4 kB / 1.03 GB, free: 160.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001106/2.055, allocations: 325.3 kB / 1.03 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003895/2.055, allocations: 223.8 kB / 1.03 GB, free: 159.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.007881/2.063, allocations: 5.997 MB / 1.036 GB, free: 153.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4e-07/2.063, allocations: 0 / 1.036 GB, free: 153.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007571/2.071, allocations: 1.86 MB / 1.038 GB, free: 151.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.02845/2.099, allocations: 17.32 MB / 1.055 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01983/2.119, allocations: 14.66 MB / 1.069 GB, free: 119.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.582e-05/2.119, allocations: 3.094 kB / 1.069 GB, free: 119.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008927/2.128, allocations: 5.14 MB / 1.074 GB, free: 114.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007119/2.135, allocations: 1.132 MB / 1.075 GB, free: 113.4 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.751698802225292] Failed to read output from testmodel.py, exit status != 0: 2.144467217847705 2.15537272 1.618533067 Calling exit ...