Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 105.5 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 186.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09403/0.09403, allocations: 15.54 MB / 318.2 MB, free: 10.22 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 71.88 kB / 445.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1265, allocations: 56.54 MB / 0.4902 GB, free: 4.395 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.ClimateChange.MethanElectrosynthesis): time 0.6323/0.7588, allocations: 29.88 MB / 0.5194 GB, free: 5.117 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0283/0.7871, allocations: 22.1 MB / 0.541 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002194/0.7893, allocations: 24.22 kB / 0.541 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002479/0.7917, allocations: 0.5817 MB / 0.5416 GB, free: 9.914 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00717/0.7989, allocations: 1.351 MB / 0.5429 GB, free: 9.066 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01509/0.814, allocations: 3.304 MB / 0.5461 GB, free: 7.113 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006118/0.8201, allocations: 2.403 MB / 0.5484 GB, free: 5.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00265/0.8228, allocations: 1.294 MB / 0.5497 GB, free: 5.273 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002528/0.8253, allocations: 1.033 MB / 0.5507 GB, free: 4.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003123/0.8284, allocations: 1.227 MB / 0.5519 GB, free: 3.926 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000553/0.829, allocations: 234.8 kB / 0.5521 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01251/0.8415, allocations: 2.371 MB / 0.5545 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001339/0.8428, allocations: 0.5384 MB / 0.555 GB, free: 2.629 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002252/0.8451, allocations: 1.139 MB / 0.5561 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01925/0.8643, allocations: 4.876 MB / 0.5609 GB, free: 14.75 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.8643, allocations: 3.656 kB / 0.5609 GB, free: 14.75 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.8643, allocations: 0 / 0.5609 GB, free: 14.75 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.285e-05/0.8644, allocations: 0 / 0.5609 GB, free: 14.75 MB / 414.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.008394/0.8728, allocations: 2.735 MB / 0.5635 GB, free: 12.82 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.643e-05/0.8729, allocations: 10.69 kB / 0.5635 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003033/0.8759, allocations: 0.5073 MB / 0.564 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003096/0.879, allocations: 1.191 MB / 0.5652 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002406/0.8792, allocations: 202 kB / 0.5654 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004047/0.8796, allocations: 191.8 kB / 0.5656 GB, free: 11.44 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005839/0.8855, allocations: 2.658 MB / 0.5682 GB, free: 9.836 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.997e-05/0.8855, allocations: 7.594 kB / 0.5682 GB, free: 9.832 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002766/0.8858, allocations: 74.28 kB / 0.5682 GB, free: 9.773 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.927e-05/0.8859, allocations: 50.31 kB / 0.5683 GB, free: 9.773 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007586/0.8935, allocations: 3.291 MB / 0.5715 GB, free: 7.363 MB / 414.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.02373/0.9172, allocations: 8.517 MB / 0.5798 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003451/0.9206, allocations: 1.264 MB / 0.5811 GB, free: 13.23 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001786/0.9224, allocations: 0.5989 MB / 0.5816 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01111/0.9335, allocations: 5.571 MB / 0.5871 GB, free: 6.531 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.9336, allocations: 47.16 kB / 0.5871 GB, free: 6.477 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001098/0.9347, allocations: 206.8 kB / 0.5873 GB, free: 6.273 MB / 430.1 MB Notification: Performance of pre-optimization done (n=81): time 6.612e-06/0.9347, allocations: 0 / 0.5873 GB, free: 6.273 MB / 430.1 MB Notification: Performance of matching and sorting (n=115): time 0.02955/0.9642, allocations: 7.222 MB / 0.5944 GB, free: 14.92 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.137e-05/0.9643, allocations: 115.8 kB / 0.5945 GB, free: 14.78 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002853/0.9672, allocations: 1.857 MB / 0.5963 GB, free: 12.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001811/0.9674, allocations: 45.7 kB / 0.5963 GB, free: 12.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009173/0.9683, allocations: 1.041 MB / 0.5974 GB, free: 11.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005048/0.9688, allocations: 436.4 kB / 0.5978 GB, free: 11.38 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00077/0.9696, allocations: 415.4 kB / 0.5982 GB, free: 10.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.9697, allocations: 309.1 kB / 0.5985 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001563/0.9713, allocations: 0.8551 MB / 0.5993 GB, free: 9.797 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002321/0.9736, allocations: 1.585 MB / 0.6009 GB, free: 7.867 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003735/0.9773, allocations: 2.329 MB / 0.6031 GB, free: 5.203 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.431e-05/0.9774, allocations: 12 kB / 0.6031 GB, free: 5.191 MB / 446.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008841/0.9862, allocations: 3.3 MB / 0.6064 GB, free: 1.867 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.559e-05/0.9862, allocations: 12 kB / 0.6064 GB, free: 1.855 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-05/0.9863, allocations: 24 kB / 0.6064 GB, free: 1.832 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004997/0.9913, allocations: 1.038 MB / 0.6074 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/0.993, allocations: 431.3 kB / 0.6078 GB, free: 368 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01157/1.005, allocations: 7.484 MB / 0.6151 GB, free: 8.418 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002175/1.007, allocations: 99.89 kB / 0.6152 GB, free: 8.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/1.007, allocations: 123.9 kB / 0.6153 GB, free: 8.199 MB / 462.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.0009465/1.008, allocations: 412.9 kB / 0.6157 GB, free: 7.785 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004829/1.009, allocations: 151 kB / 0.6159 GB, free: 7.637 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00678/1.015, allocations: 2.168 MB / 0.618 GB, free: 5.438 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/1.015, allocations: 15.94 kB / 0.618 GB, free: 5.422 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/1.015, allocations: 8 kB / 0.618 GB, free: 5.414 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.017e-05/1.015, allocations: 11.97 kB / 0.618 GB, free: 5.402 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/1.025, allocations: 3.917 MB / 0.6219 GB, free: 1.395 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/1.025, allocations: 4 kB / 0.6219 GB, free: 1.391 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007773/1.026, allocations: 171.8 kB / 0.622 GB, free: 1.223 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00437/1.031, allocations: 0.921 MB / 0.6229 GB, free: 292 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001446/1.031, allocations: 47.95 kB / 0.623 GB, free: 244 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009444/1.04, allocations: 6.77 MB / 0.6296 GB, free: 9.023 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.278e-05/1.04, allocations: 7.938 kB / 0.6296 GB, free: 9.016 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007827/1.048, allocations: 2.903 MB / 0.6324 GB, free: 6.066 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004895/1.048, allocations: 220.1 kB / 0.6326 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002344/1.049, allocations: 28.12 kB / 0.6327 GB, free: 5.805 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008979/1.05, allocations: 35.98 kB / 0.6327 GB, free: 5.77 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003432/1.05, allocations: 116.7 kB / 0.6328 GB, free: 5.652 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002158/1.05, allocations: 51.97 kB / 0.6329 GB, free: 5.602 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001824/1.052, allocations: 1.298 MB / 0.6341 GB, free: 4.301 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.052, allocations: 0 / 0.6341 GB, free: 4.301 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003437/1.055, allocations: 0.9742 MB / 0.6351 GB, free: 3.324 MB / 478.1 MB 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.001886/1.057, allocations: 0.9895 MB / 0.636 GB, free: 2.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005108/1.062, allocations: 2.415 MB / 0.6384 GB, free: 15.85 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/1.062, allocations: 4.25 kB / 0.6384 GB, free: 15.85 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002252/1.065, allocations: 1.173 MB / 0.6396 GB, free: 14.61 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/1.066, allocations: 254 kB / 0.6398 GB, free: 14.37 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006178/1.072, allocations: 3.218 MB / 0.6429 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00105/1.073, allocations: 1.306 MB / 0.6442 GB, free: 9.762 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001077/1.075, allocations: 331.7 kB / 0.6445 GB, free: 9.434 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004441/1.075, allocations: 187.3 kB / 0.6447 GB, free: 9.25 MB / 494.1 MB Notification: Performance of SimCode: time 8.62e-07/1.075, allocations: 0 / 0.6447 GB, free: 9.25 MB / 494.1 MB Notification: Performance of Templates: time 0.06021/1.135, allocations: 36.7 MB / 0.6805 GB, free: 4.641 MB / 0.5138 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.makefile [Timeout 660] (rm -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & ./Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.046893309801817]