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.001328/0.001328, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001486/0.001486, allocations: 209.5 kB / 22.99 MB, free: 4.957 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.401/1.401, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1442/0.1442, allocations: 23.88 MB / 337.1 MB, free: 11.06 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.002021/0.002021, allocations: 72.12 kB / 472.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.333, allocations: 59.86 MB / 0.5198 GB, free: 9.777 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.07365/0.4066, allocations: 29.12 MB / 0.5482 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0287/0.4353, allocations: 19.45 MB / 0.5672 GB, free: 9.066 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001798/0.4371, allocations: 31.75 kB / 0.5672 GB, free: 9.035 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001621/0.4387, allocations: 0.5331 MB / 0.5677 GB, free: 8.629 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004079/0.4428, allocations: 1.316 MB / 0.569 GB, free: 7.387 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009167/0.452, allocations: 3.344 MB / 0.5723 GB, free: 4.023 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003505/0.4555, allocations: 2.399 MB / 0.5746 GB, free: 1.609 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001629/0.4571, allocations: 1.267 MB / 0.5759 GB, free: 304 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.4583, allocations: 1.06 MB / 0.5769 GB, free: 15.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001521/0.4598, allocations: 1.23 MB / 0.5781 GB, free: 14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003181/0.4602, allocations: 232 kB / 0.5783 GB, free: 13.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005954/0.4661, allocations: 2.281 MB / 0.5806 GB, free: 11.49 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005584/0.4667, allocations: 0.5413 MB / 0.5811 GB, free: 10.95 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001042/0.4677, allocations: 0.9531 MB / 0.582 GB, free: 9.988 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009769/0.4775, allocations: 5.019 MB / 0.5869 GB, free: 4.949 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4775, allocations: 0 / 0.5869 GB, free: 4.949 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4775, allocations: 0 / 0.5869 GB, free: 4.949 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.018e-05/0.4775, allocations: 0 / 0.5869 GB, free: 4.949 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.005243/0.4828, allocations: 2.655 MB / 0.5895 GB, free: 2.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.4828, allocations: 8.031 kB / 0.5895 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002047/0.4849, allocations: 0.5106 MB / 0.59 GB, free: 1.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002177/0.487, allocations: 1.133 MB / 0.5911 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002468/0.4873, allocations: 258.8 kB / 0.5914 GB, free: 292 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003315/0.4876, allocations: 196 kB / 0.5916 GB, free: 96 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004437/0.4921, allocations: 2.712 MB / 0.5942 GB, free: 13.31 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.129e-05/0.4921, allocations: 3.938 kB / 0.5942 GB, free: 13.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001947/0.4923, allocations: 76 kB / 0.5943 GB, free: 13.23 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.365e-05/0.4923, allocations: 55.97 kB / 0.5943 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004934/0.4973, allocations: 3.314 MB / 0.5976 GB, free: 9.859 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.01316/0.5104, allocations: 7.285 MB / 0.6047 GB, free: 2.422 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001988/0.5124, allocations: 1.108 MB / 0.6058 GB, free: 1.289 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009727/0.5134, allocations: 0.595 MB / 0.6064 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007777/0.5212, allocations: 3.38 MB / 0.6097 GB, free: 13.27 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.5212, allocations: 47.22 kB / 0.6097 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008785/0.5221, allocations: 187 kB / 0.6099 GB, free: 13.03 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 2.555e-06/0.5221, allocations: 0 / 0.6099 GB, free: 13.03 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02914/0.5512, allocations: 6.913 MB / 0.6166 GB, free: 6.062 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/0.5513, allocations: 123.8 kB / 0.6167 GB, free: 5.918 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00238/0.5537, allocations: 1.831 MB / 0.6185 GB, free: 4.074 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001523/0.5538, allocations: 41.7 kB / 0.6186 GB, free: 4.027 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008024/0.5546, allocations: 1.049 MB / 0.6196 GB, free: 2.965 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004381/0.5551, allocations: 444.3 kB / 0.62 GB, free: 2.527 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006832/0.5558, allocations: 415.3 kB / 0.6204 GB, free: 2.113 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.5559, allocations: 305.1 kB / 0.6207 GB, free: 1.812 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.5574, allocations: 0.8786 MB / 0.6216 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00206/0.5594, allocations: 1.608 MB / 0.6231 GB, free: 14.98 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003199/0.5626, allocations: 2.352 MB / 0.6254 GB, free: 12.29 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.077e-05/0.5627, allocations: 4 kB / 0.6254 GB, free: 12.29 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008534/0.5712, allocations: 3.323 MB / 0.6287 GB, free: 8.938 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.116e-05/0.5712, allocations: 16 kB / 0.6287 GB, free: 8.922 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.143e-05/0.5713, allocations: 24 kB / 0.6287 GB, free: 8.898 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005158/0.5764, allocations: 1.027 MB / 0.6297 GB, free: 7.855 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.5781, allocations: 443.3 kB / 0.6301 GB, free: 7.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.5888, allocations: 7.037 MB / 0.637 GB, free: 48 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001935/0.5908, allocations: 96.03 kB / 0.6371 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000237/0.591, allocations: 120.1 kB / 0.6372 GB, free: 15.83 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.000803/0.5918, allocations: 409.1 kB / 0.6376 GB, free: 15.42 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003728/0.5922, allocations: 143 kB / 0.6377 GB, free: 15.28 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007195/0.5994, allocations: 2.182 MB / 0.6399 GB, free: 13.08 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.538e-05/0.5994, allocations: 12 kB / 0.6399 GB, free: 13.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.5994, allocations: 4 kB / 0.6399 GB, free: 13.06 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.5994, allocations: 7.969 kB / 0.6399 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/0.6095, allocations: 3.511 MB / 0.6433 GB, free: 9.477 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.064e-06/0.6096, allocations: 4 kB / 0.6433 GB, free: 9.473 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008034/0.6104, allocations: 171.8 kB / 0.6435 GB, free: 9.305 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004824/0.6152, allocations: 0.9247 MB / 0.6444 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001442/0.6153, allocations: 51.95 kB / 0.6445 GB, free: 8.312 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008968/0.6243, allocations: 6.338 MB / 0.6506 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.6243, allocations: 4.031 kB / 0.6506 GB, free: 1.645 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007946/0.6322, allocations: 2.887 MB / 0.6535 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004412/0.6327, allocations: 135 kB / 0.6536 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002202/0.6329, allocations: 24 kB / 0.6536 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009329/0.6338, allocations: 35.92 kB / 0.6537 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003198/0.6342, allocations: 116.8 kB / 0.6538 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/0.6343, allocations: 47.97 kB / 0.6538 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001488/0.6358, allocations: 1.252 MB / 0.655 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.1e-08/0.6358, allocations: 0 / 0.655 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003237/0.639, allocations: 0.9703 MB / 0.656 GB, free: 12.12 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.002137/0.6411, allocations: 1.021 MB / 0.657 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004992/0.6461, allocations: 2.355 MB / 0.6593 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.6461, allocations: 0 / 0.6593 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002327/0.6485, allocations: 1.09 MB / 0.6603 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001582/0.65, allocations: 242.4 kB / 0.6606 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006512/0.6566, allocations: 3.222 MB / 0.6637 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009636/0.6575, allocations: 0.7332 MB / 0.6644 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001266/0.6588, allocations: 319.3 kB / 0.6647 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004242/0.6592, allocations: 175.3 kB / 0.6649 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of SimCode: time 1.914e-06/0.6592, allocations: 0 / 0.6649 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of Templates: time 0.05998/0.7192, allocations: 38.83 MB / 0.7028 GB, free: 12.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 -s cvode -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.204104407996056] Failed to read output from testmodel.py, exit status != 0: 0.7287113240017788 0.743136499 0.26248411 Calling exit ...