Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.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.001496/0.001496, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.002216/0.002216, allocations: 217.3 kB / 22.25 MB, free: 5.105 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.475/1.475, allocations: 230.6 MB / 256 MB, free: 7.793 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.1479/0.1479, allocations: 23.88 MB / 336.3 MB, free: 10.93 MB / 270.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: translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") [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.002149/0.002149, allocations: 71.89 kB / 471.6 MB, free: 6.977 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.3751, allocations: 59.87 MB / 0.519 GB, free: 9.824 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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/Obsolete.mo:14337:7-14337: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.Obsolete.Examples.ClimateChange.MethanElectrosynthesis): time 0.08115/0.4562, allocations: 29.19 MB / 0.5475 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03087/0.4871, allocations: 19.46 MB / 0.5665 GB, free: 8.941 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002347/0.4894, allocations: 35.75 kB / 0.5666 GB, free: 8.906 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002672/0.4921, allocations: 0.5325 MB / 0.5671 GB, free: 8.5 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006735/0.4988, allocations: 1.32 MB / 0.5684 GB, free: 7.258 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01226/0.5111, allocations: 3.34 MB / 0.5716 GB, free: 3.898 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004424/0.5155, allocations: 2.395 MB / 0.574 GB, free: 1.488 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002369/0.5179, allocations: 1.278 MB / 0.5752 GB, free: 168 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002062/0.5199, allocations: 1.056 MB / 0.5763 GB, free: 15.1 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002604/0.5225, allocations: 1.226 MB / 0.5775 GB, free: 13.87 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007974/0.5233, allocations: 232 kB / 0.5777 GB, free: 13.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008207/0.5316, allocations: 2.285 MB / 0.5799 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00119/0.5327, allocations: 0.5336 MB / 0.5804 GB, free: 10.82 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002584/0.5353, allocations: 0.9531 MB / 0.5814 GB, free: 9.867 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01422/0.5495, allocations: 5.015 MB / 0.5863 GB, free: 4.832 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.5496, allocations: 0 / 0.5863 GB, free: 4.832 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5496, allocations: 4 kB / 0.5863 GB, free: 4.828 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.56e-05/0.5496, allocations: 0 / 0.5863 GB, free: 4.828 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.005516/0.5551, allocations: 2.663 MB / 0.5889 GB, free: 2.121 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.5552, allocations: 8.031 kB / 0.5889 GB, free: 2.113 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002067/0.5572, allocations: 0.5027 MB / 0.5894 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002291/0.5595, allocations: 1.141 MB / 0.5905 GB, free: 444 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002375/0.5598, allocations: 262.9 kB / 0.5907 GB, free: 156 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003344/0.5601, allocations: 184 kB / 0.5909 GB, free: 15.97 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004419/0.5645, allocations: 2.712 MB / 0.5935 GB, free: 13.19 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.987e-05/0.5646, allocations: 0 / 0.5935 GB, free: 13.19 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001994/0.5648, allocations: 76 kB / 0.5936 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.467e-05/0.5648, allocations: 48 kB / 0.5937 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005227/0.57, allocations: 3.314 MB / 0.5969 GB, free: 9.75 MB / 446.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.01411/0.5841, allocations: 7.301 MB / 0.604 GB, free: 2.297 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002004/0.5861, allocations: 1.116 MB / 0.6051 GB, free: 1.156 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009934/0.5871, allocations: 0.5911 MB / 0.6057 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008179/0.5953, allocations: 3.38 MB / 0.609 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.05e-05/0.5954, allocations: 51.14 kB / 0.609 GB, free: 13.08 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008752/0.5963, allocations: 190.9 kB / 0.6092 GB, free: 12.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.126e-06/0.5963, allocations: 0 / 0.6092 GB, free: 12.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02816/0.6244, allocations: 6.913 MB / 0.616 GB, free: 5.926 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.955e-05/0.6245, allocations: 115.8 kB / 0.6161 GB, free: 5.789 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002914/0.6274, allocations: 1.827 MB / 0.6179 GB, free: 3.949 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002225/0.6276, allocations: 45.7 kB / 0.6179 GB, free: 3.898 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009808/0.6286, allocations: 1.053 MB / 0.6189 GB, free: 2.832 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000605/0.6292, allocations: 436.4 kB / 0.6194 GB, free: 2.402 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009102/0.6301, allocations: 419.3 kB / 0.6198 GB, free: 1.984 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.6303, allocations: 305.1 kB / 0.6201 GB, free: 1.684 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/0.632, allocations: 0.8707 MB / 0.6209 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002654/0.6347, allocations: 1.616 MB / 0.6225 GB, free: 14.85 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004139/0.6388, allocations: 2.348 MB / 0.6248 GB, free: 12.16 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-05/0.6388, allocations: 8 kB / 0.6248 GB, free: 12.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.009361/0.6482, allocations: 3.319 MB / 0.628 GB, free: 8.812 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.826e-05/0.6482, allocations: 12.47 kB / 0.628 GB, free: 8.801 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.192e-05/0.6483, allocations: 24 kB / 0.6281 GB, free: 8.777 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004932/0.6532, allocations: 1.038 MB / 0.6291 GB, free: 7.723 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001706/0.6549, allocations: 435.3 kB / 0.6295 GB, free: 7.297 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01141/0.6663, allocations: 7.049 MB / 0.6364 GB, free: 15.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/0.6683, allocations: 95.91 kB / 0.6365 GB, free: 15.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004562/0.6688, allocations: 120 kB / 0.6366 GB, free: 15.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001231/0.67, allocations: 401.1 kB / 0.637 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000652/0.6706, allocations: 139.1 kB / 0.6371 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0072/0.6778, allocations: 2.179 MB / 0.6392 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/0.6779, allocations: 12 kB / 0.6392 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.6779, allocations: 4 kB / 0.6392 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.277e-05/0.6779, allocations: 12.08 kB / 0.6392 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.6887, allocations: 3.515 MB / 0.6427 GB, free: 9.348 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/0.6887, allocations: 0 / 0.6427 GB, free: 9.348 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008126/0.6895, allocations: 175.8 kB / 0.6428 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004512/0.6941, allocations: 0.9326 MB / 0.6438 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001419/0.6942, allocations: 39.97 kB / 0.6438 GB, free: 8.188 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009085/0.7033, allocations: 6.337 MB / 0.65 GB, free: 1.527 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.7033, allocations: 16.09 kB / 0.65 GB, free: 1.512 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007776/0.7111, allocations: 2.891 MB / 0.6528 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004448/0.7115, allocations: 119.2 kB / 0.6529 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003377/0.7118, allocations: 31.98 kB / 0.653 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.7129, allocations: 27.98 kB / 0.653 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003068/0.7132, allocations: 116.7 kB / 0.6531 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.7133, allocations: 55.91 kB / 0.6532 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001822/0.7151, allocations: 1.252 MB / 0.6544 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.7151, allocations: 0 / 0.6544 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003686/0.7188, allocations: 0.9741 MB / 0.6553 GB, free: 11.99 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002933/0.7217, allocations: 1.022 MB / 0.6563 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005901/0.7276, allocations: 2.355 MB / 0.6586 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/0.7277, allocations: 0 / 0.6586 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002453/0.7301, allocations: 1.099 MB / 0.6597 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/0.7317, allocations: 228 kB / 0.6599 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007314/0.739, allocations: 3.211 MB / 0.6631 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/0.7404, allocations: 0.737 MB / 0.6638 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001275/0.7417, allocations: 323 kB / 0.6641 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004862/0.7422, allocations: 175.3 kB / 0.6643 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of SimCode: time 8.71e-07/0.7422, allocations: 0 / 0.6643 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of Templates: time 0.06498/0.8071, allocations: 38.83 MB / 0.7022 GB, free: 12 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & ./Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.781004884280264] Failed to read output from testmodel.py, exit status != 0: 0.8174231508746743 0.832768376 0.279704707 Calling exit ...