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.00175/0.00175, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.002366/0.002366, allocations: 210.3 kB / 23.04 MB, free: 5.074 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 8.062 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.1549/0.1549, allocations: 23.88 MB / 337.1 MB, free: 11.31 MB / 270.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.002024/0.002024, allocations: 67.91 kB / 472 MB, free: 7.723 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.3039, allocations: 59.87 MB / 0.5194 GB, free: 9.605 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.04931/0.3532, allocations: 38.09 MB / 0.5566 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02544/0.3786, allocations: 16.63 MB / 0.5728 GB, free: 3.164 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003668/0.3823, allocations: 51.75 kB / 0.5729 GB, free: 3.113 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004655/0.387, allocations: 1.501 MB / 0.5743 GB, free: 1.852 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005565/0.3925, allocations: 1.578 MB / 0.5759 GB, free: 268 kB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009403/0.4019, allocations: 4.672 MB / 0.5804 GB, free: 11.57 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.009078/0.411, allocations: 4.962 MB / 0.5853 GB, free: 6.582 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002562/0.4136, allocations: 1.248 MB / 0.5865 GB, free: 5.273 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004208/0.4178, allocations: 1.978 MB / 0.5884 GB, free: 3.289 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003894/0.4217, allocations: 2.506 MB / 0.5909 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008238/0.4225, allocations: 0.5352 MB / 0.5914 GB, free: 244 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005355/0.4279, allocations: 2.376 MB / 0.5937 GB, free: 13.86 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001447/0.4293, allocations: 1.573 MB / 0.5953 GB, free: 12.28 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003369/0.4327, allocations: 2.895 MB / 0.5981 GB, free: 9.371 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01232/0.445, allocations: 8.485 MB / 0.6064 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.445, allocations: 0 / 0.6064 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.445, allocations: 0 / 0.6064 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001507/0.4451, allocations: 0 / 0.6064 GB, free: 0.8555 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.01201/0.4572, allocations: 6.007 MB / 0.6122 GB, free: 10.77 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.4572, allocations: 8.031 kB / 0.6122 GB, free: 10.77 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001373/0.4573, allocations: 142 kB / 0.6124 GB, free: 10.62 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001059/0.4584, allocations: 0.7349 MB / 0.6131 GB, free: 9.879 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002475/0.4609, allocations: 0.9496 MB / 0.614 GB, free: 8.926 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004356/0.4652, allocations: 2.482 MB / 0.6165 GB, free: 6.387 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008251/0.466, allocations: 0.7963 MB / 0.6172 GB, free: 5.527 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007368/0.4668, allocations: 500 kB / 0.6177 GB, free: 5.039 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02071/0.4875, allocations: 16.08 MB / 0.6334 GB, free: 4.91 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.491e-05/0.4876, allocations: 0 / 0.6334 GB, free: 4.91 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004201/0.488, allocations: 200 kB / 0.6336 GB, free: 4.715 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007471/0.4888, allocations: 0.6357 MB / 0.6342 GB, free: 4.078 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03041/0.5192, allocations: 24.79 MB / 0.6584 GB, free: 11.27 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.06756/0.5867, allocations: 41.84 MB / 0.6993 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01124/0.598, allocations: 7.86 MB / 0.707 GB, free: 9.184 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008922/0.6069, allocations: 6.404 MB / 0.7132 GB, free: 2.773 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02459/0.6315, allocations: 14.21 MB / 0.7271 GB, free: 4.516 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.948e-05/0.6315, allocations: 56.56 kB / 0.7272 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=222): time 3.667e-06/0.6315, allocations: 0 / 0.7272 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of matching and sorting (n=297): time 0.3455/0.977, allocations: 54.13 MB / 0.78 GB, free: 155 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02534/1.002, allocations: 18.68 MB / 0.7983 GB, free: 136 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006484/1.009, allocations: 6.314 MB / 0.8044 GB, free: 129.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001049/1.01, allocations: 65.7 kB / 0.8045 GB, free: 129.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001409/1.011, allocations: 2.483 MB / 0.8069 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001339/1.013, allocations: 1.034 MB / 0.8079 GB, free: 126.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00227/1.015, allocations: 0.9911 MB / 0.8089 GB, free: 125.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.082e-05/1.015, allocations: 307.7 kB / 0.8092 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009328/1.024, allocations: 9.506 MB / 0.8185 GB, free: 115.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01004/1.034, allocations: 10.24 MB / 0.8285 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.2717/1.306, allocations: 69.41 MB / 0.8962 GB, free: 35.91 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.108e-05/1.306, allocations: 8 kB / 0.8963 GB, free: 35.91 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03012/1.336, allocations: 22.03 MB / 0.9178 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.143e-05/1.336, allocations: 12 kB / 0.9178 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005098/1.337, allocations: 234.8 kB / 0.918 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01837/1.355, allocations: 6.214 MB / 0.9241 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0116/1.367, allocations: 1.662 MB / 0.9257 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03319/1.4, allocations: 24.24 MB / 0.9494 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006329/1.406, allocations: 339.4 kB / 0.9497 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001694/1.408, allocations: 0.5544 MB / 0.9502 GB, free: 12.17 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.004234/1.412, allocations: 1.436 MB / 0.9516 GB, free: 10.74 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002086/1.414, allocations: 0.5625 MB / 0.9522 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2578/1.672, allocations: 16.67 MB / 0.9685 GB, free: 201 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02505/1.697, allocations: 12.2 MB / 0.9804 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.031e-05/1.697, allocations: 3.75 kB / 0.9804 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.895e-05/1.697, allocations: 11.53 kB / 0.9804 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03557/1.733, allocations: 23.23 MB / 1.003 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.753e-05/1.733, allocations: 16.28 kB / 1.003 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00597/1.739, allocations: 0.7326 MB / 1.004 GB, free: 185.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01921/1.758, allocations: 4.333 MB / 1.008 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001062/1.759, allocations: 131.6 kB / 1.008 GB, free: 183.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0207/1.78, allocations: 16.71 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.004233/1.784, allocations: 2.666 MB / 1.027 GB, free: 164.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02575/1.81, allocations: 16.44 MB / 1.043 GB, free: 148.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00182/1.811, allocations: 0.7714 MB / 1.044 GB, free: 147.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00126/1.813, allocations: 68.92 kB / 1.044 GB, free: 147.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002625/1.815, allocations: 115.9 kB / 1.044 GB, free: 147.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008268/1.816, allocations: 330.1 kB / 1.044 GB, free: 147.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003697/1.817, allocations: 223.9 kB / 1.045 GB, free: 146.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006792/1.823, allocations: 5.988 MB / 1.05 GB, free: 141 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.4e-07/1.823, allocations: 2.156 kB / 1.05 GB, free: 141 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005885/1.829, allocations: 1.867 MB / 1.052 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.02612/1.855, allocations: 17.24 MB / 1.069 GB, free: 121.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01849/1.874, 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.051e-05/1.874, allocations: 4 kB / 1.083 GB, free: 107.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008011/1.882, allocations: 5.094 MB / 1.088 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.005548/1.887, allocations: 1.136 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.3922467000084] Failed to read output from testmodel.py, exit status != 0: 1.8953832590486854 1.904760286 1.457484849 Calling exit ...