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.0009522/0.0009522, allocations: 76.45 kB / 19.9 MB, free: 16 kB / 13.93 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.0008334/0.0008334, allocations: 169.8 kB / 23.18 MB, free: 1.383 MB / 18.57 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 0.969/0.969, allocations: 177.2 MB / 203.6 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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.09862/0.09862, allocations: 17.38 MB / 277.4 MB, free: 11.87 MB / 266.7 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: translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.WaterElectrolysis") [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.001246/0.001246, allocations: 73.88 kB / 412.8 MB, free: 13.09 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1588, allocations: 59.84 MB / 472.7 MB, free: 13.88 MB / 378.7 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.04386/0.2027, allocations: 35.86 MB / 0.4966 GB, free: 10.05 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.02302/0.2257, allocations: 14.47 MB / 0.5107 GB, free: 11.52 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005045/0.2307, allocations: 51.75 kB / 0.5108 GB, free: 11.46 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006276/0.237, allocations: 1.393 MB / 0.5121 GB, free: 10.06 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007934/0.245, allocations: 1.563 MB / 0.5137 GB, free: 8.488 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007913/0.2529, allocations: 4.193 MB / 0.5178 GB, free: 4.277 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008572/0.2614, allocations: 4.942 MB / 0.5226 GB, free: 15.31 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002004/0.2634, allocations: 1.221 MB / 0.5238 GB, free: 14.02 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005151/0.2686, allocations: 3.109 MB / 0.5268 GB, free: 10.91 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002973/0.2716, allocations: 2.209 MB / 0.529 GB, free: 8.688 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009457/0.2725, allocations: 0.5352 MB / 0.5295 GB, free: 8.152 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004752/0.2773, allocations: 1.767 MB / 0.5312 GB, free: 6.383 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001192/0.2785, allocations: 1.573 MB / 0.5328 GB, free: 4.805 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003185/0.2816, allocations: 2.223 MB / 0.5349 GB, free: 2.57 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01308/0.2947, allocations: 8.36 MB / 0.5431 GB, free: 10.18 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/0.2947, allocations: 0 / 0.5431 GB, free: 10.18 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.138e-06/0.2947, allocations: 0 / 0.5431 GB, free: 10.18 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003323/0.2951, allocations: 0 / 0.5431 GB, free: 10.18 MB / 458.7 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.01271/0.3078, allocations: 6.007 MB / 0.549 GB, free: 4.105 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.689e-05/0.3078, allocations: 8.031 kB / 0.549 GB, free: 4.098 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002708/0.3106, allocations: 1.051 MB / 0.55 GB, free: 3.043 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003965/0.3145, allocations: 2.482 MB / 0.5524 GB, free: 0.5039 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008093/0.3153, allocations: 0.7963 MB / 0.5532 GB, free: 15.64 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000596/0.3159, allocations: 496.2 kB / 0.5537 GB, free: 15.16 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01911/0.335, allocations: 16.14 MB / 0.5694 GB, free: 14.96 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.116e-05/0.3351, allocations: 0 / 0.5694 GB, free: 14.96 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000307/0.3354, allocations: 200 kB / 0.5696 GB, free: 14.77 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005335/0.3359, allocations: 0.6395 MB / 0.5702 GB, free: 14.13 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3896/0.7255, allocations: 24.79 MB / 0.5944 GB, free: 103.8 MB / 490.7 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.04499/0.7705, allocations: 37.44 MB / 0.631 GB, free: 70.31 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006097/0.7766, allocations: 7.883 MB / 0.6387 GB, free: 62.43 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004473/0.7811, allocations: 6.431 MB / 0.645 GB, free: 56 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01183/0.7929, allocations: 11.73 MB / 0.6564 GB, free: 44.34 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/0.793, allocations: 57.12 kB / 0.6565 GB, free: 44.27 MB / 490.7 MB Notification: Performance of pre-optimization done (n=222): time 5.881e-06/0.793, allocations: 1.75 kB / 0.6565 GB, free: 44.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=297): time 0.08565/0.8786, allocations: 54.17 MB / 0.7094 GB, free: 6.641 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0202/0.8988, allocations: 18.38 MB / 0.7273 GB, free: 3.965 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002997/0.9018, allocations: 2.557 MB / 0.7298 GB, free: 1.41 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001362/0.9032, allocations: 69.7 kB / 0.7299 GB, free: 1.336 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001392/0.9046, allocations: 2.501 MB / 0.7323 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001568/0.9061, allocations: 1.038 MB / 0.7334 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001804/0.9079, allocations: 1.007 MB / 0.7343 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.662e-05/0.908, allocations: 301.1 kB / 0.7346 GB, free: 12.59 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009263/0.9173, allocations: 9.545 MB / 0.744 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009834/0.9271, allocations: 10.28 MB / 0.754 GB, free: 8.457 MB / 0.5417 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.5218/1.449, allocations: 68.99 MB / 0.8214 GB, free: 200.7 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.259e-05/1.449, allocations: 7.875 kB / 0.8214 GB, free: 200.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=411) (initialization): time 0.02615/1.475, allocations: 21.88 MB / 0.8427 GB, free: 191.3 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.763e-05/1.475, allocations: 16 kB / 0.8427 GB, free: 191.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003929/1.476, allocations: 226.9 kB / 0.843 GB, free: 191.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0114/1.487, allocations: 6.254 MB / 0.8491 GB, free: 185.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007157/1.494, allocations: 1.674 MB / 0.8507 GB, free: 183.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01917/1.513, allocations: 23.94 MB / 0.8741 GB, free: 159.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004735/1.518, allocations: 358.3 kB / 0.8744 GB, free: 159.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00144/1.519, allocations: 0.5528 MB / 0.875 GB, free: 158.8 MB / 0.5886 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.004292/1.524, allocations: 1.426 MB / 0.8764 GB, free: 157.4 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00139/1.525, allocations: 335.4 kB / 0.8767 GB, free: 157.2 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01947/1.545, allocations: 16.56 MB / 0.8929 GB, free: 140.8 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01456/1.559, allocations: 12.3 MB / 0.9049 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.158e-05/1.559, allocations: 6.438 kB / 0.9049 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.389e-05/1.559, allocations: 15.94 kB / 0.9049 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02628/1.585, allocations: 22.22 MB / 0.9266 GB, free: 106.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-05/1.586, allocations: 15.83 kB / 0.9266 GB, free: 106.1 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003233/1.589, allocations: 0.7484 MB / 0.9273 GB, free: 105.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01096/1.6, allocations: 4.373 MB / 0.9316 GB, free: 101 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007292/1.6, allocations: 131.9 kB / 0.9317 GB, free: 100.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01451/1.615, allocations: 16.22 MB / 0.9476 GB, free: 84.18 MB / 0.5886 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.002578/1.618, allocations: 2.609 MB / 0.9501 GB, free: 81.44 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01808/1.636, allocations: 16.31 MB / 0.966 GB, free: 64.96 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009794/1.637, allocations: 349.1 kB / 0.9664 GB, free: 64.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004641/1.637, allocations: 58.53 kB / 0.9664 GB, free: 64.57 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/1.638, allocations: 142.5 kB / 0.9666 GB, free: 64.43 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007323/1.639, allocations: 333.2 kB / 0.9669 GB, free: 64.11 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002813/1.639, allocations: 215.9 kB / 0.9671 GB, free: 63.89 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.002595/1.642, allocations: 3.314 MB / 0.9703 GB, free: 60.57 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/1.642, allocations: 0 / 0.9703 GB, free: 60.57 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.004504/1.646, allocations: 1.811 MB / 0.9721 GB, free: 58.79 MB / 0.5886 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.001105/1.647, allocations: 0.5214 MB / 0.9726 GB, free: 58.4 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0139/1.661, allocations: 14.64 MB / 0.9869 GB, free: 43.71 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.661, allocations: 4 kB / 0.9869 GB, free: 43.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005722/1.667, allocations: 5.141 MB / 0.9919 GB, free: 38.51 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002664/1.67, allocations: 0.6135 MB / 0.9925 GB, free: 37.95 MB / 0.5886 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4747:9-4747:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:836:5-836: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: 3.8628837959840894] Failed to read output from testmodel.py, exit status != 0: 1.9692034278996289 1.685805266 1.389290707 Calling exit ...