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.001357/0.001357, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001467/0.001467, allocations: 220.6 kB / 23 MB, free: 4.918 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.418/1.418, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.1341/0.1341, allocations: 23.99 MB / 337.2 MB, free: 10.86 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.002109/0.002109, allocations: 67.91 kB / 472.5 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.311, allocations: 59.89 MB / 0.52 GB, free: 9.785 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.07497/0.386, allocations: 29.29 MB / 0.5486 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02915/0.4151, allocations: 19.45 MB / 0.5676 GB, free: 8.742 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002479/0.4176, allocations: 39.75 kB / 0.5676 GB, free: 8.703 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002572/0.4202, allocations: 0.5253 MB / 0.5681 GB, free: 8.305 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004999/0.4252, allocations: 1.311 MB / 0.5694 GB, free: 7.043 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009266/0.4345, allocations: 3.351 MB / 0.5727 GB, free: 3.672 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004038/0.4385, allocations: 2.398 MB / 0.575 GB, free: 1.258 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001971/0.4405, allocations: 1.243 MB / 0.5762 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001478/0.4419, allocations: 1.056 MB / 0.5772 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001641/0.4436, allocations: 1.081 MB / 0.5783 GB, free: 13.82 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003891/0.444, allocations: 232 kB / 0.5785 GB, free: 13.6 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006518/0.4505, allocations: 2.231 MB / 0.5807 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008125/0.4513, allocations: 0.5375 MB / 0.5812 GB, free: 10.82 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001384/0.4527, allocations: 0.957 MB / 0.5822 GB, free: 9.863 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.4629, allocations: 5.011 MB / 0.5871 GB, free: 4.832 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.4629, allocations: 0 / 0.5871 GB, free: 4.832 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4629, allocations: 0 / 0.5871 GB, free: 4.832 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.867e-05/0.4629, allocations: 0 / 0.5871 GB, free: 4.832 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.005536/0.4685, allocations: 2.655 MB / 0.5896 GB, free: 2.133 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.4685, allocations: 8.031 kB / 0.5897 GB, free: 2.125 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002/0.4705, allocations: 0.5181 MB / 0.5902 GB, free: 1.605 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002331/0.4728, allocations: 1.145 MB / 0.5913 GB, free: 436 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002598/0.4731, allocations: 254.9 kB / 0.5915 GB, free: 156 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000338/0.4734, allocations: 192 kB / 0.5917 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004426/0.4779, allocations: 2.715 MB / 0.5944 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.959e-05/0.4779, allocations: 0 / 0.5944 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001918/0.4781, allocations: 76 kB / 0.5944 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-05/0.4781, allocations: 52 kB / 0.5945 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005202/0.4833, allocations: 3.318 MB / 0.5977 GB, free: 9.73 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.01305/0.4964, allocations: 7.282 MB / 0.6048 GB, free: 2.297 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/0.4984, allocations: 1.113 MB / 0.6059 GB, free: 1.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.4994, allocations: 0.5911 MB / 0.6065 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007864/0.5073, allocations: 3.387 MB / 0.6098 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.195e-05/0.5074, allocations: 43.16 kB / 0.6098 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008761/0.5082, allocations: 190.9 kB / 0.61 GB, free: 12.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.717e-06/0.5082, allocations: 0 / 0.61 GB, free: 12.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02717/0.5354, allocations: 6.917 MB / 0.6168 GB, free: 5.93 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.083e-05/0.5355, allocations: 119.9 kB / 0.6169 GB, free: 5.789 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002345/0.5378, allocations: 1.823 MB / 0.6187 GB, free: 3.953 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001285/0.538, allocations: 49.69 kB / 0.6187 GB, free: 3.898 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008245/0.5388, allocations: 1.049 MB / 0.6197 GB, free: 2.836 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004246/0.5392, allocations: 436.4 kB / 0.6202 GB, free: 2.406 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006142/0.5398, allocations: 415.3 kB / 0.6206 GB, free: 1.992 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.54, allocations: 305.1 kB / 0.6208 GB, free: 1.691 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.5414, allocations: 0.8707 MB / 0.6217 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002131/0.5435, allocations: 1.612 MB / 0.6233 GB, free: 14.86 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003379/0.5469, allocations: 2.352 MB / 0.6256 GB, free: 12.17 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/0.5469, allocations: 8 kB / 0.6256 GB, free: 12.16 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008366/0.5553, allocations: 3.32 MB / 0.6288 GB, free: 8.82 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/0.5553, allocations: 12 kB / 0.6288 GB, free: 8.809 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.122e-05/0.5553, allocations: 24 kB / 0.6289 GB, free: 8.785 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004806/0.5601, allocations: 1.041 MB / 0.6299 GB, free: 7.73 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/0.5617, allocations: 435.3 kB / 0.6303 GB, free: 7.305 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/0.5723, allocations: 7.039 MB / 0.6372 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.574, allocations: 95.91 kB / 0.6372 GB, free: 15.83 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002714/0.5743, allocations: 124.1 kB / 0.6374 GB, free: 15.71 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.0008264/0.5751, allocations: 409 kB / 0.6378 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003819/0.5755, allocations: 139.1 kB / 0.6379 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006541/0.5821, allocations: 2.174 MB / 0.64 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.5821, allocations: 12 kB / 0.64 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.5821, allocations: 4 kB / 0.64 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/0.5821, allocations: 15.97 kB / 0.64 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009643/0.5917, allocations: 3.504 MB / 0.6435 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.5918, allocations: 0 / 0.6435 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007377/0.5925, allocations: 179.9 kB / 0.6436 GB, free: 9.184 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004244/0.5967, allocations: 0.9392 MB / 0.6446 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.5969, allocations: 39.97 kB / 0.6446 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008668/0.6055, allocations: 6.341 MB / 0.6508 GB, free: 1.523 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.6055, allocations: 7.969 kB / 0.6508 GB, free: 1.516 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007511/0.6131, allocations: 2.883 MB / 0.6536 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004497/0.6135, allocations: 127.1 kB / 0.6537 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002194/0.6137, allocations: 24 kB / 0.6538 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000857/0.6146, allocations: 35.98 kB / 0.6538 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002933/0.6149, allocations: 116.7 kB / 0.6539 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.615, allocations: 51.97 kB / 0.6539 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001571/0.6166, allocations: 1.252 MB / 0.6552 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.6166, allocations: 0 / 0.6552 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003455/0.62, allocations: 0.9741 MB / 0.6561 GB, free: 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.002026/0.622, allocations: 1.009 MB / 0.6571 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004957/0.627, allocations: 2.358 MB / 0.6594 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.627, allocations: 0 / 0.6594 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002178/0.6292, allocations: 1.108 MB / 0.6605 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.6307, allocations: 227.1 kB / 0.6607 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006187/0.6369, allocations: 3.259 MB / 0.6639 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008447/0.6377, allocations: 0.7253 MB / 0.6646 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006162/0.6383, allocations: 227.3 kB / 0.6648 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of SimCode: time 8.72e-07/0.6383, allocations: 0 / 0.6648 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of Templates: time 0.08157/0.7199, allocations: 65.85 MB / 0.7291 GB, free: 1.074 MB / 0.5606 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 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 11.35281708324328] Failed to read output from testmodel.py, exit status != 0: 0.9080897020176053 0.919665914 0.45404987199999997 Calling exit ...