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.00077/0.00077, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.0009034/0.0009034, allocations: 177 kB / 23.35 MB, free: 1.133 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.9707/0.9707, allocations: 177.1 MB / 203.8 MB, free: 5.449 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.1037/0.1037, allocations: 17.38 MB / 277.6 MB, free: 11.5 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: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 300.6 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.355e-05/1.499e-05, allocations: 3.969 kB / 300.6 MB, free: 1.625 MB / 266.7 MB [/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. [/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. Notification: Performance of NFInst.instantiate(Chemical.Examples.WaterElectrolysis): time 0.04437/0.04439, allocations: 46.24 MB / 346.8 MB, free: 6.176 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01991/0.0643, allocations: 16.2 MB / 363 MB, free: 5.91 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002089/0.06638, allocations: 55.75 kB / 363.1 MB, free: 5.855 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002696/0.06908, allocations: 1.44 MB / 364.5 MB, free: 4.406 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003233/0.07231, allocations: 1.64 MB / 366.2 MB, free: 2.754 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005817/0.07813, allocations: 4.52 MB / 370.7 MB, free: 14.21 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00465/0.08278, allocations: 5.132 MB / 375.8 MB, free: 9.062 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001132/0.08391, allocations: 1.28 MB / 377.1 MB, free: 7.695 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00234/0.08625, allocations: 3.002 MB / 380.1 MB, free: 4.688 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001578/0.08783, allocations: 1.936 MB / 382 MB, free: 2.746 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004373/0.08827, allocations: 0.5312 MB / 382.6 MB, free: 2.215 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002936/0.0912, allocations: 1.767 MB / 384.3 MB, free: 456 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001041/0.09224, allocations: 1.593 MB / 385.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001368/0.09361, allocations: 1.796 MB / 387.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005209/0.09882, allocations: 6.073 MB / 393.8 MB, free: 6.949 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.09882, allocations: 0 / 393.8 MB, free: 6.949 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.09883, allocations: 3.938 kB / 393.8 MB, free: 6.945 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.671e-05/0.09888, allocations: 0 / 393.8 MB, free: 6.945 MB / 362.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.005513/0.1044, allocations: 5.739 MB / 399.5 MB, free: 1.145 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.1044, allocations: 12.03 kB / 399.6 MB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002044/0.1065, allocations: 1.749 MB / 401.3 MB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0019/0.1084, allocations: 1.716 MB / 403 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004298/0.1088, allocations: 0.7845 MB / 403.8 MB, free: 12.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004134/0.1092, allocations: 496.3 kB / 404.3 MB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00496/0.1142, allocations: 5.416 MB / 409.7 MB, free: 6.797 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.715e-05/0.1142, allocations: 192 / 409.7 MB, free: 6.797 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002402/0.1145, allocations: 204.1 kB / 409.9 MB, free: 6.598 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004364/0.1149, allocations: 0.6357 MB / 410.5 MB, free: 5.961 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004516/0.1194, allocations: 5.301 MB / 415.8 MB, free: 0.6484 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0199/0.1393, allocations: 17.91 MB / 433.7 MB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.1412, allocations: 1.057 MB / 434.8 MB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/0.1425, allocations: 0.5264 MB / 435.3 MB, free: 12.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007154/0.1497, allocations: 5.661 MB / 441 MB, free: 7.289 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.1497, allocations: 56.55 kB / 441 MB, free: 7.227 MB / 410.7 MB Notification: Performance of pre-optimization done (n=222): time 3.005e-06/0.1497, allocations: 0 / 441 MB, free: 7.227 MB / 410.7 MB Notification: Performance of matching and sorting (n=297): time 0.2038/0.3536, allocations: 15.06 MB / 456.1 MB, free: 95.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008801/0.3624, allocations: 6.723 MB / 462.8 MB, free: 91.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.3639, allocations: 2.01 MB / 464.8 MB, free: 91.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004738/0.3644, allocations: 70.3 kB / 464.9 MB, free: 91.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008424/0.3652, allocations: 2.117 MB / 467 MB, free: 90.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008499/0.3661, allocations: 1.041 MB / 468.1 MB, free: 89.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001438/0.3675, allocations: 0.7162 MB / 468.8 MB, free: 89.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.778e-05/0.3676, allocations: 311 kB / 469.1 MB, free: 89.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002283/0.3698, allocations: 1.001 MB / 470.1 MB, free: 89.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002437/0.3723, allocations: 1.741 MB / 471.8 MB, free: 88.69 MB / 410.7 MB 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.00833/0.3806, allocations: 5.326 MB / 477.1 MB, free: 87.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.604e-05/0.3806, allocations: 8.406 kB / 477.2 MB, free: 87.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.008447/0.3891, allocations: 3.863 MB / 481 MB, free: 87.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.3891, allocations: 15.16 kB / 481 MB, free: 87.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002677/0.3894, allocations: 143.5 kB / 481.2 MB, free: 87.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007882/0.3972, allocations: 3.264 MB / 484.4 MB, free: 87.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004621/0.4019, allocations: 1.255 MB / 485.7 MB, free: 86.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007435/0.4093, allocations: 9.427 MB / 495.1 MB, free: 77.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002078/0.4114, allocations: 145.5 kB / 495.3 MB, free: 77.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005132/0.4119, allocations: 480.4 kB / 495.7 MB, free: 77.23 MB / 410.7 MB 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.001709/0.4136, allocations: 292.6 kB / 496 MB, free: 76.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009524/0.4146, allocations: 282.8 kB / 496.3 MB, free: 76.71 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009763/0.4243, allocations: 6.756 MB / 0.4913 GB, free: 70.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005864/0.4302, allocations: 3.001 MB / 0.4942 GB, free: 67.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.4302, allocations: 8 kB / 0.4942 GB, free: 67.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.72e-05/0.4302, allocations: 15.94 kB / 0.4942 GB, free: 67.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/0.4427, allocations: 8.819 MB / 0.5028 GB, free: 58.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/0.4428, allocations: 15.98 kB / 0.5028 GB, free: 58.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/0.445, allocations: 0.6485 MB / 0.5035 GB, free: 58.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009286/0.4543, allocations: 3.118 MB / 0.5065 GB, free: 55.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002142/0.4545, allocations: 99.91 kB / 0.5066 GB, free: 55.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007344/0.4618, allocations: 9.666 MB / 0.5161 GB, free: 45.25 MB / 410.7 MB 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.001679/0.4635, allocations: 2.34 MB / 0.5183 GB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007591/0.4711, allocations: 4.269 MB / 0.5225 GB, free: 38.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004252/0.4715, allocations: 306.3 kB / 0.5228 GB, free: 38.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003595/0.4719, allocations: 71.88 kB / 0.5229 GB, free: 38.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008413/0.4727, allocations: 67.98 kB / 0.5229 GB, free: 38.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004885/0.4732, allocations: 272.3 kB / 0.5232 GB, free: 37.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002193/0.4734, allocations: 179.9 kB / 0.5234 GB, free: 37.58 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008584/0.4743, allocations: 1.173 MB / 0.5245 GB, free: 36.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4743, allocations: 2.625 kB / 0.5245 GB, free: 36.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004436/0.4787, allocations: 1.831 MB / 0.5263 GB, free: 34.67 MB / 410.7 MB 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.0008576/0.4796, allocations: 0.5664 MB / 0.5269 GB, free: 34.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006886/0.4865, allocations: 3.33 MB / 0.5301 GB, free: 30.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.683e-05/0.4865, allocations: 33.31 kB / 0.5301 GB, free: 30.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003012/0.4895, allocations: 2.128 MB / 0.5322 GB, free: 28.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/0.4917, allocations: 0.7232 MB / 0.5329 GB, free: 28.19 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4068:9-4068:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:790:5-790:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.208127004094422]