Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001403/0.001403, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001598/0.001598, allocations: 209.6 kB / 20.13 MB, free: 3.035 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 / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1429/0.1429, allocations: 23.89 MB / 333.4 MB, free: 1.262 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Examples_WaterElectrolysis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_master_Chemical_Examples_WaterElectrolysis",fmuType="cs",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.00199/0.00199, allocations: 72.7 kB / 466.7 MB, free: 30.58 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09627/0.09826, allocations: 59.84 MB / 0.5142 GB, free: 12.81 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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 master/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 master/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 master/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.05379/0.152, allocations: 38.06 MB / 0.5514 GB, free: 6.734 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02473/0.1768, allocations: 16.61 MB / 0.5676 GB, free: 6.059 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00319/0.18, allocations: 55.75 kB / 0.5677 GB, free: 6.004 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004227/0.1842, allocations: 1.498 MB / 0.5691 GB, free: 4.496 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004761/0.189, allocations: 1.571 MB / 0.5707 GB, free: 2.914 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009154/0.1981, allocations: 4.668 MB / 0.5752 GB, free: 14.23 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.007913/0.206, allocations: 4.942 MB / 0.58 GB, free: 9.262 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00239/0.2084, allocations: 1.58 MB / 0.5816 GB, free: 7.621 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002853/0.2113, allocations: 1.978 MB / 0.5835 GB, free: 5.637 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003647/0.2149, allocations: 2.502 MB / 0.586 GB, free: 3.125 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001016/0.2159, allocations: 0.5352 MB / 0.5865 GB, free: 2.59 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005475/0.2214, allocations: 2.368 MB / 0.5888 GB, free: 224 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2396/0.461, allocations: 1.561 MB / 0.5903 GB, free: 26.55 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004783/0.4658, allocations: 2.898 MB / 0.5931 GB, free: 26.11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01433/0.4802, allocations: 8.475 MB / 0.6014 GB, free: 24.89 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.4802, allocations: 0 / 0.6014 GB, free: 24.89 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4802, allocations: 0 / 0.6014 GB, free: 24.89 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003448/0.4805, allocations: 5.188 kB / 0.6014 GB, free: 24.88 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.01636/0.4969, allocations: 6.079 MB / 0.6074 GB, free: 22.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.4969, allocations: 10.16 kB / 0.6074 GB, free: 22.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001932/0.4971, allocations: 135.3 kB / 0.6075 GB, free: 22.4 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001245/0.4983, allocations: 0.7438 MB / 0.6082 GB, free: 22.08 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00277/0.5011, allocations: 0.9545 MB / 0.6092 GB, free: 21.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004483/0.5056, allocations: 2.517 MB / 0.6116 GB, free: 20.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006883/0.5063, allocations: 0.6535 MB / 0.6123 GB, free: 19.87 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00079/0.5071, allocations: 498.4 kB / 0.6127 GB, free: 19.71 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01828/0.5254, allocations: 15.49 MB / 0.6279 GB, free: 12.92 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.748e-05/0.5254, allocations: 0 / 0.6279 GB, free: 12.92 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004216/0.5259, allocations: 202.1 kB / 0.6281 GB, free: 12.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005443/0.5264, allocations: 0.641 MB / 0.6287 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02608/0.5525, allocations: 23.83 MB / 0.652 GB, free: 7.121 MB / 462.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.07448/0.627, allocations: 41.17 MB / 0.6922 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01144/0.6384, allocations: 7.801 MB / 0.6998 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008966/0.6474, allocations: 6.341 MB / 0.706 GB, free: 100 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02752/0.6749, allocations: 15.34 MB / 0.7209 GB, free: 464 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.028e-05/0.675, allocations: 56.56 kB / 0.721 GB, free: 400 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=222): time 4.909e-06/0.675, allocations: 0 / 0.721 GB, free: 400 kB / 0.5137 GB Notification: Performance of matching and sorting (n=297): time 0.1652/0.8401, allocations: 54.2 MB / 0.7739 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03548/0.8756, allocations: 18.73 MB / 0.7922 GB, free: 7.332 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01062/0.8862, allocations: 6.3 MB / 0.7984 GB, free: 1.055 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.001259/0.8875, allocations: 73.7 kB / 0.7984 GB, free: 0.9766 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.002499/0.89, allocations: 2.476 MB / 0.8009 GB, free: 14.54 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.002057/0.892, allocations: 1.043 MB / 0.8019 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002748/0.8948, allocations: 0.9936 MB / 0.8029 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.8949, allocations: 301.1 kB / 0.8031 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01333/0.9083, allocations: 9.387 MB / 0.8123 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2478/1.156, allocations: 10.13 MB / 0.8222 GB, free: 225.1 MB / 0.6075 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.2852/1.441, allocations: 69.25 MB / 0.8898 GB, free: 173.1 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.804e-05/1.441, allocations: 8 kB / 0.8898 GB, free: 173.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03073/1.472, allocations: 21.8 MB / 0.9111 GB, free: 151.6 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.626e-05/1.472, allocations: 14.66 kB / 0.9111 GB, free: 151.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005037/1.473, allocations: 227.9 kB / 0.9114 GB, free: 151.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01977/1.492, allocations: 6.16 MB / 0.9174 GB, free: 145.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01216/1.505, allocations: 1.655 MB / 0.919 GB, free: 143.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02513/1.53, allocations: 24.3 MB / 0.9427 GB, free: 119.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006475/1.536, allocations: 340.6 kB / 0.943 GB, free: 118.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009677/1.537, allocations: 0.5544 MB / 0.9436 GB, free: 118.2 MB / 0.6075 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.003342/1.54, allocations: 1.426 MB / 0.945 GB, free: 116.8 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001654/1.542, allocations: 0.5593 MB / 0.9455 GB, free: 116.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03013/1.572, allocations: 16.61 MB / 0.9617 GB, free: 99.66 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02172/1.594, allocations: 12.14 MB / 0.9736 GB, free: 87.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/1.594, allocations: 6.906 kB / 0.9736 GB, free: 87.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.891e-05/1.594, allocations: 11.95 kB / 0.9736 GB, free: 87.48 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03386/1.628, allocations: 23 MB / 0.9961 GB, free: 64.39 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-05/1.628, allocations: 12 kB / 0.9961 GB, free: 64.38 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00626/1.634, allocations: 0.7358 MB / 0.9968 GB, free: 63.66 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02056/1.655, allocations: 4.351 MB / 1.001 GB, free: 59.32 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007774/1.655, allocations: 129.2 kB / 1.001 GB, free: 59.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02109/1.677, allocations: 17.21 MB / 1.018 GB, free: 41.31 MB / 0.6075 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.004283/1.681, allocations: 2.764 MB / 1.021 GB, free: 38.36 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02533/1.706, allocations: 16.33 MB / 1.037 GB, free: 21.82 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/1.708, allocations: 0.8315 MB / 1.037 GB, free: 20.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009091/1.709, allocations: 70.59 kB / 1.038 GB, free: 20.92 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002473/1.711, allocations: 135.8 kB / 1.038 GB, free: 20.79 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008559/1.712, allocations: 317.4 kB / 1.038 GB, free: 20.48 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003775/1.712, allocations: 215.9 kB / 1.038 GB, free: 20.27 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006964/1.719, allocations: 5.987 MB / 1.044 GB, free: 14.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9.1e-08/1.719, allocations: 0 / 1.044 GB, free: 14.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006334/1.726, allocations: 1.866 MB / 1.046 GB, free: 12.46 MB / 0.6075 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.2487/1.974, allocations: 17.11 MB / 1.063 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02358/1.998, allocations: 14.45 MB / 1.077 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/1.998, allocations: 3.969 kB / 1.077 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.008018/2.006, allocations: 5.066 MB / 1.082 GB, free: 213.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005444/2.012, allocations: 1.13 MB / 1.083 GB, free: 213.3 MB / 0.6075 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: 4.5860377549543045] Failed to read output from testmodel.py, exit status != 0: 2.018398017040454 2.027954791 1.545541067 Calling exit ...