Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001004/0.001004, allocations: 85.17 kB / 19.87 MB, free: 4.617 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.001518/0.001518, allocations: 169 kB / 23.27 MB, free: 1.223 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 1.01/1.01, allocations: 177.2 MB / 203.7 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1084/0.1084, allocations: 17.46 MB / 277.7 MB, free: 11.38 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical.Examples.WaterElectrolysis") translateModel(Chemical.Examples.WaterElectrolysis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Examples.WaterElectrolysis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 354 MB, free: 10.61 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.331e-05/1.453e-05, allocations: 2.312 kB / 354 MB, free: 10.61 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Boundaries.mo:1343:7-1343: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 master/Boundaries.mo:1343:7-1343: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 master/Boundaries.mo:1361:7-1361: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 master/Boundaries.mo:1361:7-1361: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.03629/0.0363, allocations: 41.26 MB / 395.3 MB, free: 1.398 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02286/0.05917, allocations: 17.69 MB / 412.9 MB, free: 15.64 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003617/0.06278, allocations: 103.2 kB / 413 MB, free: 15.54 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004185/0.06697, allocations: 1.467 MB / 414.5 MB, free: 14.06 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00568/0.07265, allocations: 2.032 MB / 416.5 MB, free: 12.01 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009009/0.08166, allocations: 5.22 MB / 421.8 MB, free: 6.77 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008143/0.0898, allocations: 5.585 MB / 427.3 MB, free: 1.164 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002096/0.0919, allocations: 1.246 MB / 428.6 MB, free: 15.85 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005778/0.09767, allocations: 3.22 MB / 431.8 MB, free: 12.62 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004145/0.1018, allocations: 2.416 MB / 434.2 MB, free: 10.2 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001084/0.1029, allocations: 0.5195 MB / 434.7 MB, free: 9.684 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005489/0.1084, allocations: 2.063 MB / 436.8 MB, free: 7.617 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001521/0.1099, allocations: 1.663 MB / 438.5 MB, free: 5.949 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002418/0.1123, allocations: 1.87 MB / 440.3 MB, free: 4.074 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1763/0.2887, allocations: 6.324 MB / 446.7 MB, free: 82.11 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2887, allocations: 0 / 446.7 MB, free: 82.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2887, allocations: 0 / 446.7 MB, free: 82.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003194/0.289, allocations: 0 / 446.7 MB, free: 82.11 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1520 * Number of variables: 1520 Notification: Performance of Generate backend data structure: time 0.01005/0.2991, allocations: 6.516 MB / 453.2 MB, free: 79.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/0.2991, allocations: 9.812 kB / 453.2 MB, free: 79.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002728/0.3018, allocations: 1.993 MB / 455.2 MB, free: 79.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002983/0.3048, allocations: 2.576 MB / 457.8 MB, free: 78.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003666/0.3052, allocations: 0.6568 MB / 458.4 MB, free: 78.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005265/0.3057, allocations: 0.494 MB / 458.9 MB, free: 78.13 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006139/0.3119, allocations: 5.209 MB / 464.1 MB, free: 77.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.888e-05/0.3119, allocations: 3.469 kB / 464.1 MB, free: 77.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002389/0.3122, allocations: 205.4 kB / 464.3 MB, free: 77.69 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004383/0.3126, allocations: 0.6299 MB / 465 MB, free: 77.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005523/0.3181, allocations: 5.17 MB / 470.1 MB, free: 77.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03148/0.3496, allocations: 19.85 MB / 490 MB, free: 68.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002035/0.3517, allocations: 1.127 MB / 491.1 MB, free: 68.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001068/0.3527, allocations: 0.6249 MB / 491.7 MB, free: 68.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01364/0.3664, allocations: 8.469 MB / 0.4885 GB, free: 64.87 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.3664, allocations: 62.2 kB / 0.4885 GB, free: 64.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=214): time 3.988e-06/0.3664, allocations: 0 / 0.4885 GB, free: 64.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=273): time 0.08627/0.4527, allocations: 13.19 MB / 0.5014 GB, free: 55.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005409/0.4581, allocations: 5.299 MB / 0.5066 GB, free: 50.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001665/0.4597, allocations: 2.294 MB / 0.5088 GB, free: 49.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003028/0.4601, allocations: 65.7 kB / 0.5089 GB, free: 49.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009156/0.461, allocations: 2.835 MB / 0.5117 GB, free: 46.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005945/0.4616, allocations: 0.9807 MB / 0.5126 GB, free: 45.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001122/0.4627, allocations: 0.844 MB / 0.5134 GB, free: 45.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.165e-05/0.4627, allocations: 480.7 kB / 0.5139 GB, free: 44.83 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001641/0.4644, allocations: 1.038 MB / 0.5149 GB, free: 43.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002014/0.4664, allocations: 2.452 MB / 0.5173 GB, free: 41.19 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.006895/0.4733, allocations: 5.94 MB / 0.5231 GB, free: 35.24 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.4733, allocations: 12 kB / 0.5231 GB, free: 35.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=423) (initialization): time 0.007971/0.4813, allocations: 4.582 MB / 0.5276 GB, free: 30.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.4813, allocations: 20 kB / 0.5276 GB, free: 30.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002562/0.4815, allocations: 243.9 kB / 0.5278 GB, free: 30.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006719/0.4882, allocations: 2.192 MB / 0.53 GB, free: 28.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003769/0.492, allocations: 1.17 MB / 0.5311 GB, free: 27.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006247/0.4983, allocations: 8.39 MB / 0.5393 GB, free: 18.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002145/0.5004, allocations: 142.5 kB / 0.5395 GB, free: 18.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004103/0.5008, allocations: 407.9 kB / 0.5398 GB, free: 18.25 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: 142 * Number of states: 0 () * Number of discrete variables: 4 (reaction.processDefinition.data.phase,reaction.processDefinition.SelfClustering,liquidWater.substanceDefinitionVar.SelfClustering,liquidWater.substanceDefinitionVar.data.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 335 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,4,77.8%), (1,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(6,20), (4,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001502/0.5023, allocations: 365.8 kB / 0.5402 GB, free: 17.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008738/0.5032, allocations: 437.9 kB / 0.5406 GB, free: 17.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009161/0.5124, allocations: 6.375 MB / 0.5468 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.658e-05/0.5124, allocations: 32.77 kB / 0.5469 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.5124, allocations: 7.938 kB / 0.5469 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.5124, allocations: 20.69 kB / 0.5469 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/0.5248, allocations: 10.08 MB / 0.5567 GB, free: 1.652 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.5248, allocations: 12 kB / 0.5567 GB, free: 1.641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002275/0.5271, allocations: 0.7314 MB / 0.5575 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00756/0.5346, allocations: 2.392 MB / 0.5598 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002003/0.5348, allocations: 119.9 kB / 0.5599 GB, free: 14.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008026/0.5428, allocations: 8.601 MB / 0.5683 GB, free: 5.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005114/0.548, allocations: 4.82 MB / 0.573 GB, free: 0.6641 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007896/0.5559, allocations: 4.466 MB / 0.5774 GB, free: 12.14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003558/0.5562, allocations: 290 kB / 0.5777 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002989/0.5565, allocations: 51.94 kB / 0.5777 GB, free: 11.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007931/0.5573, allocations: 74.62 kB / 0.5778 GB, free: 11.74 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003998/0.5577, allocations: 252.2 kB / 0.578 GB, free: 11.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/0.558, allocations: 204.5 kB / 0.5782 GB, free: 11.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001075/0.559, allocations: 1.255 MB / 0.5794 GB, free: 10.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-08/0.559, allocations: 0 / 0.5794 GB, free: 10.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004396/0.5634, allocations: 1.531 MB / 0.5809 GB, free: 8.621 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 7 ($STATESET1.x,O2_gas.logn,H2_gas.logn,reaction.rr,anode.temperature,cathode.temperature,liquidWater.logm) * Number of discrete variables: 5 ($cse15.data.phase,$cse15.SelfClustering,$cse16.data.phase,$cse16.SelfClustering,reaction.processDefinition.data.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,4,88.9%), (1,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(6,22), (5,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008697/0.5643, allocations: 0.5497 MB / 0.5815 GB, free: 8.188 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006763/0.5711, allocations: 3.675 MB / 0.5851 GB, free: 4.598 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.5711, allocations: 0 / 0.5851 GB, free: 4.598 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003179/0.5742, allocations: 2.012 MB / 0.587 GB, free: 2.625 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.5764, allocations: 0.7197 MB / 0.5877 GB, free: 1.953 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/0.5903, allocations: 9.271 MB / 0.5968 GB, free: 8.652 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/0.5915, allocations: 1.175 MB / 0.5979 GB, free: 7.453 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002528/0.5941, allocations: 0.8101 MB / 0.5987 GB, free: 6.746 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002802/0.5969, allocations: 0.8532 MB / 0.5996 GB, free: 5.898 MB / 458.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5969, allocations: 1.859 kB / 0.5996 GB, free: 5.898 MB / 458.7 MB Notification: Performance of Templates: time 0.2475/0.8444, allocations: 111.6 MB / 0.7085 GB, free: 58.02 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Examples.WaterElectrolysis.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Examples.WaterElectrolysis.pipe ; mkfifo Chemical_master_Chemical.Examples.WaterElectrolysis.pipe ; head -c 1048576 < Chemical_master_Chemical.Examples.WaterElectrolysis.pipe >> ../files/Chemical_master_Chemical.Examples.WaterElectrolysis.sim & ./Chemical_master_Chemical.Examples.WaterElectrolysis -abortSlowSimulation -alarm=240 -lv LOG_STATS > Chemical_master_Chemical.Examples.WaterElectrolysis.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 5.6405515521764755]