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.001037/0.001037, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.00136/0.00136, allocations: 169 kB / 24.06 MB, free: 456 kB / 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 1.07/1.07, allocations: 177.1 MB / 204.5 MB, free: 5.512 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.08859/0.08859, allocations: 17.38 MB / 278.4 MB, free: 11.49 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.613e-06/1.613e-06, allocations: 0 / 354.7 MB, free: 9.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.324e-05/1.485e-05, allocations: 6.312 kB / 354.7 MB, free: 9.703 MB / 282.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.03183/0.03185, allocations: 40.41 MB / 395.1 MB, free: 1.367 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01835/0.0502, allocations: 15.74 MB / 410.8 MB, free: 1.559 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002284/0.05248, allocations: 55.75 kB / 410.9 MB, free: 1.504 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003411/0.0559, allocations: 1.393 MB / 412.3 MB, free: 104 kB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1727/0.2286, allocations: 1.62 MB / 413.9 MB, free: 34.66 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008182/0.2368, allocations: 4.449 MB / 418.3 MB, free: 34.46 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008424/0.2452, allocations: 5.131 MB / 423.5 MB, free: 33.12 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00225/0.2475, allocations: 1.234 MB / 424.7 MB, free: 32.87 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007935/0.2554, allocations: 2.995 MB / 427.7 MB, free: 32.04 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004282/0.2597, allocations: 1.941 MB / 429.6 MB, free: 31.43 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001456/0.2612, allocations: 0.5302 MB / 430.2 MB, free: 31.43 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005129/0.2663, allocations: 1.778 MB / 431.9 MB, free: 31.22 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001779/0.2681, allocations: 1.586 MB / 433.5 MB, free: 30.34 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00404/0.2721, allocations: 1.794 MB / 435.3 MB, free: 29.53 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008971/0.2811, allocations: 6.085 MB / 441.4 MB, free: 26.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.2811, allocations: 0 / 441.4 MB, free: 26.13 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2811, allocations: 0 / 441.4 MB, free: 26.13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001869/0.2813, allocations: 0 / 441.4 MB, free: 26.13 MB / 330.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.006507/0.2878, allocations: 6.34 MB / 447.8 MB, free: 20.5 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.2878, allocations: 8.031 kB / 447.8 MB, free: 20.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002268/0.2901, allocations: 1.981 MB / 449.7 MB, free: 18.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/0.2923, allocations: 2.108 MB / 451.9 MB, free: 16.56 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003805/0.2927, allocations: 0.7886 MB / 452.6 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003698/0.2931, allocations: 495.2 kB / 453.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004896/0.298, allocations: 5.322 MB / 458.4 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.062e-05/0.298, allocations: 7.312 kB / 458.5 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000231/0.2982, allocations: 201.4 kB / 458.6 MB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003508/0.2986, allocations: 0.6459 MB / 459.3 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004295/0.3029, allocations: 5.235 MB / 464.5 MB, free: 4.047 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03114/0.334, allocations: 22.15 MB / 486.7 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0026/0.3366, allocations: 1.166 MB / 487.9 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.338, allocations: 0.6546 MB / 488.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009464/0.3475, allocations: 6.485 MB / 495 MB, free: 6.785 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.897e-05/0.3475, allocations: 58.48 kB / 495 MB, free: 6.723 MB / 362.7 MB Notification: Performance of pre-optimization done (n=222): time 4.118e-06/0.3475, allocations: 0 / 495 MB, free: 6.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=297): time 0.0628/0.4103, allocations: 15.71 MB / 0.4988 GB, free: 7.445 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01416/0.4245, allocations: 8.989 MB / 0.5076 GB, free: 14.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002012/0.4265, allocations: 2.217 MB / 0.5097 GB, free: 12.36 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008717/0.4274, allocations: 76.39 kB / 0.5098 GB, free: 12.28 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001551/0.4289, allocations: 2.685 MB / 0.5124 GB, free: 9.684 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001007/0.4299, allocations: 1.046 MB / 0.5134 GB, free: 8.699 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00149/0.4314, allocations: 0.9187 MB / 0.5143 GB, free: 7.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.009e-05/0.4315, allocations: 476.8 kB / 0.5148 GB, free: 7.371 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002227/0.4337, allocations: 1.151 MB / 0.5159 GB, free: 6.223 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002773/0.4365, allocations: 2.195 MB / 0.5181 GB, free: 3.711 MB / 394.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.009823/0.4463, allocations: 6.033 MB / 0.524 GB, free: 13.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.571e-05/0.4463, allocations: 4 kB / 0.524 GB, free: 13.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.01225/0.4586, allocations: 4.974 MB / 0.5288 GB, free: 8.574 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.014e-05/0.4586, allocations: 18.97 kB / 0.5288 GB, free: 8.559 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003825/0.459, allocations: 227.9 kB / 0.5291 GB, free: 8.336 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009758/0.4688, allocations: 3.286 MB / 0.5323 GB, free: 5.078 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006526/0.4753, allocations: 1.512 MB / 0.5337 GB, free: 3.617 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01216/0.4875, allocations: 12.99 MB / 0.5464 GB, free: 6.395 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003412/0.4909, allocations: 141.5 kB / 0.5466 GB, free: 6.262 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007837/0.4916, allocations: 0.5309 MB / 0.5471 GB, free: 5.73 MB / 426.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.002238/0.4939, allocations: 349.9 kB / 0.5474 GB, free: 5.422 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001437/0.4953, allocations: 413 kB / 0.5478 GB, free: 5.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01365/0.509, allocations: 7.857 MB / 0.5555 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008673/0.5176, allocations: 3.74 MB / 0.5591 GB, free: 9.934 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.5177, allocations: 4 kB / 0.5591 GB, free: 9.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.212e-05/0.5177, allocations: 15.94 kB / 0.5592 GB, free: 9.914 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1878/0.7055, allocations: 11.19 MB / 0.5701 GB, free: 122.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-05/0.7055, allocations: 13.5 kB / 0.5701 GB, free: 122.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003254/0.7088, allocations: 0.6966 MB / 0.5708 GB, free: 122.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01216/0.721, allocations: 2.979 MB / 0.5737 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000627/0.7216, allocations: 131 kB / 0.5738 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/0.7325, allocations: 13.12 MB / 0.5866 GB, free: 112.8 MB / 442.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.00239/0.7349, allocations: 3.112 MB / 0.5897 GB, free: 110.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009994/0.7449, allocations: 5.027 MB / 0.5946 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007831/0.7457, allocations: 325.9 kB / 0.5949 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005008/0.7462, allocations: 63.62 kB / 0.5949 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.7472, allocations: 76.05 kB / 0.595 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000803/0.748, allocations: 307.5 kB / 0.5953 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003566/0.7484, allocations: 203.8 kB / 0.5955 GB, free: 109.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001497/0.7499, allocations: 1.531 MB / 0.597 GB, free: 109 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.7499, allocations: 0 / 0.597 GB, free: 109 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004316/0.7542, allocations: 1.831 MB / 0.5988 GB, free: 109 MB / 442.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.0009133/0.7551, allocations: 0.5739 MB / 0.5993 GB, free: 108.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00667/0.7618, allocations: 3.999 MB / 0.6032 GB, free: 108.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.7618, allocations: 7.844 kB / 0.6033 GB, free: 108.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003307/0.7651, allocations: 2.576 MB / 0.6058 GB, free: 107.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002273/0.7674, allocations: 0.7849 MB / 0.6065 GB, free: 107.1 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4595:9-4595:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:827:5-827:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 2.638624093029648]