Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001482/0.001482, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001436/0.001436, allocations: 210.9 kB / 22.99 MB, free: 4.984 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.434/1.434, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.132/0.132, allocations: 23.91 MB / 337.1 MB, free: 10.93 MB / 270.1 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.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_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.002034/0.002034, allocations: 67.91 kB / 472.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3359, allocations: 59.87 MB / 0.5198 GB, free: 9.773 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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/Obsolete.mo:14335:7-14335: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.07627/0.4122, allocations: 29.12 MB / 0.5483 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02869/0.4409, allocations: 19.46 MB / 0.5673 GB, free: 8.984 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002386/0.4433, allocations: 27.81 kB / 0.5673 GB, free: 8.957 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001944/0.4452, allocations: 0.5289 MB / 0.5678 GB, free: 8.555 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004743/0.4499, allocations: 1.32 MB / 0.5691 GB, free: 7.316 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01008/0.46, allocations: 3.34 MB / 0.5724 GB, free: 3.957 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003914/0.4639, allocations: 2.391 MB / 0.5747 GB, free: 1.551 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001724/0.4657, allocations: 1.278 MB / 0.5759 GB, free: 232 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001322/0.467, allocations: 1.056 MB / 0.577 GB, free: 15.16 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001596/0.4686, allocations: 1.234 MB / 0.5782 GB, free: 13.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003129/0.4689, allocations: 236 kB / 0.5784 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007296/0.4762, allocations: 2.281 MB / 0.5806 GB, free: 11.41 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007142/0.4769, allocations: 0.5375 MB / 0.5812 GB, free: 10.88 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00131/0.4782, allocations: 0.9531 MB / 0.5821 GB, free: 9.918 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01199/0.4902, allocations: 5.019 MB / 0.587 GB, free: 4.879 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.4902, allocations: 0 / 0.587 GB, free: 4.879 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4902, allocations: 4 kB / 0.587 GB, free: 4.875 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.786e-05/0.4902, allocations: 0 / 0.587 GB, free: 4.875 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.006138/0.4964, allocations: 2.647 MB / 0.5896 GB, free: 2.184 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.4964, allocations: 12.03 kB / 0.5896 GB, free: 2.172 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002102/0.4985, allocations: 0.5103 MB / 0.5901 GB, free: 1.66 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00224/0.5008, allocations: 1.141 MB / 0.5912 GB, free: 496 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002257/0.501, allocations: 254.9 kB / 0.5915 GB, free: 216 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003181/0.5013, allocations: 192 kB / 0.5916 GB, free: 24 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004503/0.5058, allocations: 2.715 MB / 0.5943 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.937e-05/0.5059, allocations: 0 / 0.5943 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001999/0.5061, allocations: 80 kB / 0.5944 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.553e-05/0.5061, allocations: 47.98 kB / 0.5944 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00522/0.5113, allocations: 3.314 MB / 0.5976 GB, free: 9.793 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.0129/0.5242, allocations: 7.293 MB / 0.6048 GB, free: 2.348 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001991/0.5262, allocations: 1.105 MB / 0.6058 GB, free: 1.219 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009779/0.5272, allocations: 0.595 MB / 0.6064 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007936/0.5351, allocations: 3.387 MB / 0.6097 GB, free: 13.19 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.5352, allocations: 39.22 kB / 0.6098 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009051/0.5361, allocations: 183 kB / 0.6099 GB, free: 12.96 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.487e-06/0.5361, allocations: 0 / 0.6099 GB, free: 12.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02995/0.566, allocations: 6.917 MB / 0.6167 GB, free: 5.992 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/0.5661, allocations: 115.8 kB / 0.6168 GB, free: 5.855 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00243/0.5685, allocations: 1.827 MB / 0.6186 GB, free: 4.016 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001471/0.5687, allocations: 45.7 kB / 0.6186 GB, free: 3.965 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007793/0.5695, allocations: 1.053 MB / 0.6197 GB, free: 2.898 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004127/0.5699, allocations: 432.4 kB / 0.6201 GB, free: 2.473 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006456/0.5705, allocations: 423.3 kB / 0.6205 GB, free: 2.051 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.5707, allocations: 305.2 kB / 0.6208 GB, free: 1.75 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001439/0.5721, allocations: 0.8785 MB / 0.6216 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002051/0.5742, allocations: 1.608 MB / 0.6232 GB, free: 14.91 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003397/0.5776, allocations: 2.348 MB / 0.6255 GB, free: 12.23 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.706e-05/0.5776, allocations: 8 kB / 0.6255 GB, free: 12.22 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008873/0.5865, allocations: 3.327 MB / 0.6288 GB, free: 8.871 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.575e-05/0.5865, allocations: 16 kB / 0.6288 GB, free: 8.855 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.934e-05/0.5865, allocations: 24 kB / 0.6288 GB, free: 8.832 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00526/0.5918, allocations: 1.031 MB / 0.6298 GB, free: 7.785 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/0.5934, allocations: 439.3 kB / 0.6302 GB, free: 7.355 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.6038, allocations: 7.041 MB / 0.6371 GB, free: 15.97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.6056, allocations: 95.73 kB / 0.6372 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002335/0.6058, allocations: 124.1 kB / 0.6373 GB, free: 15.76 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.000824/0.6066, allocations: 409 kB / 0.6377 GB, free: 15.35 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000379/0.607, allocations: 143.1 kB / 0.6378 GB, free: 15.21 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007131/0.6141, allocations: 2.178 MB / 0.64 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/0.6142, allocations: 12 kB / 0.64 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.6142, allocations: 4 kB / 0.64 GB, free: 12.99 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.6142, allocations: 7.969 kB / 0.64 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01043/0.6246, allocations: 3.504 MB / 0.6434 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/0.6246, allocations: 4 kB / 0.6434 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008305/0.6255, allocations: 171.8 kB / 0.6436 GB, free: 9.242 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004842/0.6303, allocations: 0.9287 MB / 0.6445 GB, free: 8.297 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001588/0.6305, allocations: 39.97 kB / 0.6445 GB, free: 8.258 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008815/0.6393, allocations: 6.355 MB / 0.6507 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/0.6393, allocations: 3.938 kB / 0.6507 GB, free: 1.574 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008265/0.6475, allocations: 2.887 MB / 0.6535 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005022/0.648, allocations: 131.1 kB / 0.6537 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002259/0.6483, allocations: 27.98 kB / 0.6537 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.6493, allocations: 28 kB / 0.6537 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003501/0.6496, allocations: 124.6 kB / 0.6538 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.6498, allocations: 51.97 kB / 0.6539 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001679/0.6515, allocations: 1.248 MB / 0.6551 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.6515, allocations: 0 / 0.6551 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003338/0.6548, allocations: 0.9703 MB / 0.6561 GB, free: 12.05 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.002132/0.6569, allocations: 1.016 MB / 0.657 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00511/0.662, allocations: 2.355 MB / 0.6593 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.662, allocations: 0.5 kB / 0.6593 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002267/0.6643, allocations: 1.106 MB / 0.6604 GB, free: 7.492 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/0.6658, allocations: 229.2 kB / 0.6606 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005985/0.6717, allocations: 3.206 MB / 0.6638 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007952/0.6725, allocations: 0.7371 MB / 0.6645 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001135/0.6737, allocations: 330.9 kB / 0.6648 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004014/0.6741, allocations: 171.3 kB / 0.665 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of SimCode: time 1.082e-06/0.6741, allocations: 0 / 0.665 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of Templates: time 0.05894/0.733, allocations: 38.84 MB / 0.7029 GB, free: 12.05 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & ./Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.242043777994695] Failed to read output from testmodel.py, exit status != 0: 0.7422540900006425 0.756998784 0.263663953 Calling exit ...