Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.conf.json 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/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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") translateModel(Chemical.Examples.ClimateChange.ElectrolysisMethanation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008353/0.008353, allocations: 100.3 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 204.8 kB / 16.68 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2032/0.2032, allocations: 15.31 MB / 305.8 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 63.91 kB / 425.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2623, allocations: 53.61 MB / 478.8 MB, free: 25.88 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.ClimateChange.ElectrolysisMethanation): time 0.03251/0.2949, allocations: 30.62 MB / 0.4975 GB, free: 4.039 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02912/0.324, allocations: 28.88 MB / 0.5257 GB, free: 7.043 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00207/0.3261, allocations: 31.88 kB / 0.5257 GB, free: 7.012 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001756/0.3279, allocations: 0.6746 MB / 0.5264 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006158/0.3341, allocations: 2.235 MB / 0.5286 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01054/0.3446, allocations: 3.922 MB / 0.5324 GB, free: 140 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004839/0.3495, allocations: 3.082 MB / 0.5354 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002519/0.3521, allocations: 1.963 MB / 0.5373 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001893/0.354, allocations: 1.453 MB / 0.5387 GB, free: 9.578 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002468/0.3564, allocations: 1.654 MB / 0.5404 GB, free: 7.918 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000608/0.3571, allocations: 296 kB / 0.5406 GB, free: 7.629 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008309/0.3654, allocations: 3.144 MB / 0.5437 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006646/0.3661, allocations: 0.6855 MB / 0.5444 GB, free: 3.793 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001415/0.3675, allocations: 1.431 MB / 0.5458 GB, free: 2.355 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01147/0.379, allocations: 6.349 MB / 0.552 GB, free: 11.98 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.379, allocations: 4 kB / 0.552 GB, free: 11.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.379, allocations: 0 / 0.552 GB, free: 11.98 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.984e-05/0.3791, allocations: 0 / 0.552 GB, free: 11.98 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: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.005821/0.3849, allocations: 3.335 MB / 0.5552 GB, free: 8.582 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.3849, allocations: 8.031 kB / 0.5552 GB, free: 8.574 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002222/0.3872, allocations: 0.5711 MB / 0.5558 GB, free: 8 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002277/0.3895, allocations: 1.408 MB / 0.5572 GB, free: 6.543 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002093/0.3897, allocations: 270.1 kB / 0.5574 GB, free: 6.258 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003646/0.3901, allocations: 239.9 kB / 0.5577 GB, free: 6.023 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004604/0.3947, allocations: 3.045 MB / 0.5606 GB, free: 2.871 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.998e-05/0.3947, allocations: 3.938 kB / 0.5606 GB, free: 2.867 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002314/0.395, allocations: 96 kB / 0.5607 GB, free: 2.773 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.213e-05/0.395, allocations: 60 kB / 0.5608 GB, free: 2.715 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005176/0.4002, allocations: 3.603 MB / 0.5643 GB, free: 15.11 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.01453/0.4147, allocations: 10.41 MB / 0.5745 GB, free: 4.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002991/0.4177, allocations: 2.249 MB / 0.5767 GB, free: 1.949 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.4192, allocations: 1.117 MB / 0.5778 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0119/0.4311, allocations: 8.751 MB / 0.5863 GB, free: 7.215 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.947e-05/0.4312, allocations: 47.88 kB / 0.5864 GB, free: 7.16 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001074/0.4323, allocations: 254.1 kB / 0.5866 GB, free: 6.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=134): time 3.106e-06/0.4323, allocations: 0 / 0.5866 GB, free: 6.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=181): time 0.03379/0.4661, allocations: 9.712 MB / 0.5961 GB, free: 13.08 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.4662, allocations: 120.8 kB / 0.5962 GB, free: 12.93 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001599/0.4678, allocations: 1.458 MB / 0.5976 GB, free: 11.46 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001317/0.468, allocations: 57.7 kB / 0.5977 GB, free: 11.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007014/0.4687, allocations: 1.151 MB / 0.5988 GB, free: 10.23 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006963/0.4694, allocations: 0.6278 MB / 0.5994 GB, free: 9.598 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001093/0.4705, allocations: 0.5129 MB / 0.5999 GB, free: 9.078 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.4706, allocations: 309 kB / 0.6002 GB, free: 8.773 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002531/0.4732, allocations: 0.9539 MB / 0.6011 GB, free: 7.816 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003611/0.4768, allocations: 1.886 MB / 0.603 GB, free: 5.492 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006355/0.4832, allocations: 2.996 MB / 0.6059 GB, free: 2.062 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.406e-05/0.4832, allocations: 8 kB / 0.6059 GB, free: 2.055 MB / 478.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.2661/0.7493, allocations: 3.889 MB / 0.6097 GB, free: 114.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.837e-05/0.7494, allocations: 16.88 kB / 0.6097 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.16e-05/0.7495, allocations: 32.84 kB / 0.6098 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00545/0.7549, allocations: 1.182 MB / 0.6109 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002362/0.7573, allocations: 0.582 MB / 0.6115 GB, free: 114.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009339/0.7667, allocations: 7.518 MB / 0.6188 GB, free: 108.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002363/0.7691, allocations: 110 kB / 0.6189 GB, free: 108.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004618/0.7696, allocations: 160.5 kB / 0.6191 GB, free: 108.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (305): * Single equations (assignments): 300 * 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 {(3,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 {(1,18), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001087/0.7707, allocations: 490.3 kB / 0.6195 GB, free: 108.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004861/0.7712, allocations: 177.4 kB / 0.6197 GB, free: 108.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008851/0.78, allocations: 3.253 MB / 0.6229 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.453e-05/0.7801, allocations: 17.97 kB / 0.6229 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.7801, allocations: 4.781 kB / 0.6229 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-05/0.7801, allocations: 9.375 kB / 0.6229 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01203/0.7922, allocations: 5.428 MB / 0.6282 GB, free: 105 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/0.7922, allocations: 3.5 kB / 0.6282 GB, free: 105 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.7935, allocations: 305.7 kB / 0.6285 GB, free: 105 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004657/0.7981, allocations: 1.053 MB / 0.6295 GB, free: 104.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002185/0.7984, allocations: 72.45 kB / 0.6296 GB, free: 104.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007121/0.8055, allocations: 6.811 MB / 0.6363 GB, free: 98.64 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.8055, allocations: 3.594 kB / 0.6363 GB, free: 98.64 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01042/0.816, allocations: 4.127 MB / 0.6403 GB, free: 96.36 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007068/0.8167, allocations: 233.7 kB / 0.6405 GB, free: 96.18 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005289/0.8173, allocations: 35.12 kB / 0.6406 GB, free: 96.15 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001392/0.8187, allocations: 44.77 kB / 0.6406 GB, free: 96.12 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004464/0.8191, allocations: 182.8 kB / 0.6408 GB, free: 96.03 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002315/0.8194, allocations: 83.94 kB / 0.6409 GB, free: 96 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001628/0.821, allocations: 0.949 MB / 0.6418 GB, free: 95.48 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.821, allocations: 1.438 kB / 0.6418 GB, free: 95.48 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005233/0.8263, allocations: 1.248 MB / 0.643 GB, free: 95.32 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,CH4.logn,CO2.logn,H2.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 (156): * Single equations (assignments): 151 * 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 {(3,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,19), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003593/0.8299, allocations: 1.301 MB / 0.6443 GB, free: 94.98 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00543/0.8353, allocations: 3.061 MB / 0.6473 GB, free: 93.29 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/0.8353, allocations: 0 / 0.6473 GB, free: 93.29 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002576/0.8379, allocations: 1.626 MB / 0.6489 GB, free: 92.25 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/0.8401, allocations: 322.9 kB / 0.6492 GB, free: 92.08 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007498/0.8477, allocations: 4.034 MB / 0.6531 GB, free: 89.86 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009885/0.8487, allocations: 1.483 MB / 0.6545 GB, free: 88.84 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001686/0.8504, allocations: 460.2 kB / 0.655 GB, free: 88.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006801/0.8511, allocations: 278.7 kB / 0.6553 GB, free: 88.68 MB / 478.1 MB Notification: Performance of SimCode: time 8.91e-07/0.8511, allocations: 0 / 0.6553 GB, free: 88.68 MB / 478.1 MB Notification: Performance of Templates: time 0.05407/0.9052, allocations: 46.86 MB / 0.701 GB, free: 43.16 MB / 478.1 MB make -j1 -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.makefile (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.sim & ./Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1)