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.001764/0.001764, allocations: 102.3 kB / 19.7 MB, free: 2.254 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.00145/0.00145, allocations: 217.6 kB / 23.01 MB, free: 4.609 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.8 MB, free: 8.051 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.1366/0.1366, allocations: 23.85 MB / 337 MB, free: 11.26 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.002144/0.002144, allocations: 67.91 kB / 472.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3281/0.3303, allocations: 59.86 MB / 0.5198 GB, free: 9.898 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.04579/0.3761, allocations: 30.27 MB / 0.5494 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03043/0.4065, allocations: 22.2 MB / 0.5711 GB, free: 5.434 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002274/0.4088, allocations: 31.75 kB / 0.5711 GB, free: 5.402 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002345/0.4111, allocations: 0.5794 MB / 0.5716 GB, free: 4.949 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00537/0.4165, allocations: 1.357 MB / 0.573 GB, free: 3.711 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01104/0.4275, allocations: 3.34 MB / 0.5762 GB, free: 360 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004644/0.4322, allocations: 2.399 MB / 0.5786 GB, free: 13.94 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002403/0.4346, allocations: 1.263 MB / 0.5798 GB, free: 12.63 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00202/0.4366, allocations: 1.067 MB / 0.5809 GB, free: 11.56 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002352/0.4389, allocations: 1.222 MB / 0.582 GB, free: 10.33 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007524/0.4397, allocations: 236 kB / 0.5823 GB, free: 10.1 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008036/0.4477, allocations: 2.367 MB / 0.5846 GB, free: 7.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009069/0.4486, allocations: 0.5413 MB / 0.5851 GB, free: 7.188 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002041/0.4507, allocations: 1.136 MB / 0.5862 GB, free: 6.047 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01283/0.4635, allocations: 5.023 MB / 0.5911 GB, free: 1.004 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.4635, allocations: 0 / 0.5911 GB, free: 1.004 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4635, allocations: 4 kB / 0.5911 GB, free: 1 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001198/0.4636, allocations: 3.938 kB / 0.5911 GB, free: 0.9961 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.00664/0.4703, allocations: 2.663 MB / 0.5937 GB, free: 14.29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.4703, allocations: 8.031 kB / 0.5937 GB, free: 14.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002267/0.4726, allocations: 0.5067 MB / 0.5942 GB, free: 13.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002551/0.4751, allocations: 1.141 MB / 0.5953 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002485/0.4754, allocations: 254.9 kB / 0.5956 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004749/0.4759, allocations: 195.9 kB / 0.5958 GB, free: 12.13 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00498/0.4808, allocations: 2.683 MB / 0.5984 GB, free: 9.383 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.4e-05/0.4809, allocations: 11.92 kB / 0.5984 GB, free: 9.371 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002104/0.4811, allocations: 76 kB / 0.5985 GB, free: 9.297 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.347e-05/0.4812, allocations: 52 kB / 0.5985 GB, free: 9.246 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0054/0.4866, allocations: 3.338 MB / 0.6018 GB, free: 5.902 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.01488/0.5014, allocations: 8.487 MB / 0.6101 GB, free: 13.13 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.5035, allocations: 1.124 MB / 0.6112 GB, free: 11.99 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.5045, allocations: 0.5907 MB / 0.6118 GB, free: 11.39 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008461/0.513, allocations: 3.588 MB / 0.6153 GB, free: 7.773 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.367e-05/0.513, allocations: 51.16 kB / 0.6153 GB, free: 7.715 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009939/0.514, allocations: 198.8 kB / 0.6155 GB, free: 7.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 5.751e-06/0.514, allocations: 0 / 0.6155 GB, free: 7.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02963/0.5436, allocations: 6.921 MB / 0.6223 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.231e-05/0.5437, allocations: 123.8 kB / 0.6224 GB, free: 404 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002578/0.5463, allocations: 1.892 MB / 0.6242 GB, free: 14.48 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001375/0.5464, allocations: 49.77 kB / 0.6243 GB, free: 14.43 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008271/0.5473, allocations: 1.037 MB / 0.6253 GB, free: 13.38 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000447/0.5477, allocations: 432.4 kB / 0.6257 GB, free: 12.95 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007034/0.5484, allocations: 419.3 kB / 0.6261 GB, free: 12.54 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.5485, allocations: 301.1 kB / 0.6264 GB, free: 12.24 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001465/0.55, allocations: 0.8785 MB / 0.6272 GB, free: 11.36 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0021/0.5521, allocations: 1.596 MB / 0.6288 GB, free: 9.414 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003566/0.5557, allocations: 2.356 MB / 0.6311 GB, free: 6.723 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.999e-05/0.5557, allocations: 8 kB / 0.6311 GB, free: 6.715 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008975/0.5647, allocations: 3.323 MB / 0.6343 GB, free: 3.367 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.057e-05/0.5647, allocations: 16 kB / 0.6344 GB, free: 3.352 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.828e-05/0.5647, allocations: 24 kB / 0.6344 GB, free: 3.328 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005099/0.5698, allocations: 1.052 MB / 0.6354 GB, free: 2.262 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/0.5715, allocations: 431.3 kB / 0.6358 GB, free: 1.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01107/0.5826, allocations: 7.166 MB / 0.6428 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/0.5846, allocations: 99.91 kB / 0.6429 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004401/0.585, allocations: 120 kB / 0.643 GB, free: 10.08 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.001007/0.586, allocations: 405 kB / 0.6434 GB, free: 9.676 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005099/0.5865, allocations: 151 kB / 0.6436 GB, free: 9.527 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007273/0.5938, allocations: 2.18 MB / 0.6457 GB, free: 7.32 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/0.5938, allocations: 15.94 kB / 0.6457 GB, free: 7.305 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.5938, allocations: 4 kB / 0.6457 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/0.5938, allocations: 7.969 kB / 0.6457 GB, free: 7.293 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.6045, allocations: 3.9 MB / 0.6495 GB, free: 3.305 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.6045, allocations: 3.938 kB / 0.6495 GB, free: 3.301 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007745/0.6053, allocations: 179.9 kB / 0.6497 GB, free: 3.125 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00456/0.6099, allocations: 0.9286 MB / 0.6506 GB, free: 2.18 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.61, allocations: 43.97 kB / 0.6507 GB, free: 2.137 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009085/0.6191, allocations: 6.461 MB / 0.657 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.6191, allocations: 4.031 kB / 0.657 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008004/0.6271, allocations: 2.9 MB / 0.6598 GB, free: 8.359 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004964/0.6276, allocations: 147 kB / 0.6599 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003854/0.628, allocations: 24 kB / 0.66 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.6291, allocations: 35.92 kB / 0.66 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/0.6294, allocations: 112.7 kB / 0.6601 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/0.6295, allocations: 63.91 kB / 0.6602 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001861/0.6314, allocations: 1.322 MB / 0.6615 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6314, allocations: 0 / 0.6615 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003577/0.635, allocations: 0.9703 MB / 0.6624 GB, free: 5.688 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.00241/0.6374, allocations: 1.019 MB / 0.6634 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005228/0.6426, allocations: 2.354 MB / 0.6657 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/0.6426, allocations: 5.938 kB / 0.6657 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002355/0.645, allocations: 1.102 MB / 0.6668 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/0.6468, allocations: 246.8 kB / 0.667 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006846/0.6536, allocations: 3.279 MB / 0.6702 GB, free: 13.54 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00123/0.6548, allocations: 1.303 MB / 0.6715 GB, free: 12.21 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006638/0.6555, allocations: 231.3 kB / 0.6717 GB, free: 11.98 MB / 0.5138 GB Notification: Performance of SimCode: time 9.62e-07/0.6555, allocations: 4 kB / 0.6717 GB, free: 11.98 MB / 0.5138 GB Notification: Performance of Templates: time 0.3144/0.9699, allocations: 65.45 MB / 0.7356 GB, free: 175.7 MB / 0.5606 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 os._exit(0), Time elapsed: 11.51372523396276] Failed to read output from testmodel.py, exit status != 0: 0.9797523480374366 0.992204462 0.525712619 Calling exit ...