Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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) 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) Running command: translateModel(Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 222.9 MB / 239.6 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 109.9 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3578/0.3578, allocations: 36.66 MB / 376.7 MB, free: 41.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 67.91 kB / 446.4 MB, free: 11.81 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1182, allocations: 58.91 MB / 0.4935 GB, free: 0.8438 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Chemical.mo:4671:7-4671: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/Physiolibrary 3.0.0-master/Chemical.mo:4671:7-4671: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(Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis): time 0.2188/0.3371, allocations: 27.56 MB / 0.5204 GB, free: 31.09 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02168/0.3588, allocations: 22 MB / 0.5419 GB, free: 15.19 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003029/0.3619, allocations: 45.22 kB / 0.5419 GB, free: 15.17 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002147/0.364, allocations: 0.5093 MB / 0.5424 GB, free: 14.91 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004669/0.3687, allocations: 1.2 MB / 0.5436 GB, free: 14.17 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009675/0.3784, allocations: 2.879 MB / 0.5464 GB, free: 12.48 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003711/0.3822, allocations: 2.345 MB / 0.5487 GB, free: 11.36 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001851/0.3841, allocations: 1.352 MB / 0.55 GB, free: 10.76 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00174/0.3858, allocations: 0.9691 MB / 0.551 GB, free: 10.39 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00202/0.3879, allocations: 1.171 MB / 0.5521 GB, free: 9.891 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004195/0.3883, allocations: 152.6 kB / 0.5522 GB, free: 9.891 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007564/0.3959, allocations: 2.241 MB / 0.5544 GB, free: 9.332 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006935/0.3966, allocations: 488 kB / 0.5549 GB, free: 9.012 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001442/0.3981, allocations: 1.056 MB / 0.5559 GB, free: 8.039 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009408/0.4075, allocations: 4.663 MB / 0.5605 GB, free: 4.379 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4075, allocations: 0 / 0.5605 GB, free: 4.379 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.4075, allocations: 0 / 0.5605 GB, free: 4.379 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.9e-05/0.4076, allocations: 0 / 0.5605 GB, free: 4.379 MB / 378.7 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.004507/0.4121, allocations: 2.679 MB / 0.5631 GB, free: 1.922 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.4121, allocations: 8.031 kB / 0.5631 GB, free: 1.914 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001755/0.4139, allocations: 0.4996 MB / 0.5636 GB, free: 1.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001778/0.4157, allocations: 1.166 MB / 0.5647 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001496/0.4159, allocations: 206.2 kB / 0.5649 GB, free: 304 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002414/0.4161, allocations: 196.7 kB / 0.5651 GB, free: 108 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004352/0.4205, allocations: 2.648 MB / 0.5677 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.339e-05/0.4205, allocations: 0 / 0.5677 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001877/0.4207, allocations: 76 kB / 0.5678 GB, free: 13.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.469e-05/0.4208, allocations: 48 kB / 0.5678 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004811/0.4256, allocations: 3.291 MB / 0.571 GB, free: 10.93 MB / 394.7 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.0126/0.4382, allocations: 8.495 MB / 0.5793 GB, free: 2.367 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001999/0.4402, allocations: 1.342 MB / 0.5806 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009787/0.4412, allocations: 0.6378 MB / 0.5813 GB, free: 324 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008759/0.45, allocations: 5.589 MB / 0.5867 GB, free: 10.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.348e-05/0.4501, allocations: 51.09 kB / 0.5868 GB, free: 10.15 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009198/0.451, allocations: 190.3 kB / 0.587 GB, free: 9.961 MB / 410.7 MB Notification: Performance of pre-optimization done (n=81): time 4.268e-06/0.451, allocations: 0 / 0.587 GB, free: 9.961 MB / 410.7 MB Notification: Performance of matching and sorting (n=115): time 0.02687/0.4779, allocations: 7.114 MB / 0.5939 GB, free: 2.711 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.356e-05/0.478, allocations: 115.8 kB / 0.594 GB, free: 2.574 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002527/0.4806, allocations: 1.853 MB / 0.5958 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001877/0.4808, allocations: 45.7 kB / 0.5959 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007487/0.4815, allocations: 1.01 MB / 0.5969 GB, free: 15.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004488/0.482, allocations: 414.2 kB / 0.5972 GB, free: 15.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006829/0.4827, allocations: 415.1 kB / 0.5976 GB, free: 14.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.4828, allocations: 301.1 kB / 0.5979 GB, free: 14.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.4842, allocations: 0.8473 MB / 0.5988 GB, free: 13.65 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002126/0.4864, allocations: 1.588 MB / 0.6003 GB, free: 11.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003316/0.4897, allocations: 2.329 MB / 0.6026 GB, free: 9.047 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/0.4897, allocations: 11.94 kB / 0.6026 GB, free: 9.035 MB / 426.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008033/0.4978, allocations: 3.295 MB / 0.6058 GB, free: 5.715 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.971e-05/0.4979, allocations: 19.94 kB / 0.6058 GB, free: 5.695 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-05/0.4979, allocations: 24 kB / 0.6059 GB, free: 5.672 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004773/0.5027, allocations: 1.032 MB / 0.6069 GB, free: 4.625 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00162/0.5043, allocations: 431.3 kB / 0.6073 GB, free: 4.203 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009604/0.5139, allocations: 6.867 MB / 0.614 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002095/0.5161, allocations: 119.7 kB / 0.6141 GB, free: 12.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004261/0.5165, allocations: 120 kB / 0.6142 GB, free: 12.67 MB / 442.7 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.001102/0.5176, allocations: 405.1 kB / 0.6146 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005059/0.5182, allocations: 142.1 kB / 0.6147 GB, free: 12.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006606/0.5248, allocations: 2.196 MB / 0.6169 GB, free: 9.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.5248, allocations: 12 kB / 0.6169 GB, free: 9.898 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.5248, allocations: 4 kB / 0.6169 GB, free: 9.895 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.688e-05/0.5249, allocations: 3.984 kB / 0.6169 GB, free: 9.891 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009613/0.5345, allocations: 3.924 MB / 0.6207 GB, free: 5.871 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.5345, allocations: 8.031 kB / 0.6207 GB, free: 5.863 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007303/0.5353, allocations: 175.8 kB / 0.6209 GB, free: 5.691 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004425/0.5397, allocations: 0.9286 MB / 0.6218 GB, free: 4.746 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.5399, allocations: 39.98 kB / 0.6218 GB, free: 4.707 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007912/0.5478, allocations: 6.257 MB / 0.628 GB, free: 14.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.5478, allocations: 4.031 kB / 0.628 GB, free: 14.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03183/0.5797, allocations: 12.94 MB / 0.6406 GB, free: 0.5898 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004729/0.5802, allocations: 207.3 kB / 0.6408 GB, free: 376 kB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004323/0.5807, allocations: 24 kB / 0.6408 GB, free: 352 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.5819, allocations: 47.91 kB / 0.6409 GB, free: 304 kB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003987/0.5823, allocations: 112.9 kB / 0.641 GB, free: 192 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/0.5825, allocations: 51.97 kB / 0.641 GB, free: 140 kB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001737/0.5842, allocations: 1.298 MB / 0.6423 GB, free: 14.84 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5842, allocations: 0 / 0.6423 GB, free: 14.84 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004126/0.5884, allocations: 1.148 MB / 0.6434 GB, free: 13.69 MB / 474.7 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.002219/0.5906, allocations: 0.9905 MB / 0.6444 GB, free: 12.69 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005175/0.5958, allocations: 2.5 MB / 0.6468 GB, free: 10.13 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.5958, allocations: 0 / 0.6468 GB, free: 10.13 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002401/0.5982, allocations: 1.229 MB / 0.648 GB, free: 8.84 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001927/0.6002, allocations: 235.3 kB / 0.6482 GB, free: 8.609 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007342/0.6075, allocations: 4.953 MB / 0.6531 GB, free: 3.555 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/0.6087, allocations: 1.351 MB / 0.6544 GB, free: 2.172 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001667/0.6104, allocations: 346.6 kB / 0.6547 GB, free: 1.84 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005487/0.611, allocations: 187.3 kB / 0.6549 GB, free: 1.656 MB / 474.7 MB Notification: Performance of SimCode: time 8.11e-07/0.611, allocations: 0 / 0.6549 GB, free: 1.656 MB / 474.7 MB Notification: Performance of Templates: time 0.245/0.856, allocations: 38.29 MB / 0.6923 GB, free: 149.5 MB / 0.4948 GB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)