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.001377/0.001377, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001477/0.001477, allocations: 223.3 kB / 23.03 MB, free: 4.941 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.546/1.546, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.163/0.163, allocations: 23.88 MB / 337.1 MB, free: 10.99 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.WaterElectrolysis,fileNamePrefix="Chemical_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.002036/0.002036, allocations: 63.03 kB / 471.9 MB, free: 7.559 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.4003, allocations: 59.87 MB / 0.5193 GB, free: 9.723 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.09011/0.4904, allocations: 35.31 MB / 0.5538 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03167/0.5221, allocations: 14.47 MB / 0.5679 GB, free: 8.086 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006754/0.5288, allocations: 51.75 kB / 0.5679 GB, free: 8.035 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008603/0.5374, allocations: 1.403 MB / 0.5693 GB, free: 6.844 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008808/0.5462, allocations: 1.586 MB / 0.5709 GB, free: 5.246 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0112/0.5574, allocations: 4.244 MB / 0.575 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01036/0.5678, allocations: 4.946 MB / 0.5798 GB, free: 12.01 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003875/0.5717, allocations: 1.248 MB / 0.5811 GB, free: 10.7 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004612/0.5763, allocations: 1.981 MB / 0.583 GB, free: 8.715 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005478/0.5818, allocations: 2.514 MB / 0.5855 GB, free: 6.191 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001984/0.5837, allocations: 0.5352 MB / 0.586 GB, free: 5.656 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007182/0.5909, allocations: 1.791 MB / 0.5877 GB, free: 3.863 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002641/0.5936, allocations: 1.577 MB / 0.5893 GB, free: 2.281 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004718/0.5983, allocations: 2.215 MB / 0.5914 GB, free: 56 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01606/0.6143, allocations: 8.352 MB / 0.5996 GB, free: 7.672 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.094e-05/0.6144, allocations: 8 kB / 0.5996 GB, free: 7.664 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6144, allocations: 0 / 0.5996 GB, free: 7.664 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003167/0.6147, allocations: 3.938 kB / 0.5996 GB, free: 7.66 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.01587/0.6305, allocations: 5.999 MB / 0.6055 GB, free: 1.594 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/0.6306, allocations: 8.031 kB / 0.6055 GB, free: 1.586 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001898/0.6308, allocations: 138 kB / 0.6056 GB, free: 1.449 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001383/0.6322, allocations: 0.7388 MB / 0.6063 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003664/0.6358, allocations: 1.051 MB / 0.6073 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005426/0.6413, allocations: 2.482 MB / 0.6098 GB, free: 13.1 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001011/0.6423, allocations: 0.7924 MB / 0.6105 GB, free: 12.25 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00104/0.6433, allocations: 0.4922 MB / 0.611 GB, free: 11.75 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02577/0.6691, allocations: 16.12 MB / 0.6268 GB, free: 11.57 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.968e-05/0.6692, allocations: 4 kB / 0.6268 GB, free: 11.57 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004451/0.6696, allocations: 200 kB / 0.627 GB, free: 11.38 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008113/0.6704, allocations: 0.6474 MB / 0.6276 GB, free: 10.73 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03559/0.706, allocations: 24.82 MB / 0.6518 GB, free: 1.891 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.07521/0.7812, allocations: 39.55 MB / 0.6905 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01215/0.7934, allocations: 7.895 MB / 0.6982 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009193/0.8026, allocations: 6.431 MB / 0.7044 GB, free: 11.79 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02485/0.8274, allocations: 12.3 MB / 0.7165 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.56e-05/0.8275, allocations: 52.56 kB / 0.7165 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=222): time 5.461e-06/0.8275, allocations: 0 / 0.7165 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=297): time 0.3803/1.208, allocations: 54.33 MB / 0.7696 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02604/1.234, allocations: 18.45 MB / 0.7876 GB, free: 146.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006833/1.241, allocations: 6.304 MB / 0.7937 GB, free: 140.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001067/1.242, allocations: 73.7 kB / 0.7938 GB, free: 140.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001497/1.243, allocations: 2.473 MB / 0.7962 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001493/1.245, allocations: 1.039 MB / 0.7972 GB, free: 137 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002304/1.247, allocations: 0.9955 MB / 0.7982 GB, free: 136 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.296e-05/1.247, allocations: 301.1 kB / 0.7985 GB, free: 135.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009106/1.256, allocations: 9.539 MB / 0.8078 GB, free: 126.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01009/1.266, allocations: 10.28 MB / 0.8178 GB, free: 115.6 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.2682/1.534, allocations: 68.78 MB / 0.885 GB, free: 47.09 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.908e-05/1.534, allocations: 5.594 kB / 0.885 GB, free: 47.08 MB / 0.5606 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.03278/1.567, allocations: 22.1 MB / 0.9066 GB, free: 24.96 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.145e-05/1.567, allocations: 18.62 kB / 0.9066 GB, free: 24.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005849/1.568, allocations: 231.9 kB / 0.9068 GB, free: 24.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01952/1.587, allocations: 6.227 MB / 0.9129 GB, free: 18.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01197/1.599, allocations: 1.667 MB / 0.9145 GB, free: 16.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03007/1.629, allocations: 24.03 MB / 0.938 GB, free: 8.348 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009602/1.639, allocations: 362 kB / 0.9384 GB, free: 7.996 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00262/1.642, allocations: 0.5505 MB / 0.9389 GB, free: 7.445 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.005459/1.647, allocations: 1.428 MB / 0.9403 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002563/1.65, allocations: 0.5539 MB / 0.9408 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04302/1.693, allocations: 16.76 MB / 0.9572 GB, free: 4.699 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2868/1.979, allocations: 12.29 MB / 0.9692 GB, free: 200.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-05/1.98, allocations: 5.375 kB / 0.9692 GB, free: 200.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.748e-05/1.98, allocations: 14.06 kB / 0.9692 GB, free: 200.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04734/2.027, allocations: 21.24 MB / 0.99 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.196e-05/2.027, allocations: 12.86 kB / 0.99 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006232/2.033, allocations: 0.7432 MB / 0.9907 GB, free: 192.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02032/2.054, allocations: 4.338 MB / 0.9949 GB, free: 191.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008706/2.054, allocations: 128.4 kB / 0.9951 GB, free: 191.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02152/2.076, allocations: 16.35 MB / 1.011 GB, free: 179.5 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.004502/2.08, allocations: 2.63 MB / 1.014 GB, free: 177.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02754/2.108, allocations: 16.55 MB / 1.03 GB, free: 161.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00221/2.11, allocations: 0.7668 MB / 1.031 GB, free: 160.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001732/2.112, allocations: 62.09 kB / 1.031 GB, free: 160.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003171/2.115, allocations: 142.7 kB / 1.031 GB, free: 160.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009815/2.116, allocations: 333.1 kB / 1.031 GB, free: 160.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004046/2.116, allocations: 218.5 kB / 1.031 GB, free: 160.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.007583/2.124, allocations: 5.999 MB / 1.037 GB, free: 154.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.8e-07/2.124, allocations: 0 / 1.037 GB, free: 154.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006037/2.13, allocations: 1.865 MB / 1.039 GB, free: 152.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.02742/2.158, allocations: 17.32 MB / 1.056 GB, free: 134.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01937/2.177, allocations: 14.65 MB / 1.07 GB, free: 120.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/2.177, allocations: 4 kB / 1.07 GB, free: 120.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008559/2.185, allocations: 5.14 MB / 1.075 GB, free: 115 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006379/2.192, allocations: 1.132 MB / 1.076 GB, free: 114 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.91517313697841] Failed to read output from testmodel.py, exit status != 0: 2.201858169049956 2.213911407 1.596967694 Calling exit ...