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.001409/0.001409, 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.002152/0.002152, 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.632/1.632, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1577/0.1577, allocations: 23.85 MB / 333.4 MB, free: 1.219 MB / 254.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.002009/0.002009, allocations: 73.23 kB / 466.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1175, allocations: 59.83 MB / 0.5142 GB, free: 12.97 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.05361/0.1711, allocations: 38.06 MB / 0.5513 GB, free: 6.898 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0259/0.197, allocations: 16.61 MB / 0.5676 GB, free: 6.219 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004686/0.2017, allocations: 55.75 kB / 0.5676 GB, free: 6.164 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005417/0.2071, allocations: 1.498 MB / 0.5691 GB, free: 4.656 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006322/0.2134, allocations: 1.563 MB / 0.5706 GB, free: 3.082 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009618/0.223, allocations: 4.661 MB / 0.5752 GB, free: 14.4 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01048/0.2335, allocations: 4.954 MB / 0.58 GB, free: 9.426 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002706/0.2362, allocations: 1.576 MB / 0.5815 GB, free: 7.789 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00329/0.2395, allocations: 1.981 MB / 0.5835 GB, free: 5.801 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004276/0.2438, allocations: 2.502 MB / 0.5859 GB, free: 3.289 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001656/0.2454, allocations: 0.5352 MB / 0.5864 GB, free: 2.754 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007297/0.2527, allocations: 2.36 MB / 0.5887 GB, free: 400 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.3221/0.5749, allocations: 1.572 MB / 0.5903 GB, free: 26.51 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00799/0.5828, allocations: 2.894 MB / 0.5931 GB, free: 26.12 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02076/0.6036, allocations: 8.481 MB / 0.6014 GB, free: 24.89 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.6036, allocations: 0.6875 kB / 0.6014 GB, free: 24.89 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.6036, allocations: 0 / 0.6014 GB, free: 24.89 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005005/0.6041, allocations: 0.6562 kB / 0.6014 GB, free: 24.89 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.02508/0.6292, allocations: 6.077 MB / 0.6073 GB, free: 22.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.831e-05/0.6293, allocations: 9.594 kB / 0.6073 GB, free: 22.43 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0003597/0.6296, allocations: 140.2 kB / 0.6075 GB, free: 22.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003516/0.6331, allocations: 0.7451 MB / 0.6082 GB, free: 22.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005408/0.6386, allocations: 0.945 MB / 0.6091 GB, free: 21.6 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00747/0.646, allocations: 2.524 MB / 0.6116 GB, free: 20.21 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001406/0.6474, allocations: 0.6563 MB / 0.6122 GB, free: 19.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002753/0.6502, allocations: 493.2 kB / 0.6127 GB, free: 19.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03015/0.6803, allocations: 15.49 MB / 0.6278 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.717e-05/0.6804, allocations: 6.469 kB / 0.6278 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006207/0.681, allocations: 203.5 kB / 0.628 GB, free: 12.76 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007036/0.6818, allocations: 0.6401 MB / 0.6286 GB, free: 12.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03141/0.7132, allocations: 23.82 MB / 0.6519 GB, free: 7.199 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.08988/0.803, allocations: 41.17 MB / 0.6921 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01327/0.8163, allocations: 7.798 MB / 0.6997 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01004/0.8264, allocations: 6.339 MB / 0.7059 GB, free: 172 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03029/0.8567, allocations: 15.34 MB / 0.7209 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.657e-05/0.8567, allocations: 56.56 kB / 0.7209 GB, free: 472 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=222): time 3.967e-06/0.8567, allocations: 2.656 kB / 0.7209 GB, free: 472 kB / 0.5137 GB Notification: Performance of matching and sorting (n=297): time 0.1667/1.023, allocations: 54.2 MB / 0.7739 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03507/1.058, allocations: 18.74 MB / 0.7922 GB, free: 7.398 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01233/1.071, allocations: 6.298 MB / 0.7983 GB, free: 1.125 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.001463/1.072, allocations: 70.64 kB / 0.7984 GB, free: 1.051 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.003359/1.076, allocations: 2.466 MB / 0.8008 GB, free: 14.59 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.002497/1.078, allocations: 1.047 MB / 0.8018 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00306/1.081, allocations: 0.9937 MB / 0.8028 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001315/1.081, allocations: 301.1 kB / 0.8031 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01432/1.096, allocations: 9.388 MB / 0.8123 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2997/1.395, allocations: 10.13 MB / 0.8221 GB, free: 225.2 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.2767/1.672, allocations: 69.25 MB / 0.8898 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.786e-05/1.672, allocations: 8 kB / 0.8898 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.0308/1.703, allocations: 21.8 MB / 0.9111 GB, free: 151.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.777e-05/1.703, allocations: 14.59 kB / 0.9111 GB, free: 151.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005056/1.703, allocations: 227.9 kB / 0.9113 GB, free: 151.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01844/1.722, allocations: 6.154 MB / 0.9173 GB, free: 145.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01172/1.734, allocations: 1.655 MB / 0.9189 GB, free: 143.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02481/1.758, allocations: 24.3 MB / 0.9427 GB, free: 119.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006625/1.765, allocations: 341.5 kB / 0.943 GB, free: 118.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001365/1.766, allocations: 0.5583 MB / 0.9435 GB, free: 118.3 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.003998/1.77, allocations: 1.429 MB / 0.9449 GB, free: 116.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001904/1.772, allocations: 0.5532 MB / 0.9455 GB, free: 116.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03056/1.803, allocations: 16.61 MB / 0.9617 GB, free: 99.77 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02248/1.825, allocations: 12.14 MB / 0.9735 GB, free: 87.61 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.07e-05/1.825, allocations: 6.906 kB / 0.9736 GB, free: 87.61 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-05/1.825, allocations: 15.94 kB / 0.9736 GB, free: 87.59 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03928/1.865, allocations: 23 MB / 0.996 GB, free: 64.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.611e-05/1.865, allocations: 15.98 kB / 0.996 GB, free: 64.48 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006339/1.871, allocations: 0.7283 MB / 0.9968 GB, free: 63.77 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01974/1.891, allocations: 4.347 MB / 1.001 GB, free: 59.43 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009134/1.892, allocations: 136.8 kB / 1.001 GB, free: 59.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02115/1.913, allocations: 17.2 MB / 1.018 GB, free: 41.44 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.004393/1.917, allocations: 2.776 MB / 1.021 GB, free: 38.48 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02581/1.943, allocations: 16.33 MB / 1.037 GB, free: 21.94 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001803/1.945, allocations: 0.8323 MB / 1.037 GB, free: 21.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001151/1.946, allocations: 63.33 kB / 1.037 GB, free: 21.04 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002415/1.948, allocations: 131.8 kB / 1.038 GB, free: 20.91 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008612/1.949, allocations: 313.4 kB / 1.038 GB, free: 20.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003677/1.95, allocations: 219.9 kB / 1.038 GB, free: 20.39 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006793/1.956, allocations: 5.991 MB / 1.044 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.956, allocations: 0 / 1.044 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006023/1.963, allocations: 1.866 MB / 1.046 GB, free: 12.58 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.3533/2.316, allocations: 17.11 MB / 1.062 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02475/2.341, allocations: 14.45 MB / 1.077 GB, free: 215.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/2.341, allocations: 3.938 kB / 1.077 GB, free: 215.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.009271/2.35, allocations: 5.06 MB / 1.082 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007959/2.358, allocations: 1.133 MB / 1.083 GB, free: 213.4 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: 5.233192273997702] Failed to read output from testmodel.py, exit status != 0: 2.3662021579802968 2.376967993 1.770659362 Calling exit ...